/* Theme "azul-esmeralda" — Clínica Di Pascua
   Recoloreo del sitio real (WordPress + Dent-All) sobre la misma estructura
   de secciones: header blanco, franjas de especialidades a color, banda de
   ventajas, banda de stats, testimonios en tarjetas, banda de profesionales
   con foto de fondo, footer oscuro. Todo controlado por variables CSS. */

@font-face {
    font-family: 'dp-icons';
    src: url('../icomoon.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
.dp-icon {
    font-family: 'dp-icons' !important;
    font-style: normal;
    speak: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}
.dp-icon-implantologia:before { content: "\e90f"; }  /* fake-tooth */
.dp-icon-cirugia:before { content: "\e626"; }         /* prick */
.dp-icon-bichectomia:before { content: "\e609"; }     /* tooth-2 */
.dp-icon-pago:before { content: "\e60b"; }            /* computer */
.dp-icon-tecnologia:before { content: "\e60d"; }      /* tooth-4 */
.dp-icon-garantia:before { content: "\e60e"; }        /* tooth-5 */
.dp-icon-certificado:before { content: "\e60c"; }     /* sertificate */
.dp-icon-telefono:before { content: "\e605"; }        /* roundels */
.dp-icon-reloj:before { content: "\e606"; }           /* clock */
.dp-icon-maletin:before { content: "\e91e"; }         /* doctor-suitcase */
.dp-icon-marcador:before { content: "\e610"; }        /* map-marker */

:root {
    --color-primary: #0B2E4F;
    --color-primary-dark: #0D3B5C;
    --color-accent: #1E7A5F;
    --color-accent-light: #2A9D7C;
    --color-slate: #3A4F5C;
    --color-bg: #FFFFFF;
    --color-bg-soft: #F7F9F8;
    --color-text: #3A4147;
    --color-text-soft: #6B7580;
    --color-border: #E2E8E5;
    --color-white: #FFFFFF;
    --color-ink: #0A1F33;
    --color-ink-dark: #071729;
    --color-heading-soft: #4C4C4C;

    --font-base: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: var(--font-base);

    --radius: 6px;
    --shadow-card: 0 2px 12px rgba(11, 46, 79, 0.08);
    --container-width: 1160px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-weight: 300;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-light); }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.25;
    margin: 0 0 0.6em;
}

h2.section-heading { font-size: 2.1rem; font-weight: 400; color: var(--color-heading-soft); margin-bottom: 32px; }

/* Foco visible para navegación por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    background: var(--color-accent);
    color: var(--color-white);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
.btn:hover { background: var(--color-accent-light); color: var(--color-white); }
.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--color-white); }

/* ===== Top bar ===== */
.top_bar {
    background: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.82rem;
    padding: 1px 0;
    color: var(--color-text-soft);
    font-weight: 400;
}
.top_bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.top_bar_right { display: flex; align-items: center; gap: 20px; }
.top_bar .socials { display: flex; gap: 16px; align-items: center; }
.top_bar .socials a {
    color: var(--color-text-soft);
    display: flex; align-items: center; justify-content: center;
}
.top_bar .socials a:hover { color: var(--color-accent); }
.top-search { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: 3px; overflow: hidden; }
.top-search input {
    border: none; outline: none; padding: 7px 12px; font-size: 0.85rem; width: 130px;
    font-family: inherit; font-weight: 400; color: var(--color-text);
}
.top-search button {
    border: none; background: transparent; padding: 6px 12px; cursor: pointer;
    color: var(--color-text-soft); display: flex; align-items: center;
}
.top-search button:hover { color: var(--color-accent); }
@media (max-width: 700px) { .top-search { display: none; } }

/* ===== Header / nav ===== */
.site-header { background: var(--color-white); }
.site-header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}
.site-header .logo { display: flex; align-items: center; gap: 14px; }
.site-header .logo img { height: 68px; width: auto; display: block; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-primary); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header .menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.site-header .menu a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.site-header .menu a:hover,
.site-header .menu .active a { color: var(--color-accent); }
.site-header .menu .chevron { font-size: 0.7em; }
.site-header .menu .has-submenu { position: relative; display: flex; align-items: center; }
.submenu-toggle {
    display: none; align-items: center; justify-content: center;
    width: 22px; height: 22px; padding: 0; border: none; background: transparent;
    color: var(--color-text); cursor: pointer;
}
.site-header .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    border-radius: 8px;
    min-width: 200px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 10;
}
.site-header .has-submenu:hover .submenu,
.site-header .has-submenu:focus-within .submenu,
.site-header .has-submenu.open .submenu { display: block; }
.site-header .submenu a { color: var(--color-text); display: block; padding: 8px 18px; text-transform: none; }
.site-header .submenu a:hover { background: var(--color-bg-soft); color: var(--color-accent); }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .site-header .menu {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 8px 0 16px;
    }
    .site-header .menu.open { display: flex; }
    .site-header .menu li { width: 100%; }
    .site-header .menu > li > a { display: block; padding: 12px 0; }
    .site-header .menu .has-submenu { flex-wrap: wrap; }
    .submenu-toggle { display: flex; margin-left: auto; }
    .site-header .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        padding: 0 0 8px 16px;
    }
}

/* Info bar under nav: address/hours/CTA */
.info-bar { background: var(--color-bg-soft); }
.info-bar .container { display: grid; grid-template-columns: 1fr 1fr auto; align-items: stretch; }
.info-bar .info-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 0; font-size: 0.85rem; color: var(--color-text-soft); }
.info-bar .dot-icon {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primary);
}
.info-bar .info-item strong { display: block; color: var(--color-text); font-weight: 500; }
.info-bar .info-item strong a { color: var(--color-text); }
.info-bar .info-item strong a:hover { color: var(--color-accent); }
.info-bar .cta {
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 28px;
    font-size: 0.85rem;
    white-space: nowrap;
}
.info-bar .cta a { color: #fff; display: block; line-height: 1.5; }
@media (max-width: 800px) { .info-bar .container { grid-template-columns: 1fr; } }

/* ===== Banner de página interna (breadcrumb + título) ===== */
.page-banner {
    position: relative;
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-slate) 100%);
    background-size: cover;
    background-position: center;
    padding: 56px 0;
    color: #fff;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(11,46,79,0.45); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner .breadcrumb { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
.page-banner .breadcrumb a { color: rgba(255,255,255,0.75); }
.page-banner h1 { color: #fff; font-weight: 300; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.45); }

/* Variante plana: sin foto de fondo, para páginas donde el original no usa banner fotográfico */
.page-banner-plain { background: var(--color-bg-soft); padding: 28px 0; }
.page-banner-plain::before { display: none; }
.page-banner-plain .breadcrumb,
.page-banner-plain .breadcrumb a { color: var(--color-text-soft); }
.page-banner-plain h1 { color: var(--color-text); font-weight: 400; }

/* ===== Hero carousel ===== */
.hero {
    position: relative;
    min-height: 560px;
    background: var(--color-primary);
    overflow: hidden;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
    z-index: 1;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; transition: opacity 0.8s ease; }
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(11,46,79,0.55) 0%, rgba(13,59,92,0.35) 55%, rgba(13,59,92,0.15) 100%);
}
.hero-slide .container { position: relative; z-index: 1; max-width: 640px; }
.hero h1, .hero h2 { color: var(--color-white); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 300; text-shadow: 0 2px 12px rgba(0,0,0,0.55); }
.hero p { color: rgba(255,255,255,0.95); font-size: 1.15rem; margin: 0 0 28px; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,0,0,0.35); color: #fff; border: none; cursor: pointer;
    font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center;
    z-index: 5; transition: background 0.2s ease;
}
.hero-arrow:hover { background: rgba(0,0,0,0.55); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }
@media (max-width: 700px) { .hero-arrow { display: none; } }

.hero-timer-track {
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: rgba(255,255,255,0.15); z-index: 6;
}
.hero-timer-bar {
    height: 100%; width: 0%; background: var(--color-accent);
}
.hero-timer-bar.running { animation: hero-timer-fill 6s linear forwards; }
@keyframes hero-timer-fill { from { width: 0%; } to { width: 100%; } }

/* ===== Especialidades: franjas de color full-bleed ===== */
.specialty-strip-wrap { position: relative; margin-top: -70px; padding: 0; background: transparent; z-index: 2; }
.specialty-strip { display: flex; }
.specialty-block {
    position: relative; padding: 44px 110px 44px 36px; color: #fff; min-height: 210px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; transform: scale(1); z-index: 1;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    flex: 1 1 0; margin-left: -1px;
    display: block; text-decoration: none;
}
.specialty-block:first-child { margin-left: 0; }
.specialty-block:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(0,0,0,0.25); z-index: 3; }
.specialty-block:nth-child(4n+1) { background: var(--color-primary); }
.specialty-block:nth-child(4n+2) { background: var(--color-accent); }
.specialty-block:nth-child(4n+3) { background: var(--color-primary); }
.specialty-block:nth-child(4n+4) { background: var(--color-primary-dark); }
.specialty-block h3 { color: #fff; font-weight: 400; font-size: 1.3rem; margin-bottom: 14px; max-width: 220px; }
.specialty-block p { font-size: 0.92rem; color: rgba(255,255,255,0.85); margin: 0; max-width: 220px; }
.specialty-block .icon { position: absolute; right: 28px; top: 44px; opacity: 0.9; }
.specialty-block:nth-child(4n+2):hover .icon { color: var(--color-primary); }
@media (max-width: 800px) { .specialty-block { padding-right: 36px; } .specialty-block .icon { display: none; } }
@media (max-width: 800px) { .specialty-strip { flex-direction: column; } .specialty-block { margin-left: 0; margin-top: -1px; } .specialty-block:first-child { margin-top: 0; } }

/* ===== Secciones genéricas ===== */
section { padding: 64px 0; }
section.soft { background: var(--color-bg-soft); }

/* Acerca de nosotros */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.about-grid img { border-radius: var(--radius); margin-bottom: 20px; }
.about-box { background: var(--color-bg-soft); padding: 32px; border-radius: var(--radius); text-align: center; }
.about-box img { max-width: 240px; margin: 0 auto 20px; display: block; mix-blend-mode: multiply; }
.about-box h4, .about-box p, .about-box ul { text-align: left; }
.about-box h4 { text-transform: uppercase; font-size: 0.85rem; letter-spacing: .04em; color: var(--color-text); margin-bottom: 6px; }
.about-box p, .about-box ul { color: var(--color-text-soft); font-size: 0.92rem; margin: 0 0 20px; }
.about-box ul { padding-left: 18px; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

/* Novedades / blog cards */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Video embebido dentro de contenido rico (servicios, noticias) */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; margin: 20px 0; border-radius: var(--radius); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Imagen flotante dentro de contenido rico (servicios) */
.inline-float { max-width: 280px; float: left; margin: 0 16px 12px 0; border-radius: var(--radius); }
@media (max-width: 600px) { .inline-float { float: none; max-width: 100%; margin: 0 0 12px; } }

/* Imagen "alignnone" del original: sin flotar, va en línea con las demás fotos del mismo párrafo */
.inline-plain { display: inline-block; max-width: 280px; margin: 0 10px 10px 0; vertical-align: top; border-radius: var(--radius); }
@media (max-width: 600px) { .inline-plain { display: block; max-width: 100%; margin: 0 0 10px; } }

/* Imagen "aligncenter" del original */
.inline-center { display: block; max-width: 100%; margin: 16px auto; border-radius: var(--radius); }

.post-card { background: var(--color-bg-soft); border-radius: var(--radius); overflow: hidden; }
.post-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card .body { padding: 24px; }
.post-card .fecha { color: var(--color-text-soft); font-size: 0.78rem; }
.post-card h3 { font-size: 1.1rem; margin: 8px 0 12px; }
.post-card h3 a { color: var(--color-text); }
.post-card p { color: var(--color-text-soft); font-size: 0.9rem; }
.post-card p.clamp-4 {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
    overflow: hidden;
}
.post-card .btn { margin-top: 12px; padding: 10px 22px; font-size: 0.85rem; }

/* Banners de aliados / terceros (dentro de la sección Novedades) */
.banners-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px;
    margin-top: 40px;
}
.banner-item {
    display: flex; align-items: center; justify-content: center;
    min-height: 83px;
}
.banner-item img { max-height: 83px; width: auto; mix-blend-mode: multiply; }
.banner-item .banner-placeholder {
    display: flex; align-items: center; justify-content: center;
    min-width: 208px; height: 83px; padding: 0 20px;
    border: 1px dashed var(--color-border); border-radius: var(--radius);
    color: var(--color-text-soft); font-size: 0.85rem; text-align: center;
}

/* Cards genéricas (servicios, casos, convenios, instalaciones) */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-card);
}
.card h3 { font-size: 1.1rem; }
.card p { color: var(--color-text-soft); font-size: 0.95rem; margin: 0; }

/* Tarjeta de profesional (página La Clínica > Profesionales) */
.staff-card {
    background: var(--color-white); border-top: 3px solid var(--color-accent);
    text-align: center; box-shadow: var(--shadow-card);
}
.staff-card .staff-card-body { padding: 28px 20px 20px; }
.staff-card img, .staff-card .avatar {
    width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 16px; background: var(--color-bg-soft);
}
.staff-card .avatar { display: flex; align-items: center; justify-content: center; color: var(--color-accent); font-weight: 700; font-size: 1.3rem; }
.staff-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.staff-card .especialidad { min-height: 2.6em; color: var(--color-text-soft); font-weight: 400; }
.staff-card-links { display: flex; border-top: 1px solid var(--color-border); }
.staff-card-links a {
    flex: 1; padding: 14px 0; text-align: center; color: var(--color-text-soft);
    border-right: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center;
}
.staff-card-links a:last-child { border-right: none; }
.staff-card-links a:hover { background: var(--color-bg-soft); color: var(--color-accent); }

.staff-card-trigger {
    display: block; width: 100%; border: none; background: transparent;
    font-family: inherit; cursor: pointer; transition: background 0.2s ease;
    appearance: none; -webkit-appearance: none; text-align: center; color: var(--color-text);
}
.staff-card-trigger:hover, .staff-card-trigger:focus-visible { background: var(--color-bg-soft); }
.staff-card-trigger h3 { color: var(--color-text); }

/* Modal de ficha profesional */
.staff-modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(11,46,79,0.55);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.staff-modal-overlay[hidden] { display: none; }
.staff-modal {
    position: relative; background: var(--color-white); border-radius: var(--radius);
    max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto;
    padding: 32px; box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.staff-modal-close {
    position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
    border: none; background: var(--color-bg-soft); border-radius: 50%;
    font-size: 1.3rem; line-height: 1; color: var(--color-text-soft); cursor: pointer;
}
.staff-modal-close:hover { background: var(--color-border); color: var(--color-text); }
.staff-modal-header { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; text-align: left; }
.staff-modal-header img, .staff-modal-header .avatar {
    width: 90px; height: 90px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    background: var(--color-bg-soft); display: flex; align-items: center; justify-content: center;
    color: var(--color-accent); font-weight: 700; font-size: 1.2rem;
}
.staff-modal-header h3 { margin-bottom: 4px; }
.staff-modal-header .especialidad { color: var(--color-text-soft); font-size: 0.9rem; margin-bottom: 10px; }
.staff-modal-header .staff-card-links { border-top: none; justify-content: flex-start; gap: 8px; }
.staff-modal-header .staff-card-links a {
    flex: none; width: 32px; height: 32px; border: 1px solid var(--color-border); border-radius: 50%; padding: 0;
}
.staff-modal-body { text-align: left; color: var(--color-text-soft); font-size: 0.92rem; line-height: 1.8; border-top: 1px solid var(--color-border); padding-top: 20px; }
@media (max-width: 500px) { .staff-modal-header { flex-direction: column; text-align: center; } .staff-modal-header .especialidad, .staff-modal-header .staff-card-links { justify-content: center; } }

.caso-fotos { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px; margin-top: 14px; }
.caso-fotos img { max-width: 100%; height: auto; }

.la-clinica-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }
.la-clinica-layout .grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .la-clinica-layout { grid-template-columns: 1fr; } }

/* Sidebar de Servicios (buscar + novedades) */
.services-sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-block { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; }
.sidebar-block h4 { color: var(--color-primary); font-size: 1rem; padding-bottom: 12px; border-bottom: 2px solid var(--color-accent); margin-bottom: 16px; }
.sidebar-search { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: 3px; overflow: hidden; }
.sidebar-search input { flex: 1; border: none; outline: none; padding: 10px 12px; font-size: 0.9rem; font-family: inherit; color: var(--color-text); }
.sidebar-search button { border: none; background: transparent; padding: 8px 12px; cursor: pointer; color: var(--color-text-soft); display: flex; align-items: center; }
.sidebar-search button:hover { color: var(--color-accent); }
.sidebar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sidebar-list li { padding-bottom: 14px; border-bottom: 1px solid var(--color-border); }
.sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list a { color: var(--color-text); font-size: 0.9rem; line-height: 1.4; }
.sidebar-list a:hover { color: var(--color-accent); }

/* Sidebar de contacto (páginas La Clínica) */
.clinic-sidebar { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px 24px; }
.clinic-sidebar h4 { color: var(--color-primary); font-size: 1rem; padding-bottom: 12px; border-bottom: 2px solid var(--color-accent); margin-bottom: 20px; }
.clinic-sidebar .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.clinic-sidebar .row p { margin: 0; color: var(--color-text-soft); font-size: 0.9rem; }
.clinic-sidebar .row .dp-icon { color: var(--color-accent); font-size: 18px; flex-shrink: 0; }

/* CTA al pie de cada servicio */
.service-cta {
    position: relative; overflow: hidden;
    margin-top: 40px; background-color: var(--color-primary); color: #fff;
    background-size: cover; background-position: center;
    border-radius: var(--radius); padding: 36px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    box-shadow: var(--shadow-card);
}
.service-cta::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(11,46,79,0.92) 0%, rgba(30,122,95,0.82) 100%);
}
.service-cta-text { position: relative; z-index: 1; }
.service-cta-eyebrow {
    display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em;
    color: rgba(255,255,255,0.7); margin-bottom: 6px;
}
.service-cta h4 { position: relative; z-index: 1; color: #fff; font-weight: 400; margin: 0; font-size: 1.25rem; line-height: 1.4; max-width: 520px; }
.service-cta .btn { position: relative; z-index: 1; background: var(--color-accent); flex-shrink: 0; padding: 14px 32px; font-size: 0.95rem; }
.service-cta .btn:hover { background: var(--color-accent-light); }
@media (max-width: 600px) { .service-cta { padding: 28px; } }

/* Ventajas: banda full-bleed a color */
.ventajas-band { background: var(--color-accent); color: #fff; padding: 64px 0; }
.ventajas-band h2 { color: #fff; font-weight: 300; }
.ventajas-band .grid-4 { gap: 32px; }
.ventajas-band .icon-circle {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.ventaja-item { text-align: center; padding: 12px; }
.ventaja-item .dp-icon { display: block; margin: 0 auto 18px; }

.ventaja-item:nth-child(1):hover .dp-icon { animation: ventaja-bounce 0.6s ease; }
.ventaja-item:nth-child(2):hover .dp-icon { animation: ventaja-wiggle 0.5s ease; }
.ventaja-item:nth-child(3):hover .dp-icon { animation: ventaja-spin 0.6s ease; }
.ventaja-item:nth-child(4):hover .dp-icon { animation: ventaja-pulse 0.5s ease; }

@keyframes ventaja-bounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-16px); }
    55% { transform: translateY(0); }
    75% { transform: translateY(-6px); }
}
@keyframes ventaja-wiggle {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-12deg); }
    40% { transform: rotate(10deg); }
    60% { transform: rotate(-8deg); }
    80% { transform: rotate(6deg); }
}
@keyframes ventaja-spin {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}
@keyframes ventaja-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
    .ventaja-item:hover .dp-icon { animation: none; }
}
.ventajas-band h4 { color: #fff; font-weight: 400; margin-bottom: 10px; }
.ventajas-band p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin: 0; }

/* Stats band */
.stats-band {
    position: relative;
    background-color: var(--color-primary-dark);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 56px 0;
}
.stats-band::before { content: ""; position: absolute; inset: 0; background: rgba(11,46,79,0.92); }
.stats-band .container { position: relative; z-index: 1; }
.stats-band .grid-4 { text-align: center; }
.stats-band .stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stats-band .stat .num { font-size: 2.6rem; font-weight: 700; color: var(--color-accent-light); line-height: 1; }
.stats-band .stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* Testimonios */
.testimonio-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
}
.testimonio-card .quote-icon {
    width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent);
    color: #fff; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 1.1rem; font-weight: 700;
}
.testimonio-card p { font-style: italic; color: var(--color-text-soft); font-size: 0.95rem; }
.testimonio-card .autor { font-weight: 600; color: var(--color-text); margin-top: 14px; display: block; }
.testimonio-card .rol { font-size: 0.78rem; color: var(--color-text-soft); }

/* Profesionales: banda con foto de fondo */
.staff-band {
    position: relative;
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-slate) 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 64px 0;
}
.staff-band::before { content: ""; position: absolute; inset: 0; background: rgba(11,46,79,0.72); }
.staff-band .container { position: relative; z-index: 1; }
.staff-band h2 { color: #fff; font-weight: 300; }
.staff-band .grid-4 { gap: 24px; }

.staff-carousel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.carousel-arrows { display: flex; gap: 12px; }
.carousel-arrow {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5);
    background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; line-height: 1;
    transition: background 0.2s ease;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.15); }
.carousel { overflow: hidden; }
.carousel-track { display: flex; gap: 24px; transition: transform 0.4s ease; }
.carousel-item { flex: 0 0 calc(25% - 18px); }
@media (max-width: 900px) { .carousel-item { flex: 0 0 calc(50% - 12px); } }
@media (max-width: 560px) { .carousel-item { flex: 0 0 100%; } }

.profesional-card { text-align: center; }
.profesional-card img,
.profesional-card .avatar {
    width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 16px; background: var(--color-bg-soft);
    border: 3px solid rgba(255,255,255,0.4);
}
.profesional-card .avatar {
    display: flex; align-items: center; justify-content: center;
    color: var(--color-accent); font-weight: 700; font-size: 1.4rem;
}
.staff-band .profesional-card h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.staff-band .profesional-card .especialidad { color: rgba(255,255,255,0.75); font-size: 0.8rem; }
.especialidad { color: var(--color-accent); font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--color-primary); }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--color-accent); }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { background: #E4F5EF; color: var(--color-accent); }
.alert-error { background: #FBE9E7; color: #B3261E; }

/* Mapa + panel de contacto (home, antes del footer) */
.map-section { position: relative; }
.map-section iframe { width: 100%; height: 420px; display: block; border: 0; }
.map-section .container { position: absolute; inset: 0; pointer-events: none; }

/* Bloquea el scroll/drag del mapa hasta el primer click, para que no "atrape"
   el scroll de la página ni muestre el aviso de Google de usar Ctrl+scroll. */
.map-frame-wrap { position: relative; }
.map-frame-wrap iframe { filter: grayscale(1) contrast(1.02); }
.map-frame-wrap::after {
    content: ""; position: absolute; inset: 0; z-index: 2; cursor: pointer;
}
.map-frame-wrap.active::after { display: none; }
.map-info-panel {
    position: absolute; top: 0; right: 24px; height: 100%; width: 340px; z-index: 3;
    background: var(--color-accent); color: #fff; padding: 36px 32px;
    display: flex; flex-direction: column; gap: 22px; overflow-y: auto;
    pointer-events: auto;
}
.map-info-panel .item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.map-info-panel h4 { color: #fff; font-size: 0.95rem; font-weight: 500; margin: 0 0 6px; }
.map-info-panel p { color: rgba(255,255,255,0.9); font-size: 0.88rem; margin: 0; }
.map-info-panel a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); }
.map-info-panel a:hover { color: #fff; text-decoration-color: #fff; }
.map-info-panel .icon { opacity: 0.85; flex-shrink: 0; }
@media (max-width: 800px) {
    .map-info-panel { position: static; width: 100%; height: auto; }
    .map-section iframe { height: 320px; }
}

/* Footer */
.site-footer { background: var(--color-ink); color: rgba(255,255,255,0.8); padding: 56px 0 0; }
.site-footer h4 { color: var(--color-white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-accent-light); }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; font-size: 0.92rem; line-height: 1.5; }
.footer-contact-list p { margin: 0; display: flex; align-items: flex-start; gap: 10px; }
.footer-contact-list p .dp-icon,
.footer-contact-list p svg { flex-shrink: 0; margin-top: 2px; color: var(--color-accent-light); }
.footer-contact-list a { color: #fff; }

.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-bottom: 40px; align-items: start; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .logo-block { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.footer-brand .logo-block img { height: 100px; width: auto; }
.footer-tagline { color: rgba(255,255,255,0.65); font-size: 0.88rem; line-height: 1.5; margin: 0; max-width: 280px; }

.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a {
    width: 42px; height: 42px; border-radius: 6px; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.footer-social a:hover { background: var(--color-accent); }
.footer-blog-link { display: inline-block; margin-top: 16px; color: rgba(255,255,255,0.75); font-size: 0.88rem; text-decoration: underline; }
.footer-blog-link:hover { color: #fff; }
.whatsapp-float {
    position: fixed; right: 24px; bottom: 24px; z-index: 500;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.3); color: #fff; }
@media (max-width: 500px) { .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; } }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 18px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    background: var(--color-ink-dark);
}
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 500px) { .footer-bottom-inner { justify-content: center; text-align: center; } }

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-slide.active { transition: none; }
    .hero-timer-bar.running { animation: none; width: 100%; }
    .specialty-block { transition: none; }
    .carousel-track { transition: none; }
}

/* Página 404 */
.notfound-hero {
    position: relative;
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0 90px;
    overflow: hidden;
}
.notfound-icon {
    font-size: 64px;
    color: rgba(255,255,255,0.18);
    display: block;
    margin-bottom: 4px;
}
.notfound-number {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent-light);
    text-shadow: 0 4px 24px rgba(0,0,0,0.35);
    margin-bottom: 8px;
}
.notfound-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 400; margin-bottom: 14px; }
.notfound-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 480px; margin: 0 auto 32px; }
.notfound-search {
    display: flex; align-items: center; max-width: 380px; margin: 0 auto;
    background: rgba(255,255,255,0.95); border-radius: 3px; overflow: hidden;
}
.notfound-search input { flex: 1; border: none; outline: none; padding: 12px 14px; font-size: 0.9rem; font-family: inherit; color: var(--color-text); }
.notfound-search button { border: none; background: var(--color-accent); color: #fff; padding: 0 18px; cursor: pointer; display: flex; align-items: center; }
.notfound-search button:hover { background: var(--color-accent-light); }

.notfound-card { display: block; text-decoration: none; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.notfound-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,0.1); }
.notfound-card .dp-icon { font-size: 34px; color: var(--color-accent); display: block; margin-bottom: 14px; }
.notfound-card h3 { color: var(--color-text); margin-bottom: 6px; }
