/* ===== ESTILOS GENERALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Museo900';
    src: url('/fonts/Museo900-Regular.woff2') format('woff2'),
        url('/fonts/Museo900-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Museo100';
    src: url('/fonts/Museo100-Regular.woff2') format('woff2'),
        url('/fonts/Museo100-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Titillium Web', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container,
.containerC,
.containerF {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 20px;
}

p {
    font-family: 'Museo100', sans-serif;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(134deg, black 0%, black 13%, #0c395c 68%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    height: 75px;
    width: auto;
}

/* ===== NAVEGACIÓN DESKTOP ===== */
#desktop-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    font-family: 'Titillium Web', sans-serif;
}

#desktop-nav .nav-item {
    position: relative;
}

#desktop-nav .nav-item>a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 20px 16px;
    display: block;
    font-size: 14px;
    transition: all 0.2s ease;
}

#desktop-nav .nav-item>a:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

#desktop-nav .nav-item.has-dropdown>a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

#desktop-nav .nav-item.has-dropdown:hover>a::after {
    transform: rotate(180deg);
}

/* Menú desplegable */
#desktop-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #8881814d;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    min-width: 200px;
    z-index: 1001;
    backdrop-filter: blur(3px);
    padding: 8px 0;
}

#desktop-nav .nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

#desktop-nav .dropdown-item {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

#desktop-nav .dropdown-item:hover {
    color: white;
}

#desktop-nav .nav-item>a.active {
    border-bottom: 2px solid white;
}

/* ===== NAVEGACIÓN MÓVIL ===== */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 20px 65px;
    background-color: #0c395c;
    color: white;
}

.drawer-logo {
    height: 50px;
    width: auto;
}

.close-drawer {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.drawer-nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.nav-section {
    border-bottom: 1px solid #f0f0f0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.nav-item span:not(.material-icons) {
    flex: 1;
}

.nav-item.active .expand-icon {
    transform: rotate(90deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.nav-submenu.open {
    max-height: 500px;
}

.submenu-item {
    display: flex;
    align-items: center;
    padding: 12px 24px 12px 72px;
    color: #555;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.submenu-item .material-icons {
    margin-right: 32px;
    font-size: 20px;
}

.submenu-item:hover {
    background-color: #f0f0f0;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== SECCIÓN HERO ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('/Img/IMAGENES/MENUPRINCIPAL_t1.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 70px;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    position: absolute;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 2.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-primary {
    background: #dad7d7;
    color: #1e293b;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 2.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    width: 100%;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== SECCIÓN PROYECTOS ===== */
/* Contenedor del texto */
.projects-content {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.projects-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.projects-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.projects-content p {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1rem;
}

/* Efectos de animación */
.projects-content h2,
.projects-content h3,
.projects-content p {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(20px);
}

.projects-content h2.visible,
.projects-content h3.visible,
.projects-content p.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Asegurar que el texto sea legible sobre las imágenes */
.projects-content {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}


.projects {
    height: 60dvh;
    background: linear-gradient(rgba(30, 58, 138, 0.1), rgba(30, 58, 138, 0.2)),
        url(/Img/IMAGENES/t2.webp);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    padding-top: 2rem;
}

.projects-content {
    text-align: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.projects-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.projects-content h3 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.projects-content p {
    font-size: 1.8rem;
    font-weight: 300;
}

/* Carousel */
.carousel-container {
    width: 80%;
    overflow: hidden;
    position: relative;
    height: 400px;
    margin: 2rem auto 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 400px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 25px;
    transition: 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-nav.prev {
    left: 2rem;
}

.carousel-nav.next {
    right: 2rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #60a5fa;
    transform: scale(1.3);
}


/* Agrega esto en tu archivo CSS */
.projects {
    transition: background-image 0.8s ease-in-out;
}

.projects-content {
    transition: all 0.8s ease-in-out;
    position: relative;
}

.projects-content h2,
.projects-content h3,
.projects-content p {
    transition: all 0.8s ease-in-out;
}

/* Clases para animaciones */
.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECCIÓN PARTNERS ===== */
.partners {
    height: 90dvh;
    background: #0a0a0a;
    overflow: hidden;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 100%;
    will-change: transform;
}

.partner-item {
    position: relative;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.partner-bg {
    will-change: transform;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.partner-logo {
    position: relative;
    z-index: 2;
}

.partner-item:hover .partner-bg {
    filter: brightness(0.8);
    transform: scale(1.05);
}

.partner-item:hover .partner-logo img {
    transform: scale(1.1);
    transition: transform 0.4s ease;
}

/* Backgrounds partners */
.yaokali {
    background-image: url('/Img/IMAGENES/t3.webp');
}

.cerevro {
    background-image: url('/Img/IMAGENES/T4_.webp');
}

.marfil {
    background-image: url('/Img/IMAGENES/T5_.webp');
}

.blacksheep {
    background-image: url('/Img/IMAGENES/T6.webp');
}

.guimar {
    background-image: url('/Img/IMAGENES/T7.webp');
}

.logo_yaokali,
.logo_cerevro,
.logo_marfil,
.logo_blacksheep,
.logo_guimar {
    width: 250px;
    height: auto;
    transition: transform 0.4s ease;
}

/* ===== SECCIÓN COLMILLO ===== */
.colmillo {
    height: 120vh;
    background: linear-gradient(to right, rgba(30, 58, 138, 0.8) 0%, rgba(30, 58, 138, 0.6) 15%, rgba(30, 58, 138, 0.3) 25%, rgba(30, 58, 138, 0) 40%),
        url('/Img/IMAGENES/tratamiento.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.containerC {
    max-width: 1200px;
    margin: 0;
    padding: 0 0 0 101px;
}

.colmillo-content {
    max-width: 700px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

p.subtitle.futuro {
    font-size: 2.1rem;
    text-align: center;
}

.logo_colmillo {
    width: 250px;
    height: auto;
}

.colmillo-logo {
    margin-bottom: 2rem;
}

.colmillo-logo h4 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.colmillo-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.colmillo-content h2 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.colmillo-content .subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
}



/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MEDIA QUERIES ===== */
/* Pantallas grandes (1200px - 1400px) */
@media (max-width: 1400px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }

    .hero-content p {
        font-size: 2rem;
    }

    .btn-primary {
        font-size: 1.8rem;
    }

    .projects-content h2 {
        font-size: 3rem;
    }

    .projects-content h3 {
        font-size: 2.5rem;
    }

    .projects-content p {
        font-size: 1.6rem;
    }

    .colmillo-content h2 {
        font-size: 2.5rem;
    }

    .colmillo-content .subtitle {
        font-size: 1.6rem;
    }

    p.subtitle.futuro {
        font-size: 1.5rem;
    }

    .logo_yaokali,
    .logo_cerevro,
    .logo_marfil,
    .logo_blacksheep,
    .logo_guimar,
    .logo_colmillo {
        width: 200px;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    #desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content p {
        font-size: 1.8rem;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .carousel-container {
        height: 350px;
    }

    .carousel-item {
        height: 350px;
    }
}

/* Móviles grandes (576px - 768px) */
@media (max-width: 768px) {
    .logo {
        height: 60px;
    }

    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
            url('/Img/IMAGENES/MENUPRINCIPAL_mov.webp');
        background-position: top center;
    }

    .hero-content {
        position: relative;
        text-align: center;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.5rem;
    }

    .btn-primary {
        font-size: 1.5rem;
        max-width: 300px;
    }

    .projects {
        min-height: 60vh;
        padding: 4rem 0;
    }

    .projects-content h2 {
        font-size: 2.5rem;
    }

    .projects-content h3 {
        font-size: 2rem;
    }

    .projects-content p {
        font-size: 1.3rem;
    }

    .carousel-container {
        width: 95%;
        height: 300px;
    }

    .carousel-item {
        height: 300px;
    }

    .carousel-nav {
        display: none;
    }

    .partners {
        min-height: 60vh;
    }

    .partners-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        flex-direction: column;
    }


    .partner-item {
        min-width: 250px;
        height: 300px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .colmillo {
        min-height: 80vh;
        padding: 4rem 0;
        flex-direction: column;
    }

    .containerC {
        padding: 5px;
    }

    .colmillo-content {
        text-align: center;
    }

    .colmillo-content h2 {
        font-size: 2rem;
    }

    .colmillo-content .subtitle {
        font-size: 1.3rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .logo_yaokali,
    .logo_cerevro,
    .logo_marfil,
    .logo_blacksheep,
    .logo_guimar,
    .logo_colmillo {
        width: 180px;
    }
}

/* Móviles pequeños (360px - 576px) */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .btn-primary {
        font-size: 1.3rem;
        padding: 1rem 1.5rem;
    }

    .projects-content h2 {
        font-size: 2rem;
    }

    .projects-content h3 {
        font-size: 1.5rem;
    }

    .projects-content p {
        font-size: 1.1rem;
    }

    .carousel-container {
        height: 250px;
    }

    .carousel-item {
        height: 250px;
    }

    .partner-item {
        min-width: 200px;
        height: 250px;
    }

    .colmillo-content h2 {
        font-size: 1.8rem;
    }

    p.subtitle.futuro {
        font-size: 1.5rem;
    }

    .footer-grid {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .footer-column,
    .footer-location {
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
    }

    .logo_yaokali,
    .logo_cerevro,
    .logo_marfil,
    .logo_blacksheep,
    .logo_guimar,
    .logo_colmillo {
        width: 150px;
    }
}

/* Móviles muy pequeños (<360px) */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .btn-primary {
        font-size: 1.2rem;
        padding: 0.9rem 1.3rem;
    }

    .partner-item {
        min-width: 180px;
        height: 220px;
    }

    .logo_yaokali,
    .logo_cerevro,
    .logo_marfil,
    .logo_blacksheep,
    .logo_guimar,
    .logo_colmillo {
        width: 130px;
    }
}

/* Pantallas muy grandes (>1400px) */
@media (min-width: 1400px) {
    .hero-content h1 {
        font-size: 6rem;
    }

    .hero-content p {
        font-size: 2.5rem;
    }

    .btn-primary {
        font-size: 2.3rem;
    }

    .projects-content h2 {
        font-size: 5rem;
    }

    .projects-content h3 {
        font-size: 4.2rem;
    }

    .projects-content p {
        font-size: 3rem;
    }

    .colmillo-content h2 {
        font-size: 3.2rem;
    }

    .colmillo-content .subtitle {
        font-size: 3rem;
    }

    p.subtitle.futuro {
        font-size: 2.5rem;
    }

    .logo_yaokali,
    .logo_cerevro,
    .logo_marfil,
    .logo_blacksheep,
    .logo_guimar,
    .logo_colmillo {
        width: 28dvh;
    }
}

/* Landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {

    .hero,
    .projects,
    .colmillo {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {

    .partner-item:hover .partner-bg,
    .partner-item:hover .partner-logo img,
    .btn-primary:hover {
        transform: none;
    }

    .partner-item:active .partner-bg {
        filter: brightness(0.8);
    }

    .btn-primary:active {
        transform: scale(0.98);
    }
}

