/* ==========================
   AJUSTES MÓVIL: HERO + CARD
   ========================== */

/* En desktop queda igual */
.search-card-float {
    border-radius: 22px;
}

/* MÓVIL */
@media (max-width: 700px) {

    /* Hero más compacto para que no "empuje" tanto */
    .hero {
        padding: 18px 0 52px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .hero-logo {
        width: 92px;
        margin-bottom: 4px;
    }

    .hero-copy h1 {
        font-size: 20px;
    }

    .hero-copy p {
        font-size: 14px;
        margin-top: 4px;
    }

    /* Card flotante: menos subida, más margen lateral */
    .search-card-float {
        margin-top: 30px;
        padding: 18px 16px 18px;
        border-radius: 18px;
        box-shadow: 0 14px 36px rgba(0,0,0,0.10);
    }

    /* Layout: una columna con mejor separación */
    .search-home-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        align-items: stretch;
    }

    /* Columna izquierda: que no se vea apretada */
    .search-home-copy h2 {
        font-size: 22px;
        line-height: 1.15;
        margin-bottom: 8px;
    }

    .search-home-subtitle {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .search-home-highlights {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .search-home-counter {
        font-size: 14px;
        padding: 8px 12px;
    }

    /* Ocultar ilustración en móvil para ahorrar espacio (opcional) */
    .search-home-illu {
        display: none;
    }

    /* Formulario ocupa todo el ancho */
    .search-home-form {
        padding: 16px 14px 16px;
        border-radius: 16px;
    }

    .search-grid-home {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-home-form label {
        font-size: 14px;
    }

    .search-home-form input,
    .search-home-form select {
        font-size: 15px;
        padding: 12px 12px;
        border-radius: 12px;
    }

    .btn-buscar-home {
        font-size: 16px;
        padding: 13px 0;
        margin-top: 14px;
    }
}

.benefits-list {
    margin: 12px 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 12px;
    margin-top: 12px;
}

.feature-item {
    background: #F4FBFA;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    color: #0C544F;
}

.pricing-box {
    background: #ffffff;
    border: 1px solid #D8E6E3;
    border-radius: 16px;
    padding: 18px;
    margin-top: 16px;
}

.pricing-box.featured {
    border: 2px solid #04B6A8;
}

.price {
    font-size: 30px;
    font-weight: 700;
    color: #04B6A8;
}

.price-note {
    font-size: 14px;
    color: #666;
}

.cta-card {
    text-align: center;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.top-menu {
    background: #ffffff;
    border-bottom: 1px solid #e2e2e2;
    padding: 10px 0;
    text-align: center;
}

.top-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-menu ul li {
    display: inline-block;
    margin: 0 15px;
}

.top-menu ul li a {
    text-decoration: none;
    color: #006b63;
    font-weight: 600;
    font-size: 15px;
}

.top-menu ul li a:hover {
    color: #00a89a;
}

.site-footer {
    background: #f1fffd;
    border-top: 1px solid #d7f4f0;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    margin-top: 50px;
}

.site-footer a {
    color: #006b63;
    text-decoration: none;
    font-weight: 600;
}

.site-footer a:hover {
    text-decoration: underline;
}


/* Contenedor general de páginas */
.page-container {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 16px;
}

/* HERO */
.hero-header {
    background: linear-gradient(135deg, #00b3a4, #00d0c2);
    padding: 30px 0 18px;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.site-header .logo {
    width: 90px;
    margin-bottom: 8px;
}

.brand-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.brand-subtitle {
    font-size: 16px;
    color: #e8fffb;
    margin-top: 4px;
}

/* MENÚ SUPERIOR */
.top-menu {
    background: #ffffff;
    border-bottom: 1px solid #e2e2e2;
}

.top-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.top-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-menu ul li {
    display: inline-block;
    margin: 0 12px;
}

.top-menu ul li a {
    text-decoration: none;
    color: #006b63;
    font-weight: 600;
    font-size: 15px;
}

.top-menu ul li a:hover {
    color: #00a89a;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    margin-right: auto;
    cursor: pointer;
    color: #006b63;
}

/* Footer */
.site-footer {
    background: #f1fffd;
    border-top: 1px solid #d7f4f0;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    margin-top: 40px;
}

.site-footer a {
    color: #006b63;
    text-decoration: none;
    font-weight: 600;
}

.site-footer a:hover {
    text-decoration: underline;
}



.page-title {
    font-size: 26px;
    color: #0b6052;
    margin-top: 24px;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
}

.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .especialidades-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .especialidades-grid {
        grid-template-columns: 1fr;
    }
}

.especialidad-card {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f7fffd;
    border: 1px solid #d3f0ea;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.especialidad-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.especialidad-nombre {
    font-weight: 600;
    color: #006b63;
    margin-bottom: 4px;
}

.especialidad-total {
    font-size: 13px;
    color: #777;
}


.aviso-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 20px 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.aviso-box h2 {
    font-size: 18px;
    margin-top: 16px;
    margin-bottom: 6px;
    color: #0b6052;
}

@media (max-width: 768px) {
    .top-menu {
        position: relative;
        z-index: 1000;
    }

    .top-menu-inner {
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    /* Menú oculto por defecto en móvil */
    .menu-links {
        display: none;
    }

    /* Menú móvil tipo overlay */
    .menu-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 250px;             /* altura aprox. debajo del hero/menu */
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
        padding: 12px 18px 16px;
        z-index: 2000;
        border-radius: 0 0 18px 18px;
        animation: slideDownMenu 0.18s ease-out;
    }

    .menu-links li {
        display: block;
        margin: 4px 0;
    }

    .menu-links li a {
        display: block;
        padding: 10px 4px;
        font-size: 15px;
        border-radius: 10px;
    }

    .menu-links li a:hover {
        background: #f1fffd;
        color: #00a89a;
    }
}

/* Animación suave al desplegar */
@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------
   MENÚ MÓVIL TIPO OVERLAY
------------------------------*/

.menu-close {
    display: none;
    position: fixed;
    top: 180px;        /* 🔼 Ahora queda bien arriba */
    right: 20px;
    font-size: 32px;
    color: #000;   /* blanco para verse en overlay */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 4000;    /* 🔥 más alto que overlay y menú */
}

.menu-close {
    display: none;
    position: fixed;
    top: 24px;        /* ajusta según te guste */
    right: 24px;
    font-size: 30px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 4000;    /* por encima del menú y del overlay */
}



/* Fondo oscuro atrás del menú */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.70); /* 70% transparencia */
    z-index: 1500;
}

.menu-overlay.show {
    display: block;
}

/* Ajustes solo en móvil */
@media (max-width: 768px) {

    .menu-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 180px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,255.70); /* 70% transparencia */
        padding: 14px 18px 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
        border-radius: 0 0 18px 18px;
        z-index: 2000;
        animation: slideDownMenu 0.18s ease-out;
    }

    .menu-links li {
        display: block;
        margin: 6px 0;
    }

    .menu-links li a {
        padding: 12px;
        display: block;
        border-radius: 10px;
        font-size: 22px;
        font-weight: 600;
    }

    .menu-links li a:hover {
        background: #f1fffd;
        color: #00a89a;
    }
}

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-menu {
    position: relative;
    z-index: 2500;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.70); /* 70% transparente */
    z-index: 3000;
}

.menu-overlay.show {
    display: block;
}


/* ============================
   MENÚ LIMPIO TIPO DOCLINK.PRO
   (sobrescribe todo lo anterior)
   ============================ */

/* Barra superior */
.top-menu {
    background: #ffffff;
    border-bottom: 1px solid #e2e2e2;
    padding: 8px 0;
}

/* Contenedor interno */
.top-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: center;   /* centrado tipo doclink */
    align-items: center;
}

/* Ocultamos por completo lo del menú móvil anterior */
.menu-toggle,
.menu-close,
.menu-overlay {
    display: none !important;
}

/* Lista de enlaces (menú principal) */
.menu-links {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex !important;  /* se asegura de mostrarse */
    flex-wrap: wrap;
    gap: 14px;
}

/* Cada elemento */
.menu-links li {
    display: inline-block;
}

/* Estilo de los links */
.menu-links li a {
    text-decoration: none;
    color: #006b63;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

/* Hover */
.menu-links li a:hover {
    background: #f1fffd;
    color: #00a89a;
}

/* Responsive: en pantallas pequeñas solo ajustamos tamaños, NO escondemos nada */
@media (max-width: 640px) {

    .top-menu-inner {
        justify-content: flex-start;
    }

    .menu-links {
        gap: 8px;
    }

    .menu-links li a {
        font-size: 13px;
        padding: 5px 8px;
    }
}


/* ===========================================
   MENÚ RESPONSIVE ENEMÉDICOS (solo menú)
   =========================================== */

/* --- Versión escritorio: menú normal --- */
@media (min-width: 769px) {
    .menu-toggle,
    .menu-close,
    .menu-overlay {
        display: none !important;
    }

    .menu-links {
        display: flex !important;
        gap: 22px;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .menu-links li a {
        text-decoration: none;
        color: #006b63;
        font-weight: 600;
        font-size: 15px;
    }

    .menu-links li a:hover {
        color: #00a89a;
    }
}

/* --- Versión móvil: botón + overlay --- */
@media (max-width: 768px) {

    /* Barra superior: botón a la derecha */
    .top-menu-inner {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 8px 14px;
    }

    /* Ocultar lista normal por defecto */
    .menu-links {
        display: none;
    }

    /* Botón hamburguesa redondo */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 999px;
        border: 1px solid rgba(0,0,0,0.05);
        background: #ffffff;
        box-shadow: 0 3px 8px rgba(0,0,0,0.18);
        cursor: pointer;
        padding: 0;
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: #006b63;
        border-radius: 4px;
        margin: 2px 0;
    }

    /* Fondo oscuro detrás del menú */
    .menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 2000;
    }

    .menu-overlay.show {
        display: block;
    }

    /* Tarjeta blanca centrada con las opciones */
    .menu-links.open {
        display: flex !important;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 18px 22px;

        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        width: 86%;
        max-width: 360px;

        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0 18px 40px rgba(0,0,0,0.28);

        z-index: 2100;
    }

    .menu-links.open li {
        margin: 4px 0;
    }

    .menu-links.open li a {
        display: block;
        padding: 10px 4px;
        font-size: 18px;
        font-weight: 600;
        text-align: center;
        color: #004c46;
        text-decoration: none;
    }

    .menu-links.open li a:hover {
        background: #f1fffd;
        color: #00a89a;
        border-radius: 10px;
    }

    /* Botón X para cerrar */
    .menu-close {
        display: none;
        position: fixed;
        top: 18px;
        right: 18px;
        width: 34px;
        height: 34px;
        border-radius: 999px;
        border: none;
        background: rgba(0,0,0,0.5);
        color: #ffffff;
        font-size: 20px;
        cursor: pointer;
        z-index: 2200;
    }

    .menu-close.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Animación suave al abrir el menú */
@keyframes menuZoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 768px) {
    .menu-links.open {
        animation: menuZoomIn 0.18s ease-out;
    }
}


/* =========================
   HEADER ENEMÉDICOS
   ========================= */

:root {
    --ene-teal: #0b7c80;
    --ene-teal-light: #e5f4f4;
    --ene-dark: #00444a;
    --ene-white: #ffffff;
}

/* Contenedor general del header */
.site-header {
    width: 100%;
    position: relative;
    z-index: 999;
    font-family: "Kedebideri", system-ui, -apple-system, sans-serif;
    transition: box-shadow 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

/* Barra superior tipo DesignPoint */
.top-bar {
    background: var(--ene-teal-light);
    color: 000;
	border-bottom: 2px solid transparent;
    font-size: 15px;
}

.container-header {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar .container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
}

.top-bar-left span {
    opacity: 0.8;
}

.top-bar-right a {
    margin-left: 18px;
    text-decoration: none;
    color: 000;
	border-bottom: 2px solid transparent;
    opacity: 0.9;
}

.top-bar-right a:hover {
    opacity: 1;
}

/* Barra principal del menú */
.main-nav-bar {
    background: var(--ene-white);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* Sticky solo en PC */
@media (min-width: 992px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    body {
        padding-top: 110px; /* espacio para que no se esconda el contenido */
    }
}

/* Efecto cuando haces scroll */
.site-header.is-scrolled .main-nav-bar {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Contenido interno del nav */
.nav-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo-header img {
    display: block;
    height: 52px;
    width: auto;
}

/* MENÚ ESCRITORIO */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 26px;
}

.main-nav a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--ene-dark);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
    color: var(--ene-teal);
    border-color: var(--ene-teal);
    transform: translateY(-1px);
}

/* BOTÓN CTA ESCRITORIO */
.btn-cta-header {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b7c80, #00a8b5);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.btn-cta-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
    opacity: 0.96;
}

/* BOTÓN HAMBURGUESA (MÓVIL) */
.burger-btn {
    display: none;
    width: 32px;
    height: 26px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.burger-btn span {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--ene-dark);
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.burger-btn span:nth-child(1) { top: 3px; }
.burger-btn span:nth-child(2) { top: 11px; }
.burger-btn span:nth-child(3) { top: 19px; }

.burger-btn.is-open span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}
.burger-btn.is-open span:nth-child(2) {
    opacity: 0;
}
.burger-btn.is-open span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* MENÚ MÓVIL OVERLAY */
/* ===== MENÚ MÓVIL CON LOGO Y CIERRE ===== */

.mobile-menu {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999; /* por encima de todo */
}

.mobile-menu-panel {
    background: #ffffff;
    width: 80%;
    max-width: 340px;
    height: 100%;
    padding: 20px 22px;
    box-shadow: 4px 0 14px rgba(0,0,0,0.25);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
}

/* Parte superior: logo + X */
.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.mobile-logo img {
    height: 64px;
    width: auto;
    display: block;
}

/* Botón cerrar (X) */
.mobile-close {
    position: relative;
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.mobile-close span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: #003f43;
    top: 50%;
    transform-origin: center;
}

.mobile-close span:nth-child(1) {
    transform: translateY(-50%) rotate(45deg);
}

.mobile-close span:nth-child(2) {
    transform: translateY(-50%) rotate(-45deg);
}

/* Lista del menú móvil */
.mobile-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu nav li {
    margin-bottom: 20px;
}

.mobile-menu nav a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #003f43;
}
.mobile-menu-panel {
    background: rgba(255, 255, 255, 0.80); /* 80% blanco */
    backdrop-filter: blur(4px); /* efecto premium */
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 991px) {
    .top-bar {
        display: none; /* como DesignPoint en móvil, solo la barra principal */
    }

    .nav-inner {
        height: 64px;
    }

    .main-nav {
        display: none;
    }

    .btn-cta-header {
        display: none;
    }

    .burger-btn {
        display: block;
    }

    /* En móvil el header NO es fijo para que no estorbe al hacer scroll */
    .site-header {
        position: relative;
    }

    body {
        padding-top: 0;
    }
}

/* AJUSTES FINOS TIPO DESIGNPOINT */

/* Altura normal */
.nav-inner {
    height: 86px;
}

/* Logo un poquito más grande en la parte superior */
.logo-header img {
    height: 60px;
}

/* Cuando haces scroll: header más compacto */
.site-header.is-scrolled .nav-inner {
    height: 68px;
    transition: height 0.22s ease;
}

.site-header.is-scrolled .logo-header img {
    height: 48px;
    transition: height 0.22s ease;
}

/* Un poco más de espacio abajo del menú para darle aire */
.main-nav a {
    padding-bottom: 6px;
}

/* Que el contenedor máximo sea ligeramente más ancho, como en DesignPoint */
.container-header {
    max-width: 1240px;
}
