/* ====== BASE ====== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Kedebideri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3faf8;
    color: #1f2f2b;
}

/* ====== HERO (ENCABEZADO VERDE) ====== */
.hero {
    background: linear-gradient(180deg, #04B6A8, #14C4B6);
    padding: 28px 0 40px;  /* Más compacto */
    text-align: center;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.hero-inner {
    max-width: 580px;
    margin: 0 auto;
}

.hero-logo {
    width: 120px;            /* reduce de 180-200px */
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.08));
}

.hero-text h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
}

.hero-text p {
    margin: 0;
    font-size: 15px;
}

/* Título */
.hero-copy h1 {
    font-size: 26px;         /* antes 32-36 */
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.4px;
}

/* Subtítulo */
.hero-copy p {
    margin-top: 4px;
    font-size: 15px;         /* antes muy grande */
    color: rgba(255,255,255,0.9);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .hero {
        padding: 22px 0 32px;
    }
    .hero-logo {
        width: 100px;
    }
    .hero-copy h1 {
        font-size: 22px;
    }
    .hero-copy p {
        font-size: 14px;
    }
}

/* ====== CONTENEDOR PRINCIPAL ====== */
.site-main {
    max-width: 1200px;
    margin: -45px auto 40px;
    padding: 0 15px 10px;
}

/* ====== TARJETAS GENERALES ====== */
.card,
.search-card-home,
.search-card,
.panel-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #E0ECEA;
    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
    padding: 20px 24px 20px;
    max-width: 1100px;
    margin: 0 auto 28px;
}

.search-card-home h2,
.search-card h2,
.panel-card h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
}

.search-card-home p,
.search-card p,
.panel-card p {
    margin: 0 0 14px 0;
    font-size: 19px;
    color: #555;
}

/* ====== FORMULARIOS (inputs / selects / textareas) ====== */

label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid #D5E5E1;
    font-size: 13px;
    font-family: inherit;
    background: #f7fcfb;
}

textarea {
    min-height: 60px;
    resize: vertical;
}

/* Grids para formularios de búsqueda */
.search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

/* Grids para panel del médico (puedes usarlos libremente) */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

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

/* ====== BOTONES ====== */

.btn-primary,
.btn-buscar,
button[type="submit"] {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: #04b6a8;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-buscar {
    width: 100%;
}

.btn-primary:hover,
.btn-buscar:hover,
button[type="submit"]:hover {
    background: #039c91;
}

/* Botones pequeños (admin, panel, etc.) */
.btn-small {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
}

/* ====== LISTADO DE MÉDICOS / TABLAS ====== */

.medico-card {
    padding: 10px 0;
}

.medico-card h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.medico-card p {
    margin: 2px 0;
    font-size: 13px;
}

/* tablas admin */
.medicos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.medicos-table th,
.medicos-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #E4ECEB;
    text-align: left;
}

.medicos-table th {
    background: #F5FAF9;
    font-weight: 600;
}

/* Pills de estatus */
.pill-ok {
    background: #CFF3E5;
    color: #0C6A4B;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
}

.pill-pend {
    background: #FFE0C8;
    color: #A45314;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
}

/* ====== PANEL DEL MÉDICO ====== */

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.panel-top .links a {
    margin-left: 12px;
    font-size: 13px;
    text-decoration: none;
}

.panel-top .links a:first-child {
    color: #04b6a8;
}
.panel-top .links a:last-child {
    color: #d84242;
}

/* Avatar circular grande */
.avatar-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #e4f1ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #7a8c88;
    margin-right: 24px;
}

/* Wrapper de cabecera de panel */
.panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

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

.site-footer {
    text-align: center;
    font-size: 12px;
    color: #777;
    padding-bottom: 20px;
}

/* ====== RESPONSIVE GENERAL ====== */
@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-logo {
        max-width: 170px;
    }

    .site-main {
        margin-top: -30px;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .avatar-circle {
        margin-right: 0;
    }
}

/* =========================================================
   GRID DE RESULTADOS EN BUSCAR.PHP  (tarjetas de médicos)
   ========================================================= */

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 15px;
}

/* Tarjeta base */
.result-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 18px 16px;
    border-radius: 14px;
    border: 1px solid #E0ECEA;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}

/* Tarjeta DESTACADA (borde dorado + estrella) */
.result-card.card-destacado {
    border: 2px solid #e0b10f;
    background: linear-gradient(135deg, #fffdf5, #ffffff);
    box-shadow: 0 8px 26px rgba(224,177,15,0.28);
    position: relative;
}

.result-card.card-destacado::after {
    content: "⭐";
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 15px;
    background: #ffffff;
    border-radius: 50%;
    padding: 2px;
    border: 1px solid #e0b10f;
    color: #e0b10f;
    box-shadow: 0 2px 4px rgba(224,177,15,0.25);
}

/* Hover tarjeta */
.result-card:hover {
    transform: translateY(-2px);
    border-color: #04b6a8;
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

/* Avatar circular (foto o iniciales) */
.rv-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #04b6a8;
    flex-shrink: 0;
}

.rv-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Iniciales cuando NO hay foto */
.result-photo-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #f4fbfa);
    color: #04b6a8;
    font-weight: 600;
    font-size: 24px;
    border: 2px solid #04b6a8;
    box-shadow: 0 4px 12px rgba(4, 182, 168, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Iniciales cuando el médico es DESTACADO */
.result-photo-initials.destacado {
    border-color: #e0b10f;
    color: #e0b10f;
    box-shadow: 0 4px 12px rgba(224,177,15,0.4);
}

/* Efecto hover sobre iniciales / foto */
.result-card:hover .result-photo-initials,
.result-card:hover .rv-avatar-img {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(4, 182, 168, 0.28);
}

/* Contenido texto + botones */
.result-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

/* Fila superior solo badges (a la derecha) */
.result-card-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

/* Nombre completo */
.result-name-line {
    margin: 6px 0 2px;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

/* Especialidad: rojo, negritas y más grande */
.result-specialty-line {
    margin: 2px 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #c43131;
}

/* Ubicación */
.result-location-line {
    margin: 0 0 6px;
    font-size: 13px;
    color: #555;
}

/* Datos de contacto */
.result-contact {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.result-contact strong {
    font-weight: 600;
}

/* Badges Destacado / Verificado */
.result-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge-destacado {
    background: #fff3cd;
    border-color: #ffec99;
    color: #8a6d1f;
}

.badge-verificado {
    background: #e6f4ea;
    border-color: #c8e6c9;
    color: #256029;
}

.badge-nuevo {
    background: #e3f2fd;
    border-color: #bbdefb;
    color: #0d47a1;
}

/* Botones */
.result-actions {
    margin-top: 8px;
}

.btn-cta {
    display: block;
    text-align: center;
    padding: 7px 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* Ver perfil completo */
.btn-perfil {
    background: #04b6a8;
    color: #ffffff;
}

.btn-perfil:hover {
    background: #039488;
}

/* Fila de WhatsApp / Llamar */
.result-actions-row {
    margin-top: 6px;
    display: flex;
    gap: 6px;
}

/* WhatsApp */
.btn-whatsapp {
    flex: 1;
    background: #25D366;
    color: #ffffff;
}

.btn-whatsapp:hover {
    background: #1ebe5b;
}

/* Llamar */
.btn-call {
    flex: 1;
    background: #12c2b9;
    color: #ffffff;
}

.btn-call:hover {
    background: #0f9d96;
}

/* Paginación */
.pagination {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
}

.pagination a {
    display: inline-block;
    margin: 0 3px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid #D5E5E1;
    text-decoration: none;
    color: #047c75;
    background: #fff;
}

.pagination a.active {
    background: #04b6a8;
    color: #fff;
    border-color: #04b6a8;
}

.pagination a:hover {
    background: #e6f7f5;
}

/* Responsive tarjetas resultados */
@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .result-card {
        padding: 14px 14px 12px;
        gap: 12px;
    }

    .rv-avatar {
        width: 120px;
        height: 120px;
    }

    .result-name-line {
        font-size: 16px;
    }
}

/* ====== TARJETAS DEL PANEL DEL MÉDICO ====== */

.panel-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.panel-tile {
    border: 1px solid #E0ECEA;
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.03);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.panel-tile h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
}

.panel-tile p {
    margin: 0;
    color: #555;
    font-size: 13px;
}

.panel-tile-footer {
    margin-top: 10px;
    text-align: right;
}

.link-primary {
    font-size: 13px;
    text-decoration: none;
    color: #04b6a8;
    font-weight: 600;
}

.link-primary:hover {
    text-decoration: underline;
}

/* Responsive: panel tiles en menos columnas en pantallas pequeñas */
@media (max-width: 1024px) {
    .panel-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .panel-tiles {
        grid-template-columns: 1fr;
    }
}

/* ====== BARRA DE PROGRESO PERFIL ====== */

.progress-wrapper {
    margin-top: 6px;
    margin-bottom: 18px;
}

.progress-text {
    font-size: 13px;
    margin-bottom: 4px;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e2f1ee;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #04b6a8, #47dac8);
    transition: width 0.4s ease;
}

/* ====== PERFIL PÚBLICO DEL MÉDICO ====== */

.profile-header-card {
    margin-bottom: 20px;
}

.profile-header {
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #e4f1ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: #047c75;
}

.profile-main h2 {
    margin: 0 0 4px 0;
    font-size: 22px;
}

.profile-specialty {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #155c55;
}

.profile-cedula {
    margin: 0 0 6px 0;
    font-size: 13px;
}

.profile-tags {
    margin-bottom: 10px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #04b6a8;
    background: #ffffff;
    color: #04b6a8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #e6f7f5;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 20px;
}

.profile-info-grid h3 {
    margin-top: 0;
}

/* Consultorios */
.clinic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.clinic-card {
    border: 1px solid #E0ECEA;
    border-radius: 12px;
    padding: 10px 12px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.03);
    font-size: 13px;
}

.clinic-card h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
}

.clinic-address {
    margin: 0 0 4px 0;
}

.clinic-contact {
    margin: 0 0 3px 0;
}

.clinic-contact a {
    text-decoration: none;
    color: #047c75;
}

.clinic-contact a:hover {
    text-decoration: underline;
}

.clinic-map {
    margin-top: 6px;
}

.clinic-map iframe {
    width: 100%;
    height: 180px;
    border: 0;
    border-radius: 10px;
}

/* Responsive perfil / consultorios */
@media (max-width: 900px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
    .clinic-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== BADGES EN RESULTADOS DE BÚSQUEDA (ya usados arriba) ====== */

.result-card-top h3 {
    margin: 0;
}

@media (max-width: 640px) {
    .result-card-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .result-badges {
        justify-content: flex-start;
    }
}

/* ====== PERFIL PÚBLICO - VISTA MÓVIL (extra ajustes) ====== */
@media (max-width: 768px) {

    /* Hero más compacto y centrado */
    .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 16px 12px;
    }

    .hero-logo {
        max-width: 120px;
    }

    .hero-text h1 {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .hero-text p {
        font-size: 13px;
        line-height: 1.4;
    }

    /* Tarjeta principal del perfil */
    .panel-card {
        margin: 10px 10px 14px;
        padding: 12px;
        border-radius: 14px;
    }

    .profile-header-card {
        margin-bottom: 12px;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 22px;
    }

    .profile-main h2 {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .profile-specialty {
        font-size: 14px;
    }

    .profile-cedula {
        font-size: 12px;
    }

    .profile-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-top: 8px;
    }

    .profile-actions .btn-primary,
    .profile-actions .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 9px 10px;
        font-size: 14px;
        border-radius: 999px;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .profile-info-grid h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .profile-info-grid h4 {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .profile-info-grid p {
        font-size: 13px;
        line-height: 1.45;
    }

    .clinic-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .clinic-card {
        padding: 10px;
        border-radius: 12px;
        font-size: 13px;
    }

    .clinic-card h4 {
        font-size: 15px;
    }

    .clinic-address,
    .clinic-contact {
        font-size: 12px;
    }

    .clinic-map iframe {
        height: 190px;
        border-radius: 10px;
    }

    /* Tarjetas de resultado en móvil: un poquito más compactas */
    .result-card {
        padding: 10px;
        gap: 10px;
    }

    .result-card-content {
        font-size: 13px;
    }
}

/* Ajuste extra para pantallas muy pequeñas */
@media (max-width: 480px) {
    .panel-card {
        margin: 8px;
        padding: 10px;
    }

    .profile-main h2 {
        font-size: 17px;
    }

    .profile-actions .btn-primary,
    .profile-actions .btn-secondary {
        font-size: 13px;
        padding: 8px 10px;
    }

    .clinic-map iframe {
        height: 170px;
    }
}

/* Barra fija de contacto en móviles */
@media (max-width: 768px) {

    .sticky-contact-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 8px 10px;
        background: rgba(255,255,255,0.97);
        box-shadow: 0 -4px 12px rgba(0,0,0,0.10);
        display: flex;
        gap: 8px;
        z-index: 999;
    }

    .sticky-btn {
        flex: 1;
        text-align: center;
        border-radius: 999px;
        padding: 10px 12px;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        border: none;
    }

    .sticky-whatsapp {
        background: #25D366;
        color: #ffffff;
    }

    .sticky-call {
        background: #12c2b9;
        color: #ffffff;
    }

    /* Para que el contenido no quede tapado por la barra */
    body {
        padding-bottom: 70px;
    }
}

.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sticky-btn .icon svg {
    display: block;
}

/* ===========================
   PERFIL PÚBLICO - VISTA DESKTOP
   =========================== */
@media (min-width: 992px) {

    /* Centrar contenido y darle respiro */
    .site-main {
        max-width: 1100px;
        margin: 20px auto 40px;
    }

    .profile-header-card .profile-header {
        display: grid;
        grid-template-columns: 160px minmax(0, 1.8fr) minmax(0, 1.2fr);
        align-items: center;
        gap: 24px;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
        font-size: 32px;
    }

    .profile-main h2 {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .profile-specialty {
        font-size: 16px;
    }

    .profile-cedula {
        font-size: 13px;
    }

    .profile-tags {
        margin-top: 6px;
    }

    .profile-actions {
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border-radius: 18px;
        background: #f5faf9;
        box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    }

    .profile-actions .btn-primary,
    .profile-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .profile-info-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
        align-items: flex-start;
        gap: 24px;
    }

    .profile-info-grid h3 {
        font-size: 18px;
    }

    .profile-info-grid p {
        font-size: 14px;
        line-height: 1.55;
    }

    .clinic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .clinic-card {
        padding: 12px 14px;
        border-radius: 14px;
        font-size: 13px;
    }

    .clinic-card h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .clinic-address,
    .clinic-contact {
        font-size: 13px;
    }

    .clinic-map iframe {
        height: 210px;
        border-radius: 12px;
    }
}

/* Chips / etiquetas para servicios y enfermedades */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid #c7ebe7;
    background: #f4fbfa;
    color: #0b756c;
    white-space: nowrap;
}

.chip-servicio {
    background: #e6fbf7;
    border-color: #aee8de;
}

.chip-enfermedad {
    background: #f5f7ff;
    border-color: #cdd6ff;
    color: #2f4f96;
}

.chip-empty {
    font-size: 13px;
    color: #9ca3af;
}

/* En móvil que respiren un poco más */
@media (max-width: 768px) {
    .chip {
        font-size: 12px;
        padding: 5px 11px;
    }
}

.foto-perfil-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f7f7;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.foto-perfil-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foto-perfil-iniciales {
    font-size: 42px;
    color: #06b6b6;
    font-weight: 600;
}

.paginacion-medicos {
    margin: 20px 0 10px;
    text-align: center;
}

.paginacion-medicos .pag-link {
    display: inline-block;
    margin: 0 3px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid rgba(0,0,0,0.1);
    color: #008b7c;
    text-decoration: none;
    background: #fff;
}

.paginacion-medicos .pag-link.activo {
    background: #00bfa5;
    color: #fff;
    border-color: #00bfa5;
    font-weight: 600;
}

/* ====== TARJETAS DE RESULTADOS - DISEÑO FINAL ====== */

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 15px;
}

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

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

/* Tarjeta base */
.result-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid #E0ECEA;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Destacados: borde dorado */
.result-card.card-destacado {
    border: 2px solid #e0b10f;
    background: linear-gradient(135deg, #fffdf5, #ffffff);
    box-shadow: 0 10px 30px rgba(224,177,15,0.30);
}

/* Estrellita en la esquina */
.result-card.card-destacado::after {
    content: "⭐";
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 16px;
    background: #ffffff;
    border-radius: 50%;
    padding: 2px;
    border: 1px solid #e0b10f;
    color: #e0b10f;
    box-shadow: 0 2px 4px rgba(224,177,15,0.25);
}

/* Header: avatar + badges */
.result-card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.result-card-header-left {
    display: flex;
    align-items: center;
}

/* Avatar circular pequeño en resultados */
.rv-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #04b6a8;
}

.rv-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Iniciales sin foto dentro del mismo círculo */
.rv-avatar .result-photo-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f2f2f2);
    border: 2px solid #12c2b9;
    color: #12c2b9;
    font-weight: 600;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badges */
.result-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

/* Cuerpo de la tarjeta */
.rv-body {
    padding: 8px 6px 0;
}

/* Nombre en una sola línea, centrado */
.rv-name {
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 26px;
    font-weight: 700;
    color: #333333;
}

/* Especialidad en rojo */
.rv-specialty {
    margin-top: 2px;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #c62828;
}

/* Ubicación y textos */
.rv-text {
    font-size: 13px;
    margin: 0;
}

.result-contact {
    margin-top: 6px;
    font-size: 13px;
}

/* Botones */
.result-actions {
    margin-top: 10px;
    width: 100%;
}

.result-actions-row {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-cta {
    display: block;
    text-align: center;
    padding: 7px 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* Ver perfil completo */
.btn-perfil {
    background: #04b6a8;
    color: #ffffff;
}
.btn-perfil:hover {
    background: #039488;
}

/* WhatsApp */
.btn-whatsapp {
    flex: 1;
    background: #25D366;
    color: #ffffff;
}
.btn-whatsapp:hover {
    background: #1ebe5b;
}

/* Llamar */
.btn-call {
    flex: 1;
    background: #12c2b9;
    color: #ffffff;
}
.btn-call:hover {
    background: #0f9d96;
}


.contact-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 22px;
    margin: 4px 0;
    justify-content: center;
}

/* Ícono Teléfono */
.icon-phone {
    width: 16px;
    height: 16px;
    fill: #555;
}

/* Ícono WhatsApp */
.icon-whatsapp {
    width: 17px;
    height: 17px;
    fill: #25D366;
}
/* Caja de contacto dentro de la tarjeta */
.contact-box {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 12px;
    background: #f5faf9;
    display: inline-block;
}

/* Cada línea de contacto */
.contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin: 2px 0;
    color: #444;
}

/* Icono redondo */
.contact-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eaf3f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 14px;
    height: 14px;
}

/* Colores específicos */
.contact-icon-phone svg {
    fill: #555;
}

.contact-icon-whatsapp {
    background: #e7f9f0;
}
.contact-icon-whatsapp svg {
    fill: #25D366;
}
.home-steps-grid-nice {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    padding: 10px 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e8f7f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #04b6a8;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

.step-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0c544f;
}

.step-item p {
    font-size: 14px;
    color: #5b5b5b;
    line-height: 1.4;
    max-width: 240px;
}

body {
   
    color: #444;
    font-size: 15px;
}

/* Encabezados */
h1, h2, h3 {
    color: #0C544F;
    font-weight: 700;
    letter-spacing: -0.3px;
}

h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

h3 {
    font-size: 18px;
}

/* Tarjetas */
.result-card {
    font-size: 15px;
    border-radius: 14px;
    padding: 25px 24px;
}

/* Nombre del médico */
.result-name {
    font-size: 22px;
    font-weight: 700;
    color: #0C544F;
    margin-top: 15px;
}

/* Especialidad */
.result-specialty {
    font-size: 17px;
    font-weight: 600;
    color: #DA2C2C; /* rojo suave */
    margin-top: 2px;
}

/* Ubicación */
.result-location {
    font-size: 14px;
    color: #666;
    line-height: 1.35;
    margin-bottom: 12px;
}

/* Iconos de contacto */
.contact-line img {
    width: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

.contact-line {
    font-size: 15px;
    margin: 4px 0;
}

/* Botón principal */
.btn-verde {
    background-color: #04B6A8;
    border: none;
    padding: 12px 20px;
    color: white;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-verde:hover {
    background-color: #0C544F;
}

/* Chips */
.chip-servicio {
    font-size: 14px;
    padding: 8px 14px;
    background: #E8F7F6;
    border: 1px solid #CCEDEA;
    color: #0C544F;
    font-weight: 500;
    border-radius: 18px;
    transition: 0.2s;
}

.chip-servicio:hover {
    background: #04B6A8;
    color: white;
}

/* Secciones */
.card h2 {
    font-size: 24px;
}

/* Home steps */
.step-item p {
    font-size: 14px;
    color: #555;
}

.step-icon {
    font-size: 34px;
    background-color: #E8F7F6;
    color: #04B6A8;
}

/* Botones WhatsApp y Llamar */
.btn-small {
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
}

/* Sección: ¿Eres médico? */
.home-doctor-block {
    font-size: 16px;
    line-height: 1.6;
}

.home-doctor-block h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0C544F;
    margin-bottom: 12px;
}

.home-doctor-block p {
    font-size: 17px;
    color: #444;
    margin-bottom: 14px;
}

.home-doctor-block ul {
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 18px;
    padding-left: 20px;
    color: #444;
}

.home-doctor-block li {
    margin-bottom: 6px;
}

/* Botón más grande y elegante */
.home-doctor-block .btn-medico {
    background-color: #04B6A8;
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    color: #fff;
    display: inline-block;
    transition: 0.2s;
}

.home-doctor-block .btn-medico:hover {
    background-color: #0C544F;
}

/* Sección SEO final: Directorio médico en México */
.home-seo-block h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0C544F;
    margin-bottom: 12px;
}

.home-seo-block p {
    font-size: 17px;
    line-height: 1.65;
    color: #444;
}


/* ====== HOME: tarjeta de búsqueda ====== */

.search-card-home {
    padding-top: 26px;
    padding-bottom: 26px;
}

.search-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: center;
}

/* Columna izquierda (texto) */
.search-home-info h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0C544F;
    margin-bottom: 8px;
}

.search-home-subtitle {
    font-size: 15px;
    color: #444;
    margin-bottom: 12px;
}

.search-home-highlights {
    margin: 0 0 14px 18px;
    padding: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.search-home-highlights li {
    margin-bottom: 4px;
}

.search-home-counter {
    font-size: 14px;
    color: #0C544F;
    background: #E8F7F6;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    margin-top: 4px;
}

/* Columna derecha (formulario) */
.search-home-form {
    background: #F6FBFA;
    border-radius: 16px;
    padding: 14px 16px 16px;
    border: 1px solid #D5E5E1;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
}

/* Grid del formulario en portada: 2 columnas en desktop */
.search-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

/* Botón buscar más vistoso */
.btn-buscar-home {
    margin-top: 14px;
    width: 100%;
    font-size: 15px;
    padding: 10px 0;
    border-radius: 999px;
    font-weight: 600;
}

/* Responsive: en móvil se apilan */
@media (max-width: 900px) {
    .search-home-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .search-home-info {
        text-align: left;
    }
    .search-grid-home {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .search-card-home {
        padding: 18px 16px 20px;
    }
    .search-home-info h2 {
        font-size: 22px;
    }
    .search-home-subtitle,
    .search-home-highlights,
    .search-home-counter {
        font-size: 14px;
    }
}


/* ====== HOME: tarjeta de búsqueda (version mejorada) ====== */

.search-card-home {
    padding-top: 26px;
    padding-bottom: 30px;
}

.search-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 36px;
    align-items: center;
}

/* Columna izquierda */

.search-home-copy h2 {
    font-size: 30px;
    font-weight: 700;
    color: #0C544F;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.search-home-subtitle {
    font-size: 17px;
    color: #333;
    margin-bottom: 14px;
}

.search-home-highlights {
    margin: 0 0 16px 18px;
    padding: 0;
    font-size: 15px;
    color: #444;
    line-height: 1.55;
}

.search-home-highlights li {
    margin-bottom: 6px;
}

.search-home-counter {
    font-size: 15px;
    color: #0C544F;
    background: #E1F4F1;
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    margin-top: 2px;
    font-weight: 600;
}

/* Ilustración */

.search-home-illu {
    margin-top: 18px;
}

.search-home-illu img {
    max-width: 270px;
    width: 100%;
    display: block;
}

/* Columna derecha (formulario) */

.search-home-form {
    background: #F6FBFA;
    border-radius: 18px;
    padding: 18px 18px 20px;
    border: 1px solid #D5E5E1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.search-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

/* Botón */

.btn-buscar-home {
    margin-top: 16px;
    width: 100%;
    font-size: 16px;
    padding: 11px 0;
    border-radius: 999px;
    font-weight: 600;
}

/* Responsive */

@media (max-width: 900px) {
    .search-home-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .search-home-illu {
        margin-top: 12px;
        text-align: center;
    }

    .search-home-illu img {
        max-width: 220px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .search-card-home {
        padding: 18px 16px 22px;
    }

    .search-home-copy h2 {
        font-size: 24px;
    }

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

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

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

    .search-grid-home {
        grid-template-columns: 1fr;
    }
}
/* ============================
   FORMULARIO DE BÚSQUEDA GRANDE
   ============================ */

.search-home-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 26px;
    border: 1px solid #D8E6E3;
    box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}

/* Grid más amplio */
.search-grid-home {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 26px;  /* más separación */
}

/* Labels más visibles */
.search-home-form label {
    font-size: 15px;
    font-weight: 600;
    color: #0C544F;
    margin-bottom: 6px;
    display: block;
}

/* Inputs más grandes y modernos */
.search-home-form input,
.search-home-form select {
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #C8DAD6;
    background: #F9FCFC;
    transition: 0.2s;
}

.search-home-form input:focus,
.search-home-form select:focus {
    border-color: #04B6A8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(4,182,168,0.15);
    outline: none;
}

/* BOTÓN BUSCAR MÁS GRANDE Y LLAMATIVO */
.btn-buscar-home {
    margin-top: 20px;
    width: 100%;
    font-size: 17px;
    padding: 14px 0;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background-color: #04B6A8;
    border: none;
    transition: 0.25s;
}

.btn-buscar-home:hover {
    background-color: #028f85;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px) {
    .search-grid-home {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
/* ================================
   EXPLORA POR ESPECIALIDAD (MEJORADO)
   ================================ */

.home-specialties h2 {
    font-size: 28px;       /* antes ~22px */
    font-weight: 700;
    color: #0C544F;
    margin-bottom: 6px;
}

.home-specialties p {
    font-size: 17px;        /* antes 13px */
    color: #555;
    margin-bottom: 18px;
}

/* Chips más grandes y atractivos */
.chip-servicio {
    padding: 10px 18px !important;
    font-size: 16px !important;
    border-radius: 22px;
    font-weight: 600;
    color: #0C544F;
    background: #E8F7F6;
    border: 1px solid #C9EDEA;
    transition: 0.2s;
}

.chip-servicio:hover {
    background: #04B6A8;
    color: white;
    border-color: #04B6A8;
    transform: translateY(-1px);
}


/* ===================================
   CARD FLOTANTE SOBRE EL HERO
   =================================== */

.site-main {
    position: relative;
    z-index: 2;
}

/* La tarjeta se sube hacia el hero */
.search-card-float {
    margin-top: -18px;          /* la hace "flotar" */
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #D8E6E3;
    box-shadow: 0 18px 50px rgba(0,0,0,0.10);
    padding: 26px 26px 28px;
}

/* Para que el hero no quede "cortado" */
.hero {
    padding-bottom: 80px;       /* deja espacio para la tarjeta flotante */
}

/* En móvil la bajamos un poco menos */
@media (max-width: 600px) {
    .search-card-float {
        margin-top: -28px;
        padding: 20px 18px 22px;
        border-radius: 18px;
    }
    .hero {
        padding-bottom: 64px;
        border-bottom-left-radius: 22px;
        border-bottom-right-radius: 22px;
    }
}
.search-card-float {
    position: relative;
    overflow: hidden;
}

.search-card-float::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(4,182,168,0.20);
}

/* ==========================
   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;
}
/*****************************************
  REGRESO A FONDO VERDE SUAVE — ENEMÉDICOS
******************************************/

/* Barra principal */
.main-nav-bar {
    background: #04b6a8;
}

/* Barra superior */
.top-bar {
    background: #04b6a8;
}

/* Cuando haces scroll */
.site-header.is-scrolled .main-nav-bar {
    background: #04b6a8;
   
}

/* Botón CTA debe ser más visible con el fondo verde */
.btn-cta-header {
    background: linear-gradient(135deg, #0b7c80, #08a1ad);
    color: #ffffff;
}

/* Menú escritorio: color más oscuro para contraste */
.main-nav a {
    color: #fff;
}

.main-nav a:hover {
    color: #000;
}

/* LOGO centrado vertical, color correcto */
.logo-header img {
    height: 72px;
}

/* Ajuste sutil al hacer scroll */
.site-header.is-scrolled .logo-header img {
    height: 50px;
}

