* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    background: #0B0B0B;
}

html {
    scroll-behavior: smooth;
}
section {
    scroll-margin-top: 90px;
}

body {
    font-family: Arial, sans-serif;
    padding-top: 80px;

    background: #0B0B0B;
}

.container {
    padding-left: 10%;
    padding-right: 10%;
}






/* =========================
   ANIMACIONES PREMIUM
========================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* DIRECCIONES */
.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

/* DELAYS (STAGGER) */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }








/* =========================
   HERO PREMIUM NUEVO
========================= */

:root {

    --black-soft: #0B0B0B;
    --beige: #E5D3B3;
    --white-soft: #F9F6F1;
    --gold-soft: #C6A15B;
    --text-light: #F5F1EA;
    --text-muted: #B8B0A4;

}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--black-soft);

    display: flex;
    align-items: center;
}

/* SLIDER */

.hero-visual {

    position: absolute;

    top: 0;
    right: -12%;

    width: 62%;
    height: 100%;

    z-index: 1;

    overflow: visible;
}

.hero-visual svg {

    width: 100%;
    height: 100%;
}

.slide {

    opacity: 0;

    transition:
        opacity 1.2s ease,
        transform 6s ease;

    transform-origin: center;

    transform: scale(1);

}

.slide.active {

    opacity: 1;

    transform: scale(1.04);
}



/* SOLO LA ACTIVA */

.slide.active {

    opacity: 1;

}

.slide.active {
    opacity: 1;
}



/* OVERLAY */

.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    background:
    linear-gradient(
        to right,

        rgba(0,0,0,0.995) 0%,
        rgba(0,0,0,0.96) 18%,
        rgba(0,0,0,0.88) 34%,
        rgba(0,0,0,0.58) 44%,
        rgba(0,0,0,0.08) 50%,
        rgba(0,0,0,0.00) 56%
    );
}

/* CONTENIDO */

.hero-content {
    position: relative;
    z-index: 3;

    padding-left: 10%;
    max-width: 560px;

    display: flex;
    flex-direction: column;
    gap: 22px;

    width: 49%;
    max-width: 760px;
}

/* TAG */

.hero-tag {
    font-size: 0.82rem;
    letter-spacing: 3px;
    color: var(--gold-soft);
    text-transform: uppercase;
}

/* TITULO */

.hero-title {
    font-family: 'Playfair Display', serif;

    font-size: clamp(3rem, 5vw, 5rem);

    line-height: 1.1;

    color: var(--white-soft);

    font-weight: 600;
}

/* SUB */

.hero-subtitle {
    font-family: 'Inter', sans-serif;

    color: var(--text-muted);

    font-size: 1.08rem;

    line-height: 1.8;

    max-width: 580px;
}

/* BOTON */

.btn-premium {
    width: fit-content;

    padding: 16px 34px;

    border-radius: 50px;

    background: var(--beige);

    color: #111;

    text-decoration: none;

    font-weight: 600;

    transition: all 0.35s ease;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.25);
}

.btn-premium:hover {

    transform: translateY(-3px);

    background: #f0dfbf;
}













/* =========================
   HERO TESTIMONIOS PREMIUM
========================= */

.hero-testimonials {

    position: relative;

    height: 75vh;

    overflow: hidden;

    display: flex;
    align-items: center;

    background: #0B0B0B;
}

/* IMAGEN */

.hero-testimonials-bg {

    position: absolute;
    inset: 0;

    z-index: 1;
}

.hero-testimonials-bg img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1);

    animation: zoomTestimonials 8s ease forwards;
}

/* ZOOM LENTO */

@keyframes zoomTestimonials {

    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }

}

/* OVERLAY */

.hero-testimonials-overlay {

    position: absolute;
    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            to right,
            rgba(11,11,11,0.92) 18%,
            rgba(11,11,11,0.70) 45%,
            rgba(11,11,11,0.30) 100%
        );
}

/* CONTENIDO */

.hero-testimonials-content {

    position: relative;

    z-index: 3;

    padding-left: 10%;

    max-width: 700px;

    display: flex;
    flex-direction: column;

    gap: 22px;
}

.hero-testimonials-content h1 {

    font-family: 'Playfair Display', serif;

    font-size: clamp(2.8rem, 5vw, 4.5rem);

    line-height: 1.1;

    color: var(--white-soft);

    font-weight: 600;
}

.hero-testimonials-content p {

    color: var(--text-muted);

    line-height: 1.8;

    max-width: 560px;
}














/* BARRA DE NAVEGACIÓN Y MENÚ */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;

    padding: 10px 10%;
    height: 80px; /* 🔥 más pequeño */
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);

    z-index: 1000;

    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
}
.menu-toggle span {
    transition: all 0.3s ease;
}
.menu-toggle.active span {
    background: #d4a84f;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: clamp(80px, 10vw, 150px);
    object-fit: contain;
}

.navbar.scrolled .logo img {
    height: 120px;
}

.logo img:hover {
    transform: scale(1.05);
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.navbar ul li a:hover {
    color: #00bcd4;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* =========================
   OVERLAY PREMIUM
========================= */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease;

    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}









/* SEGUNDA SECCION SERVICES */
.services {

    padding: 140px 10%;

    background:
        linear-gradient(
            to bottom,
            #0B0B0B,
            #101010
        );

    text-align: center;

    position: relative;

    overflow: hidden;
}

.services-header {

    margin-bottom: 80px;
}

.services-header h2 {

    font-family: 'Playfair Display', serif;

    font-size: clamp(2.8rem, 5vw, 4.5rem);

    color: var(--white-soft);

    font-weight: 600;

    margin-bottom: 18px;

    line-height: 1.1;
}

.services-header p {

    color: var(--text-muted);

    font-size: 1.05rem;

    line-height: 1.8;

    max-width: 700px;

    margin: 0 auto;
}

/* GRID */
.services-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 28px;

    align-items: stretch;
}

/* CARDS */
.service-card {
    position: relative;
    overflow: hidden;

    /* DORADO MATE */
    background: rgba(168, 130, 67, 0.38);

    /* EFECTO CRISTAL */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    /* BORDE DORADO SUTIL */
    border: 1px solid rgba(218, 186, 125, 0.55);

    border-radius: 20px;

    /* SOMBRA Y PROFUNDIDAD */
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);

    cursor: pointer;

    transition:
        transform 0.4s ease,
        background 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.service-card::before {
    content: "";
    position: absolute;

    top: -60%;
    left: -50%;

    width: 180%;
    height: 120%;

    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 255, 255, 0.12) 48%,
        transparent 60%
    );

    transform: rotate(8deg);

    pointer-events: none;

    opacity: 0.55;

    transition:
        transform 0.7s ease,
        opacity 0.5s ease;
}

.service-card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -90px;
    right: -90px;

    border-radius: 50%;

    background: rgba(226, 190, 119, 0.18);

    filter: blur(35px);

    pointer-events: none;
}


.service-card h3 {

    color: var(--white-soft);

    font-size: 1.35rem;

    margin-bottom: 14px;

    font-weight: 600;
}

.service-card p {

    color: var(--text-muted);

    line-height: 1.8;

    font-size: 0.98rem;
}

/* HOVER PRO */
.service-card:hover {
    transform: translateY(-7px);

    background: rgba(185, 145, 76, 0.48);

    border-color: rgba(231, 203, 153, 0.75);

    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.38),
        0 0 25px rgba(193, 151, 78, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.service-card:hover::before {
    transform: translateX(25%) rotate(8deg);
    opacity: 0.75;
}
.auto-active {
    transform: translateY(-10px) scale(1.02);

    background-position: 100% 0;

    box-shadow: 
        0 15px 40px rgba(0,0,0,0.4),
        inset 0 3px 6px rgba(255,255,255,0.4),
        inset 0 -3px 6px rgba(0,0,0,0.3);
}

.service-card.active {

    transform: translateY(-12px);

    background:
        linear-gradient(
            145deg,
            rgba(198,161,91,0.18),
            rgba(255,255,255,0.04)
        );

    border: 1px solid rgba(229,211,179,0.35);

    box-shadow:
        0 25px 70px rgba(0,0,0,0.55),
        0 0 35px rgba(198,161,91,0.16);

    animation: premiumGlow 1.2s ease;
}

@keyframes premiumGlow {

    0% {

        transform: translateY(0);

        box-shadow:
            0 0 0 rgba(198,161,91,0);
    }

    40% {

        transform: translateY(-14px);

        box-shadow:
            0 0 45px rgba(198,161,91,0.22);
    }

    100% {

        transform: translateY(-12px);

        box-shadow:
            0 25px 70px rgba(0,0,0,0.55),
            0 0 35px rgba(198,161,91,0.16);
    }
}

/* PANEL OCULTO */
.service-panel {
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s ease;
    opacity: 0;
}

/* CUANDO SE ACTIVA */
.service-panel.active {
    max-height: 2000px;
    opacity: 1;
    margin-top: 40px;
    animation: fadeLuxury 0.7s ease;
}

@keyframes fadeLuxury {

    from {

        opacity: 0;

        transform: translateY(30px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }
}

/* CONTENIDO INTERNO */
.panel-content {

    display: none;

    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 60px;

    padding: 55px;

    border-radius: 34px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.015)
        );

    border: 1px solid rgba(229,211,179,0.12);

    backdrop-filter: blur(14px);

    box-shadow:
        0 25px 70px rgba(0,0,0,0.42);

    overflow: hidden;

    position: relative;
}

/* TAG SUPERIOR */

.panel-tag {

    display: inline-block;

    margin-bottom: 18px;

    padding: 10px 18px;

    border-radius: 50px;

    background: rgba(212,168,79,0.10);

    border: 1px solid rgba(212,168,79,0.25);

    color: #F5E7C8;

    font-size: 0.78rem;

    letter-spacing: 2px;

    text-transform: uppercase;

    font-weight: 600;
}

.panel-text {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    text-align: left;
}

.panel-text h3 {

    font-family: 'Playfair Display', serif;

    font-size: clamp(2rem, 4vw, 3rem);

    color: #F5F1EA !important;

    margin-bottom: 20px;

    line-height: 1.1;
}

.panel-text p {

    color: #D8D2C8 !important;

    line-height: 1.9;

    font-size: 1rem;

    margin-bottom: 18px;
}

.panel-text ul {

    list-style: none;

    padding: 0;

    margin-top: 10px;
}

.panel-text ul li {

    color: #EFE7DA !important;

    margin-bottom: 14px;

    position: relative;

    padding-left: 26px;

    line-height: 1.7;
}

.panel-text ul li::before {

    content: "•";

    position: absolute;

    left: 0;

    color: var(--gold-soft);

    font-size: 1.2rem;
}

.panel-gallery {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.panel-gallery img {

    width: 100%;

    height: 340px;

    object-fit: contain;

    border-radius: 24px;

    border: 1px solid rgba(229,211,179,0.14);

    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.35);
}

.panel-gallery img:hover {

    transform: scale(1.03);

    box-shadow:
        0 20px 45px rgba(0,0,0,0.45),
        0 0 25px rgba(198,161,91,0.12);
}

.panel-content.active {
    display: grid;
}

/* IMAGEN */
.panel-content img {
    width: 300px;
    border-radius: 10px;
}

/* EVITAR SCROLL HORIZONTAL */
.services {
    overflow: hidden;
}











/* ==================================
   NUESTRA CLÍNICA PREMIUM
================================== */

.clinic {

    padding: 140px 10%;

    background:
    linear-gradient(
        to bottom,
        #101010,
        #0B0B0B
    );

    overflow: hidden;
}

.clinic-container {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

/* GALERÍA */

.clinic-gallery {

    display: flex;
    flex-direction: column;
    gap: 25px;
}

.clinic-slider {

    position: relative;

    height: 600px;

    border-radius: 32px;

    overflow: hidden;

    border: 1px solid rgba(229,211,179,0.12);

    box-shadow:
        0 25px 70px rgba(0,0,0,0.45);
}

/* FUNDIDO HACIA EL TEXTO */

.clinic-slider::after {

    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 35%;
    height: 100%;

    background:
    linear-gradient(
        to right,
        rgba(11,11,11,0),
        rgba(11,11,11,1)
    );

    z-index: 3;

    pointer-events: none;
}

/* IMÁGENES */

.clinic-slide {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition: opacity 1s ease;
}

.clinic-slide.active {

    opacity: 1;
}

/* DOTS */

.clinic-dots {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;
}

.dot {

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: rgba(229,211,179,0.25);

    transition: all 0.4s ease;

    cursor: pointer;
}

.dot.active {

    width: 18px;
    height: 18px;

    background: var(--beige);

    box-shadow:
        0 0 15px rgba(229,211,179,0.35);
}

/* TEXTO */

.clinic-content {

    max-width: 650px;
}

.clinic-tag {

    display: inline-block;

    margin-bottom: 20px;

    padding: 10px 18px;

    border-radius: 50px;

    background: rgba(198,161,91,0.08);

    border: 1px solid rgba(198,161,91,0.16);

    color: var(--beige);

    font-size: 0.78rem;

    letter-spacing: 2px;

    text-transform: uppercase;

    font-weight: 600;
}

.clinic-content h2 {

    font-family: 'Playfair Display', serif;

    font-size: clamp(2.8rem,5vw,4.5rem);

    line-height: 1.1;

    color: var(--white-soft);

    margin-bottom: 30px;
}

.clinic-content p {

    color: var(--text-muted);

    line-height: 1.95;

    font-size: 1rem;

    margin-bottom: 20px;
}

/* MOBILE */

@media(max-width:768px){

    .clinic {

        padding: 100px 8%;
    }

    .clinic-container {

        grid-template-columns: 1fr;

        gap: 50px;
    }

    .clinic-slider {

        height: 400px;
    }

    .clinic-slider::after {

        width: 100%;

        background:
        linear-gradient(
            to top,
            rgba(11,11,11,0.65),
            transparent
        );
    }

    .clinic-content {

        text-align: left;
    }

}

.clinic-line{

    width: 90px;
    height: 2px;

    margin-bottom: 30px;

    background:
    linear-gradient(
        90deg,
        var(--beige),
        transparent
    );
}












/*TERCERA SECCIÓN TESTIMONIOS */


.testimonials {
    padding: 100px 10%;
    background: #0a0a0a;
    color: white;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-header h2 {

    font-family: 'Playfair Display', serif;

    font-size: clamp(2.8rem, 5vw, 4.5rem);

    color: var(--white-soft);

    font-weight: 600;

    margin-bottom: 18px;

    line-height: 1.1;
}

.testimonials-header p {

    color: var(--text-muted);

    font-size: 1.05rem;

    line-height: 1.8;

    max-width: 700px;

    margin: 0 auto;
}

.videos-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {

    position: relative;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.015)
        );

    padding: 24px;

    border-radius: 28px;

    border: 1px solid rgba(229,211,179,0.10);

    backdrop-filter: blur(10px);

    overflow: hidden;

    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s ease,
        box-shadow 0.45s ease;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.45);
}


.video-card::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top left,
            rgba(229,211,179,0.08),
            transparent 45%
        );

    opacity: 0;

    transition: opacity 0.5s ease;
}

.video-card:hover::before {

    opacity: 1;
}

.video-card h3 {

    font-family: 'Playfair Display', serif;

    margin-bottom: 10px;

    color: var(--beige);

    font-size: 1.4rem;

    line-height: 1.3;

    font-weight: 600;
}

.video-card p {

    color: var(--text-muted);

    font-size: 0.98rem;

    line-height: 1.8;

    margin-bottom: 18px;
}

.video-card video {
    width: 100%;
    border-radius: 12px;

    box-shadow: 
        0 5px 15px rgba(0,0,0,0.6);
}

.testimonials-btn {

    margin-top: 70px;

    display: flex;
    justify-content: center;
}

.testimonials-btn a {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 16px 34px;

    border-radius: 50px;

    background: var(--beige);

    color: #111;

    text-decoration: none;

    font-family: 'Inter', sans-serif;

    font-weight: 600;

    letter-spacing: 0.3px;

    border: 1px solid rgba(229,211,179,0.25);

    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.4s ease,
        box-shadow 0.4s ease;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.35);
}

/* HOVER PREMIUM */

.testimonials-btn a:hover {

    transform: translateY(-4px);

    background: #f0dfbf;

    box-shadow:
        0 18px 45px rgba(0,0,0,0.45),
        0 0 20px rgba(198,161,91,0.10);
}


.video-card:hover {

    transform: translateY(-10px);

    border-color: rgba(229,211,179,0.28);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.55),
        0 0 30px rgba(198,161,91,0.08);
}

.testimonials-header::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #d4a84f;
    margin: 20px auto 0;
    border-radius: 2px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16; /* 🔥 vertical tipo reels (CAMBIA a 16/9 si quieres horizontal) */
    overflow: hidden;
    border-radius: 12px;
}

.video-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
}




/* =========================
   TESTIMONIOS PAGE (FULL)
========================= */

.testimonials-page {
    padding: 100px 5%;
    background: #0a0a0a;
    color: white;
}

/* más ancho real */
.testimonials-page .videos-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* video más grande */
.testimonials-page .video-card {
    padding: 25px;
}

.testimonials-page .video-card video {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.testimonials-page .video-wrapper {
    max-width: 320px;
    margin: 0 auto;
}














/* =========================
   DR FELIPE PREMIUM
========================= */

.doctor {

    position: relative;

    padding: 140px 10%;

    background:
    linear-gradient(
        to bottom,
        #101010,
        #0B0B0B
    );

    overflow: hidden;
}

/* GLOW DECORATIVO */

.doctor::before {

    content: "";

    position: absolute;

    top: -20%;
    right: -10%;

    width: 600px;
    height: 600px;

    background:
    radial-gradient(
        circle,
        rgba(198,161,91,0.08),
        transparent 70%
    );

    pointer-events: none;
}

/* CONTENEDOR */

.doctor-container {

    position: relative;

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;

    gap: 90px;

    z-index: 2;
}

/* IMAGEN */

.doctor-img {
    position: relative;
    display: inline-block;
    width: fit-content;
    flex-shrink: 0;
    display: block;
}

.doctor-img::before {

    content: "";

    position: absolute;

    inset: -18px;

    border-radius: 36px;

    border: 1px solid rgba(229,211,179,0.18);

    pointer-events: none;
}

.doctor-img img {

    width: 100%;

    max-width: 440px;

    height: 620px;

    object-fit: cover;

    border-radius: 32px;

    display: block;

    filter:
        brightness(0.92)
        contrast(1.02);

    box-shadow:
        0 30px 70px rgba(0,0,0,0.55);
}

/* TEXTO */

.doctor-text {

    color: var(--white-soft);
}

/* TAG */

.doctor-text::before {

    content: "Odontología estética premium";

    display: inline-block;

    margin-bottom: 22px;

    padding: 10px 18px;

    border-radius: 50px;

    background: rgba(198,161,91,0.08);

    border: 1px solid rgba(198,161,91,0.16);

    color: var(--beige);

    font-size: 0.78rem;

    letter-spacing: 2px;

    text-transform: uppercase;

    font-weight: 600;
}

/* TITULO */

.doctor-text h2 {

    font-family: 'Playfair Display', serif;

    font-size: clamp(3rem, 5vw, 4.8rem);

    line-height: 1.05;

    margin-bottom: 28px;

    color: var(--white-soft);

    font-weight: 600;

    max-width: 10ch;
}

/* PÁRRAFOS */

.doctor-text p {

    color: var(--text-muted);

    line-height: 1.95;

    font-size: 1.02rem;

    margin-bottom: 24px;

    max-width: 680px;
}

/* FIRMA */

.doctor-text h4 {

    font-family: 'Playfair Display', serif;

    font-size: 1.5rem;

    color: var(--beige);

    margin-top: 40px;

    margin-bottom: 8px;

    font-weight: 600;
}










/* SECCIÓN CONTACTO */
.contact {
    padding: 120px 10%;

    background:
    radial-gradient(
        circle at top,
        rgba(255,255,255,0.04),
        transparent 35%
    ),
    linear-gradient(
        135deg,
        #101010,
        #171717,
        #0d0d0d
    );

    color: white;

    display: flex;
    flex-direction: column;
    gap: 70px;

    position: relative;
    overflow: hidden;
}

.contact h3 {

    font-size: 1.8rem;

    font-weight: 600;

    margin-bottom: -30px;

    letter-spacing: 1px;

    position: relative;
}

.contact h3::after {

    content: "";

    display: block;

    width: 80px;
    height: 2px;

    margin-top: 12px;

    background:
    linear-gradient(
        90deg,
        #d4a84f,
        transparent
    );
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 30px;
}

/* INFO */
.contact-info {
    flex: 1;
    width: 100%;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #5c5b5b;
}

/* FORMULARIO */
.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {

    padding: 16px 18px;

    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(255,255,255,0.04);

    color: white;

    outline: none;

    font-size: 1rem;

    transition: 0.3s ease;

    backdrop-filter: blur(10px);
}

.contact-form input:focus,
.contact-form textarea:focus {

    border-color: rgba(212,168,79,0.7);

    box-shadow:
        0 0 0 4px rgba(212,168,79,0.08);

    background: rgba(255,255,255,0.06);
}

.contact-form .btn {

    margin-top: 10px;

    padding: 16px;

    border-radius: 14px;

    border: none;

    cursor: pointer;

    font-size: 1rem;
    font-weight: 600;

    letter-spacing: 1px;

    color: #111;

    background:
    linear-gradient(
        135deg,
        #f5d27a,
        #d4a84f,
        #b88a2a
    );

    transition: 0.4s ease;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.35);
}

.contact-form .btn:hover {

    transform: translateY(-4px);

    box-shadow:
        0 18px 35px rgba(0,0,0,0.45);
}

/* CONTENEDOR TARJETAS */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

/* TARJETAS */
.contact-card {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    box-sizing: border-box;
    width: 300px;

    /* DORADO MATE */
    background: rgba(168, 130, 67, 0.38);

    /* EFECTO CRISTAL */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    /* BORDE DORADO */
    border: 1px solid rgba(218, 186, 125, 0.55);

    border-radius: 20px;

    /* PROFUNDIDAD */
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);

    transition:
        transform 0.4s ease,
        background 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}


.contact-card::before {
    content: "";

    position: absolute;

    top: -60%;
    left: -50%;

    width: 180%;
    height: 120%;

    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 255, 255, 0.12) 48%,
        transparent 60%
    );

    transform: rotate(8deg);

    pointer-events: none;

    opacity: 0.55;

    transition:
        transform 0.7s ease,
        opacity 0.5s ease;
}

.contact-card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -90px;
    right: -90px;

    border-radius: 50%;

    background: rgba(226, 190, 119, 0.18);

    filter: blur(35px);

    pointer-events: none;
}

.contact-card:hover::before,
.contact-card.auto-active::before {

    left: 120%;
}

/* TEXTO */
.contact-card h3 {
    margin-bottom: 10px;
    line-height: 1.2;
}

.contact-card p {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* EFECTO HOVER PREMIUM */
.contact-card:hover,
.contact-card.auto-active {

    transform:
        perspective(1000px)
        rotateX(4deg)
        translateY(-10px)
        scale(1.03);

    background-position: 100% 0;

    box-shadow: 
        0 15px 40px rgba(0,0,0,0.4),
        0 0 30px rgba(212,168,79,0.25),
        inset 0 3px 6px rgba(255,255,255,0.4),
        inset 0 -3px 6px rgba(0,0,0,0.3);

}




.map-container {
    margin-top: 40px;
    border-radius: 24px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.06);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.45);

    position: relative;
}

.map-container iframe {
    filter: grayscale(100%) contrast(1.1);
}

.contact .map-container {
    border: 1px solid rgba(212,168,79,0.2);
}

/* whatsapp boton */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 25px;

    width: 60px;
    height: 60px;

    background: #000502;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 10px 25px rgba(41, 247, 103, 0.4);

    z-index: 2000;

    transition: all 0.3s ease;
}

.whatsapp-float img {
    width: 40px;
    height: 40px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}
@keyframes pulse {
    0% { transform: scale(1.3); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1.3); }
}

.whatsapp-float {
    animation: pulse 3s infinite;
}


/* INSTAGRAM FLOAT */

.instagram-float {

    position: fixed;

    bottom: 25px; /* arriba del whatsapp */
    right: 25px;

    width: 60px;
    height: 60px;

    background: #000502;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow:
        0 10px 25px rgba(255, 0, 140, 0.35);

    z-index: 2000;

    transition: all 0.3s ease;

    animation: pulse 3s infinite;
}

.instagram-float img {

    width: 38px;
    height: 38px;
}

.instagram-float:hover {

    transform: scale(1.1);
}








/* =========================
   FOOTER PREMIUM
========================= */

.footer {
    background: #050505;
    color: #ccc;
    padding: 60px 10% 30px;
    border-top: 1px solid rgba(212,168,79,0.2);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h3 {
    color: #d4a84f;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #aaa;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #d4a84f;
}

.footer-logo {
    width: 200px;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #777;
}

/* REDES SOCIALES FOOTER */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social a {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.05);
    color: #d4a84f;

    transition: all 0.3s ease;
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

/* HOVER PRO */
.footer-social a:hover {
    background: #d4a84f;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212,168,79,0.4);
}

/* 📱 MOBILE */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 15px;
    }
}


















/* ================================================= */
/* ==================== TABLET ===================== */
/* ================================================= */

@media (max-width: 1024px) {

    /* TESTIMONIOS */
    .testimonials-page .videos-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ================================================= */
/* ==================== MOBILE ===================== */
/* ================================================= */

@media (max-width: 900px) {

    /* NAVBAR */

    .navbar nav {

        position: fixed;

        top: 0;
        right: 0;

        transform: translateX(100%);

        width: 35%;
        max-width: 280px;
        height: 100vh;

        background: #0a0a0a;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        transition: transform 0.4s ease;

        z-index: 1001;
    }

    .navbar nav.active {
        transform: translateX(0);
    }

    .navbar ul {
        flex-direction: column;
        gap: 30px;
    }

    .menu-toggle {

        display: flex;
        flex-direction: column;

        gap: 5px;

        background: none;
        border: none;

        cursor: pointer;

        z-index: 1002;
    }

    .menu-toggle span {

        width: 25px;
        height: 2px;

        background: #d4a84f;
    }

    .logo img {
        height: 90px;
    }

    /* SERVICIOS */

    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* CONTACTO */

    .contact-container {
        flex-direction: column;
    }

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }


    .footer-col {
        text-align: center;
    }

    .footer-social {

        display: flex;

        justify-content: center;

        align-items: center;

        gap: 18px;

        margin-top: 20px;
    }

}



/* ================================================= */
/* ================= MOBILE SMALL ================== */
/* ================================================= */

@media (max-width: 768px) {

    /* ================================================= */
    /* ====================== HERO ===================== */
    /* ================================================= */

    .hero {
    position: relative;
    height: 100vh;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 0 24px;

    background: #0B0B0B;
}

/* ======================
   FONDO (IMAGEN + CURVA)
====================== */

.hero-visual {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 1;
}

/* la imagen real del slider */
.hero-visual img,
.hero-visual svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* eliminamos paths del svg si estorban */
.hero-visual path {
    display: none;
}

/* CURVA REAL COMO RECORTE DEL FONDO */
.hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    clip-path: ellipse(85% 90% at 100% 50%);
    
}

.hero-visual::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;

    width: 100%;
    height: 100%;

    z-index: 4;
    pointer-events: none;

    background-repeat: no-repeat;
    background-position: center;
    transform: translateX(-68%);
    background-size: contain;

    /* SVG curva dorada como fondo */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100,0 C79,18 79,83 100,100' fill='none' stroke='%23C6A15B' stroke-width='3.5'/%3E%3C/svg%3E");

    filter: drop-shadow(0 0 6px rgba(198,161,91,0.25));
}

/* capa de profundidad sobre la imagen */
.hero-visual::after {
    content: "";

    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at right center,
        rgba(198,161,91,0.10),
        transparent 60%
    );

    z-index: 2;
}

/* ======================
   OVERLAY OSCURO
====================== */

.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 3;

    background: rgba(0, 0, 0, 0.25);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(6px);
}

/* ======================
   TEXTO (ENCIMA DE TODO)
====================== */

.hero-content {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 100%;

    padding: 0 8vw;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-tag {
    font-size: 0.78rem;
    letter-spacing: 4px;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2.6rem, 10vw, 4.2rem);
    line-height: 1.05;

    max-width: 12ch;
    margin-bottom: 20px;

    color: #fff;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;

    max-width: 30ch;

    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
}

.btn-premium {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ======================
   SLIDER FIX
====================== */

.slide {
    clip-path: none !important;
}






/* =========================
   DR FELIPE MOBILE
========================= */

.doctor {

    padding: 100px 8%;
}

.doctor-container {

    grid-template-columns: 1fr;

    gap: 50px;
}

.doctor-img {

    display: flex;
    justify-content: center;
}

.doctor-img img {

    max-width: 100%;

    height: 520px;
}

.doctor-text {

    text-align: left;
}

.doctor-text h2 {

    max-width: 100%;

    font-size: clamp(2.5rem, 10vw, 4rem);
}



 /* ================================================= */
/* ================= SERVICIOS MOBILE ============== */
/* ================================================= */

.services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
}

/* CONTENEDOR GENERAL PANEL */
.service-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
}

.service-panel.active {
    max-height: 2000px;
    opacity: 1;
    margin-top: 20px;
}

/* =========================
   PANEL ORIGINAL (desktop → mobile override)
========================= */
.panel-content {
    padding: 25px;
    grid-template-columns: 1fr !important;
    gap: 25px;
    overflow: visible;
}

/* =========================
   GALERÍA (CLAVE DEL PROBLEMA)
========================= */
.panel-gallery {
    grid-template-columns: 1fr !important; /* 🔥 ESTO ES LO IMPORTANTE */
    display: grid;
    gap: 15px;
}

.panel-gallery img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 18px;
}

/* =========================
   MOBILE DETAIL (ACORDEÓN JS)
========================= */
.mobile-detail {
    display: block;
    width: 100%;

    overflow: hidden;
    max-height: 0;
    opacity: 0;

    transition: all 0.4s ease;
    margin-top: 12px;
}

/* estado abierto controlado por JS */
.mobile-detail.open {
    max-height: 2000px;
    opacity: 1;
}

    /* ================================================= */
    /* ====================== VIDEOS =================== */
    /* ================================================= */

    .videos-container,
    .testimonials-page .videos-container {

        grid-template-columns: 1fr;

        gap: 25px;
    }

    .video-card {

        padding: 20px;
    }

    .video-wrapper {

        width: 100%;
    }

    .video-frame {

        width: 100%;
        height: auto;

        display: block;

        border-radius: 12px;

        background: #000;
    }

    
}

/* ================================================= */
/* ================= EXTRA SMALL =================== */
/* ================================================= */

@media (max-width: 500px) {

    .services-container {
        grid-template-columns: 1fr;
    }
}


/* ================================================= */
/* ================= ANIMACIONES =================== */
/* ================================================= */

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}








/* ================================================= */
/* ========== PANTALLAS GRANDES (2K) ============== */
/* ================================================= */

@media (min-width: 1920px) {

    /* CONTENEDOR GENERAL */
    .container {
        max-width: 1800px;
        margin: 0 auto;
    }

    /* HERO */
    .hero-content {
        max-width: 900px;
    }

    .hero-title {
        font-size: 6rem;
    }

    .hero-subtitle {
        font-size: 1.35rem;
        max-width: 700px;
    }

    .hero-tag {
        font-size: 1rem;
    }

    .btn-premium {
        padding: 20px 42px;
        font-size: 1.1rem;
    }

    /* TITULOS GENERALES */
    .services-header h2,
    .clinic-content h2,
    .doctor-text h2,
    .testimonials-header h2,
    .hero-testimonials-content h1 {
        font-size: 5rem;
    }

    /* TEXTOS GENERALES */
    .services-header p,
    .clinic-content p,
    .doctor-text p,
    .testimonials-header p,
    .hero-testimonials-content p {
        font-size: 1.2rem;
    }

    /* SERVICIOS */
    .service-card {
        padding: 45px 35px;
    }

    .service-card h3 {
        font-size: 1.7rem;
    }

    .service-card p {
        font-size: 1.1rem;
    }

    .panel-text h3 {
        font-size: 3.5rem;
    }

    .panel-text p,
    .panel-text ul li {
        font-size: 1.1rem;
    }

    .panel-gallery img {
        height: 400px;
    }

    /* CLÍNICA */
    .clinic-slider {
        height: 700px;
    }

    /* DOCTOR */
    .doctor-img img {
        max-width: 520px;
        height: 720px;
    }

    .doctor-text h4 {
        font-size: 1.8rem;
    }

    /* TESTIMONIOS */
    .video-card {
        padding: 30px;
    }

    .video-card h3 {
        font-size: 1.6rem;
    }

    .video-card p {
        font-size: 1.1rem;
    }

    /* CONTACTO */
    .contact h3 {
        font-size: 2.2rem;
    }

    .contact-info h2 {
        font-size: 2.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1.1rem;
        padding: 18px 20px;
    }

    .contact-card {
        width: 320px;
        padding: 35px;
    }

    /* FOOTER */
    .footer {
        font-size: 1.05rem;
    }
}


/* ================================================= */
/* =========== PANTALLAS 4K / ULTRAWIDE ============ */
/* ================================================= */

@media (min-width: 2560px) {

    body {
        font-size: 18px;
    }

    .container {
        max-width: 2200px;
    }

    /* HERO */
    .hero-content {
        max-width: 1050px;
    }

    .hero-title {
        font-size: 7rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        max-width: 850px;
    }

    .hero-tag {
        font-size: 1.1rem;
    }

    .btn-premium {
        padding: 24px 48px;
        font-size: 1.2rem;
    }

    /* TITULOS */
    .services-header h2,
    .clinic-content h2,
    .doctor-text h2,
    .testimonials-header h2,
    .hero-testimonials-content h1 {
        font-size: 6rem;
    }

    /* PÁRRAFOS */
    .services-header p,
    .clinic-content p,
    .doctor-text p,
    .testimonials-header p,
    .hero-testimonials-content p {
        font-size: 1.3rem;
    }

    /* SERVICIOS */
    .service-card {
        padding: 55px 40px;
    }

    .service-card h3 {
        font-size: 1.9rem;
    }

    .service-card p {
        font-size: 1.2rem;
    }

    .panel-text h3 {
        font-size: 4rem;
    }

    .panel-text p,
    .panel-text ul li {
        font-size: 1.2rem;
    }

    .panel-gallery img {
        height: 480px;
    }

    /* CLÍNICA */
    .clinic-slider {
        height: 850px;
    }

    /* DOCTOR */
    .doctor-img img {
        max-width: 620px;
        height: 850px;
    }

    .doctor-text h4 {
        font-size: 2rem;
    }

    /* TESTIMONIOS */
    .video-card {
        padding: 35px;
    }

    .video-card h3 {
        font-size: 1.8rem;
    }

    .video-card p {
        font-size: 1.2rem;
    }

    /* CONTACTO */
    .contact h3 {
        font-size: 2.5rem;
    }

    .contact-info h2 {
        font-size: 3rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1.2rem;
        padding: 20px 22px;
    }

    .contact-card {
        width: 360px;
        padding: 40px;
    }

    /* FOOTER */
    .footer {
        font-size: 1.1rem;
    }
}





