/* =========================================================
   PRESENTACIÓN DE LA DOCTORA
   Paleta: verde salvia #6ea89f + azul marino #0f2a43 / #223746
   Solo se animan transform y opacity (barato para el GPU).
   ========================================================= */

.doctor-section {
    --doc-sage: #6ea89f;
    --doc-navy: #0f2a43;
    --doc-navy-2: #223746;
    --doc-text: #5b6b7c;

    position: relative;
    overflow: hidden;
    padding: clamp(56px, 9vw, 112px) clamp(16px, 5vw, 24px);
}

/* fondo decorativo muy sutil */
.doctor-bg {
    position: absolute;
    inset: 0;
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000 0%, transparent 65%);
    mask-image: radial-gradient(ellipse at 20% 50%, #000 0%, transparent 65%);
    pointer-events: none;
}

.doctor-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.3fr);
    gap: clamp(40px, 7vw, 96px);
    align-items: center;
}

/* ---------------------------------------------------------
   Imagen
--------------------------------------------------------- */
.doctor-media {
    --px: 0;
    --py: 0;
}

.doctor-frame {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.doctor-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    transform: translate3d(calc(var(--px) * 8px), calc(var(--py) * 8px), 0);
    transition: transform 0.4s ease-out;
}

.doctor-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    margin-top: 50px;
}

.doctor-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ---------- Badges flotantes ---------- */
.doctor-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 42, 67, 0.06);
    border-radius: 16px;
    box-shadow: 0 16px 34px -14px rgba(15, 42, 67, 0.35);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--doc-navy);
}

.doctor-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--doc-navy-2);
    color: var(--doc-sage);
}


.doctor-badge--bottom {
    bottom: 10%;
    right: -6%;
    animation: doctor-float 6s ease-in-out -3s infinite;
}

@keyframes doctor-float {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -10px;
    }
}

@keyframes doctor-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------------------------------------------------------
   Contenido
--------------------------------------------------------- */
.doctor-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--doc-sage);
}

.doctor-eyebrow::before {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--doc-sage);
}

.doctor-title {
    margin: 14px 0 0;
    font-size: clamp(30px, 4.6vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--doc-navy);
    text-wrap: balance;
}

/* subrayado que se dibuja al entrar */
.doctor-underline {
    background: linear-gradient(var(--doc-sage), var(--doc-sage)) no-repeat 0 100% / 0% 4px;
    padding-bottom: 4px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-size 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.9s;
}

.doctor-section.is-visible .doctor-underline {
    background-size: 100% 4px;
}

.doctor-role {
    margin: 12px 0 0;
    font-size: clamp(13px, 2vw, 15px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--doc-navy-2);
    opacity: 0.8;
}

.doctor-content p {
    margin: 18px 0 0;
    font-size: clamp(15px, 2vw, 16px);
    line-height: 1.3;
    color: var(--doc-text);
}

.doctor-content .doctor-role {
    margin-top: 12px;
    line-height: 1.4;
}

.doctor-content .doctor-lead {
    margin-top: 24px;
    font-size: clamp(16px, 2.2vw, 18px);
    color: var(--doc-navy-2);
    font-weight: 500;
}

.doctor-content .doctor-closing {
    font-weight: 600;
    color: var(--doc-navy);
}

/* ---------- Valores ---------- */
.doctor-values {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.doctor-values li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e3ecee;
    border-radius: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.doctor-value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--doc-sage-soft);
    color: var(--doc-sage);
}

.doctor-values strong {
    display: block;
    font-size: 15px;
    color: var(--doc-navy);
}

.doctor-values li span:not(.doctor-value-icon) {
    display: block;
    margin-top: 2px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--doc-text);
}

@media (hover: hover) and (pointer: fine) {
    .doctor-values li:hover {
        border-color: var(--doc-sage);
        box-shadow: 0 12px 28px -16px rgba(110, 168, 159, 0.7);
        transform: translateY(-2px);
    }
}

/* ---------- CTA ---------- */
.doctor-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    padding: 15px 28px;
    border-radius: 999px;
    background: var(--doc-navy-2);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 30px -12px rgba(34, 55, 70, 0.6);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.doctor-cta svg {
    transition: transform 0.25s ease;
}

.doctor-cta:hover {
    background: var(--doc-sage);
    transform: translateY(-2px);
}

.doctor-cta:hover svg {
    transform: translateX(4px);
}

.doctor-cta:focus-visible {
    outline: 2px solid var(--doc-sage);
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   Animación de entrada.
   Solo se oculta si el JS cargó (clase .doctor-js), así que
   sin JavaScript el contenido sigue visible.
--------------------------------------------------------- */
.doctor-js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0s);
}

.doctor-js.is-visible [data-reveal] {
    opacity: 1;
    transform: none;
}

/* imagen: sube y se aclara */
.doctor-js .doctor-frame {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 0.9s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.doctor-js.is-visible .doctor-frame {
    opacity: 1;
    transform: none;
}

.doctor-js .doctor-photo img {
    transform: scale(1.12);
    transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.doctor-js.is-visible .doctor-photo img {
    transform: scale(1);
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 900px) {
    .doctor-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .doctor-frame {
        max-width: 380px;
    }

    .doctor-content {
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .doctor-frame {
        max-width: 320px;
    }

    .doctor-badge {
        padding: 8px 12px 8px 8px;
        font-size: 12px;
        gap: 8px;
    }

    .doctor-badge-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .doctor-badge--top {
        left: -4%;
    }

    .doctor-badge--bottom {
        right: -4%;
    }

    .doctor-ring {
        width: 84px;
        height: 84px;
        top: -14px;
        right: -10px;
    }

    .doctor-values li {
        padding: 12px 14px;
    }

    .doctor-cta {
        width: 100%;
    }
}

/* ---------------------------------------------------------
   Accesibilidad: sin animaciones si el usuario lo pide
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    .doctor-ring,
    .doctor-badge {
        animation: none !important;
    }

    .doctor-js [data-reveal],
    .doctor-js .doctor-frame,
    .doctor-js .doctor-photo img,
    .doctor-underline,
    .doctor-blob,
    .doctor-photo {
        transition: none !important;
    }

    .doctor-js [data-reveal],
    .doctor-js .doctor-frame {
        opacity: 1;
        transform: none;
    }

    .doctor-js .doctor-photo img {
        transform: none;
    }

    .doctor-underline {
        background-size: 100% 4px;
    }
}