/* ═══════════════════════════════════════
   QUÍTATE LOS LENTES — Directorio Médico
   Reutiliza paleta de cirugia-queratocono.html / cirugia-pterigion.html
═══════════════════════════════════════ */
:root {
    --pm-pink:       #E91E8C;
    --pm-pink-dark:  #C2177A;
    --pm-navy:       #001228;
    --pm-navy-deep:  #002343;
    --pm-blue:       #4A6CF7;
    --pm-light-blue: #E2EFFF;
    --pm-gold:       #FEC42C;
}
* { box-sizing: border-box; }
body { font-family: 'Manrope', system-ui, -apple-system, sans-serif; color: #001228; margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--pm-blue); text-decoration: none; }

/* Header compartido con home */
header.pm-header {
    position: fixed !important;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 20px;
    transition: padding 0.35s cubic-bezier(.4, 0, .2, 1), top 0.3s;
}

header.pm-header .pm-hdr-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 28px rgba(0, 18, 40, 0.13), 0 1px 4px rgba(0, 18, 40, 0.07);
    transition: border-radius 0.35s cubic-bezier(.4, 0, .2, 1),
        box-shadow 0.35s cubic-bezier(.4, 0, .2, 1),
        max-width 0.35s cubic-bezier(.4, 0, .2, 1),
        padding 0.35s cubic-bezier(.4, 0, .2, 1);
}

header.pm-header.scrolled {
    padding: 0;
}

header.pm-header.scrolled .pm-hdr-inner {
    border-radius: 0;
    max-width: 100%;
    padding: 10px 40px;
    box-shadow: 0 2px 20px rgba(0, 18, 40, 0.10);
}

header.pm-header .pm-logo img {
    height: 40px;
    width: auto;
}

header.pm-header .pm-hdr-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

header.pm-header .pm-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #001228;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.btn-hdr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pm-pink);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.35);
}

.btn-hdr:hover {
    background: var(--pm-pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.45);
}

/* Page header institucional (sustituye al hero) */
.pm-page-header {
    background: linear-gradient(135deg, #001228 0%, #002343 60%, #001A35 100%);
    padding: 132px 0 56px;
    position: relative;
    overflow: hidden;
}

.pm-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(74, 108, 247, 0.28), transparent 30%),
        radial-gradient(circle at 18% 82%, rgba(233, 30, 140, 0.18), transparent 34%);
    pointer-events: none;
}

.pm-page-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.pm-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.62); margin-bottom: 18px; }
.pm-breadcrumb a { color: #E2EFFF; }
.pm-breadcrumb .sep { margin: 0 8px; color: rgba(255,255,255,0.36); }
.pm-page-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; color: #FFB3DA; letter-spacing: 2px; text-transform: uppercase; padding-bottom: 12px; border-bottom: 2px solid rgba(226, 239, 255, 0.28); margin-bottom: 18px; }
.pm-page-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: #fff; margin: 0 0 18px; letter-spacing: -0.5px; line-height: 1.15; max-width: 880px; }
.pm-page-lede { font-size: clamp(15px, 1.4vw, 17px); color: rgba(255,255,255,0.76); line-height: 1.75; max-width: 820px; margin: 0; }
.pm-page-lede strong { color: #E2EFFF; }

/* Intro institucional con foto director y datos en línea */
.pm-intro-section { padding: 40px 0 60px; background: #fff; }
.pm-intro-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.pm-intro-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 36px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.pm-intro-text h2 { font-size: 22px; font-weight: 700; color: var(--pm-navy); margin: 0 0 14px; letter-spacing: -0.3px; }
.pm-intro-text p { font-size: 15.5px; line-height: 1.8; color: #4b5563; margin: 0 0 14px; }
.pm-intro-text p strong { color: var(--pm-navy); }
.pm-intro-photo { position: relative; }
.pm-intro-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,18,40,0.10);
}
.pm-intro-photo .photo-caption {
    margin-top: 14px;
    font-size: 13px;
    color: #7A8EA0;
    line-height: 1.5;
}
.pm-intro-photo .photo-caption strong { color: var(--pm-navy); font-weight: 700; }

/* Stats strip igual al home */
.pm-stats-strip {
    background: var(--pm-light-blue);
    padding: 40px 0;
}

.pm-stat-card {
    padding: 24px 32px;
    text-align: center;
    position: relative;
}

.pm-stat-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(74, 108, 247, 0.2);
}

.pm-stats-strip .row > div:last-child .pm-stat-card::after {
    display: none;
}

.pm-stat-icon {
    font-size: 28px;
    color: var(--pm-blue);
    margin-bottom: 8px;
}

.pm-stat-number {
    font-size: 32px;
    font-weight: 900;
    color: #001228;
    line-height: 1;
    margin-bottom: 4px;
}

.pm-pink-num {
    color: var(--pm-pink);
}

.pm-stat-label {
    font-size: 14px;
    font-weight: 700;
    color: #001228;
    margin-bottom: 2px;
}

.pm-stat-desc {
    font-size: 12px;
    color: #6b7a8d;
}

@media (max-width: 768px) {
    .pm-intro-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Sections */
.pm-info-section { padding: 80px 0; }
.pm-info-section.dark-bg { background: linear-gradient(135deg, var(--pm-navy) 0%, var(--pm-navy-deep) 100%); }
.pm-info-section.light-bg { background: #fff; }
.pm-info-section.tinted-bg { background: var(--pm-light-blue); }
.pm-section-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.pm-subtitle { font-size: 13px; font-weight: 800; color: var(--pm-pink); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; display: block; }
.pm-h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 900; line-height: 1.15; color: #001228; letter-spacing: -0.5px; margin: 0 0 16px; }
.pm-h2.on-dark { color: #fff; }
.pm-section-desc { font-size: clamp(15px, 1.4vw, 17px); color: #4b5563; line-height: 1.7; max-width: 760px; margin-bottom: 40px; }
.pm-section-desc.on-dark { color: rgba(255,255,255,0.7); }

/* Director — bloque destacado */
.director-block {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 32px rgba(0,18,40,0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}
.director-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--pm-pink) 0%, var(--pm-blue) 100%);
}
.director-photo-wrap {
    position: relative;
}
.director-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,18,40,0.15);
}
.director-badge-floating {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pm-navy);
    color: #fff;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0,18,40,0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.director-badge-floating i { color: var(--pm-pink); }
.director-name { font-size: 32px; font-weight: 900; color: #001228; margin: 0 0 6px; letter-spacing: -0.5px; }
.director-title { font-size: 16px; font-weight: 600; color: var(--pm-blue); margin: 0 0 20px; }
.director-bio { font-size: 15px; line-height: 1.7; color: #4b5563; margin-bottom: 24px; }

.director-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 24px 0;
}
.director-stat {
    background: var(--pm-light-blue);
    border-radius: 12px;
    padding: 16px 20px;
}
.director-stat .num { font-size: 28px; font-weight: 900; color: var(--pm-pink); line-height: 1; }
.director-stat .lbl { font-size: 12px; font-weight: 700; color: var(--pm-blue); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 6px; }

.director-credentials { background: #f8fafc; border-radius: 12px; padding: 20px 24px; border-left: 3px solid var(--pm-pink); }
.director-credentials h4 { font-size: 13px; font-weight: 800; color: var(--pm-pink); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 12px; }
.director-credentials ul { list-style: none; padding: 0; margin: 0; }
.director-credentials li { font-size: 14px; color: #374151; padding: 6px 0; display: flex; gap: 10px; align-items: flex-start; }
.director-credentials li i { color: #25D366; flex-shrink: 0; margin-top: 3px; }

/* Equipo Cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 16px;
}
.team-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 16px rgba(0,18,40,0.05);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,18,40,0.12);
    border-color: rgba(233,30,140,0.3);
}
.team-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}
.team-avatar {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pm-navy) 0%, var(--pm-navy-deep) 100%);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0,18,40,0.2);
}
.team-avatar i { color: var(--pm-pink); font-size: 28px; }
.team-id { font-size: 11px; font-weight: 800; color: var(--pm-pink); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 3px; }
.team-role { font-size: 18px; font-weight: 800; color: #001228; line-height: 1.25; }
.team-spec-tag {
    display: inline-block;
    background: var(--pm-light-blue);
    color: var(--pm-blue);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.team-section { margin-bottom: 16px; }
.team-section-title { font-size: 11px; font-weight: 800; color: #7A8EA0; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px; }
.team-section ul { list-style: none; padding: 0; margin: 0; }
.team-section li { font-size: 13.5px; line-height: 1.55; color: #374151; padding: 4px 0; padding-left: 18px; position: relative; }
.team-section li::before {
    content: ''; position: absolute; left: 0; top: 11px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--pm-blue);
}
.team-section li strong { color: #001228; }

.team-numbers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
}
.team-numbers .tnum {
    text-align: center;
}
.team-numbers .tnum .n { font-size: 22px; font-weight: 900; color: var(--pm-pink); line-height: 1; }
.team-numbers .tnum .l { font-size: 10.5px; font-weight: 700; color: var(--pm-blue); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 4px; }

.team-cedula {
    margin-top: 16px;
    padding: 10px 14px;
    background: rgba(74,108,247,0.06);
    border-radius: 8px;
    font-size: 12px;
    color: #4b5563;
}
.team-cedula i { color: var(--pm-blue); margin-right: 6px; }

/* Acreditaciones */
.creds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.cred-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px 18px;
    text-align: center;
    transition: all .25s;
}
.cred-item:hover { background: rgba(255,255,255,0.09); border-color: rgba(233,30,140,0.3); transform: translateY(-3px); }
.cred-item i { font-size: 32px; color: var(--pm-pink); margin-bottom: 10px; }
.cred-item .name { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.4; }
.cred-item .acronym { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* Aviso de privacidad */
.privacy-notice {
    background: rgba(74,108,247,0.05);
    border: 1px solid rgba(74,108,247,0.15);
    border-radius: 16px;
    padding: 28px 32px;
    margin-top: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.privacy-notice .icon-wrap {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(74,108,247,0.12);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.privacy-notice .icon-wrap i { color: var(--pm-blue); font-size: 22px; }
.privacy-notice h4 { font-size: 17px; font-weight: 800; color: #001228; margin: 0 0 8px; }
.privacy-notice p { font-size: 14px; line-height: 1.65; color: #4b5563; margin: 0; }

/* CTA */
.pm-cta-section { background: linear-gradient(135deg, var(--pm-pink) 0%, var(--pm-pink-dark) 100%); padding: 70px 0; text-align: center; }
.pm-cta-section .pm-h2 { color: #fff; }
.pm-cta-section p { color: rgba(255,255,255,0.92); font-size: 17px; max-width: 640px; margin: 0 auto 32px; line-height: 1.65; }
.pm-cta-btn { display: inline-flex; align-items: center; gap: 12px; background: #25D366; color: #fff !important; padding: 20px 36px; border-radius: 10px; font-size: 17px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 36px rgba(0,0,0,0.2); transition: all .25s; }
.pm-cta-btn:hover { background: #1da851; transform: translateY(-3px); }

/* FAQ */
.pm-faq-section { background: #fff; padding: 80px 0; }
.pm-faq-list { max-width: 860px; margin: 0 auto; }
details.pm-faq { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 10px; overflow: hidden; transition: border-color .2s; }
details.pm-faq[open] { border-color: rgba(233,30,140,0.3); }
details.pm-faq summary { padding: 18px 24px; font-weight: 700; font-size: 15px; color: #001228; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.pm-faq summary::after { content: '+'; font-size: 24px; color: var(--pm-pink); font-weight: 700; line-height: 1; }
details.pm-faq[open] summary::after { content: '−'; }
details.pm-faq > div { padding: 0 24px 22px; color: #4b5563; line-height: 1.7; font-size: 14.5px; }
details.pm-faq a { color: var(--pm-blue); text-decoration: underline; }

/* Sticky Bottom */
.pm-sticky-bottom {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--pm-pink);
    color: #fff;
    padding: 14px 24px;
    display: none; align-items: center; justify-content: center; gap: 20px;
    z-index: 999;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
.pm-sticky-bottom strong { font-size: 15px; }
.pm-sticky-bottom .sticky-btn { background: #fff; color: var(--pm-pink); padding: 10px 22px; border-radius: 8px; font-weight: 800; font-size: 14px; text-decoration: none; }

/* Responsive */
@media (max-width: 991px) {
    header.pm-header .pm-phone {
        display: none;
    }

    .director-block { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
    .director-photo-wrap { max-width: 320px; margin: 0 auto; width: 100%; }
    .team-grid { grid-template-columns: 1fr; }
    .pm-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
    .pm-stat-card::after { display: none; }
    .creds-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    header.pm-header {
        top: 12px;
    }

    header.pm-header .pm-hdr-inner {
        padding: 10px 16px;
    }

    header.pm-header.scrolled .pm-hdr-inner {
        padding: 10px 18px;
    }

    .pm-page-header {
        padding-top: 112px;
    }

    .pm-info-section { padding: 60px 0; }
    .pm-stats-inner { grid-template-columns: 1fr 1fr; }
    .director-stats { grid-template-columns: 1fr 1fr; }
    .pm-sticky-bottom { display: flex; }
    .pm-sticky-bottom { flex-direction: column; gap: 8px; padding: 10px 16px; }
    .pm-sticky-bottom strong { font-size: 13px; text-align: center; }
}
