/* ============================
   TIPOGRAFÍA Y BASE
============================ */
body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: #f7f7f7;
    color: #333;
}

h1, h2, h3 {
    margin: 0;
    font-weight: 700;
}

.section {
    padding: 60px 20px;
    text-align: center;
}

/* 🔵 Encabezados estilo botón azul */
.section h2 {
    display: inline-block;
    background: #2c7be5;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 26px;
    margin-bottom: 40px;
}

/* ============================
   HERO
============================ */
.hero {
    background: url('../img/hero.jpg') center/cover no-repeat;
    height: 70vh;
    position: relative;
}

.hero-overlay {
    background: rgba(0,0,0,0.45);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-sub {
    margin-top: 10px;
    font-size: 20px;
}

.btn-primary {
    margin-top: 20px;
    padding: 12px 25px;
    background: #2c7be5;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
}

/* ============================
   SERVICIOS (3+3)
============================ */
#servicios .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.equipo-grid,
.why-us {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}


.service-card,
.equipo-card,
.why-card,
.review-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.equipo-card img {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
}

.cv-list {
    text-align: left;
    margin-top: 15px;
    line-height: 1.6;
}

/* ============================
   RESEÑAS – RESUMEN
============================ */
.reviews-summary {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.summary-score {
    font-size: 55px;
    font-weight: 700;
    color: #2c7be5;
}

.summary-stars {
    font-size: 26px;
    color: #f4c430;
}

.summary-count {
    font-size: 15px;
    opacity: 0.8;
}

.summary-bars .bar-row {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.bar {
    width: 150px;
    height: 8px;
    background: #ddd;
    margin-left: 10px;
    border-radius: 4px;
}

.bar div {
    height: 100%;
    background: #2c7be5;
    border-radius: 4px;
}

/* ============================
   RESEÑAS – GRID 1 COLUMNA / 2 COLUMNAS
============================ */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tarjetas */
.review-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: left;
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.review-card::before {
    content: "“";
    font-size: 60px;
    color: #2c7be5;
    opacity: 0.15;
    position: absolute;
    top: 10px;
    left: 15px;
}

/* Cabecera */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-name {
    font-weight: 600;
    font-size: 17px;
}

.review-stars {
    color: #f4c430;
    font-size: 20px;
}

/* Fecha */
.review-date {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 10px;
}

/* Texto */
.review-text {
    line-height: 1.6;
    font-size: 15px;
}

.reviews-button a {
    display: inline-block;
    background: #2c7be5;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
}

.reviews-button a:hover {
    background: #1f5fbf;
}

/* ============================
   MAPA Y CONTACTO
============================ */
.mapa-iframe {
    margin: 0 auto;
    max-width: 900px;
}

.mapa-iframe iframe {
    width: 100%;
    height: 450px;
}

.contact-box {
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0;
    background: white;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: left;
    font-size: 16px;
    line-height: 1.7;
}

.contact-link {
    color: #2c7be5;
    text-decoration: none;
}


/* ============================
   COOKIES
============================ */
.cookie-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 260px;
    font-size: 15px;
    display: none;
    z-index: 999999;
}

.cookie-buttons {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.cookie-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.cookie-btn.accept {
    background: #4CAF50;
    color: white;
}

.cookie-btn.reject {
    background: #ccc;
    color: #333;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 900px) {
    #servicios .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (max-width: 768px) {
    .hero-overlay {
        text-align: center !important;
    }
}

.hero h1 {
    text-align: center;
}

.subtitulo-hero {
    display: inline-block;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 10px;
    border-bottom: 3px solid #2c7be5;
    padding-bottom: 4px;
}
@media (max-width: 600px) {
    .contact-box {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

/* FOOTER – Actualizado con color corporativo */
.footer-clinica {
    background: #2c7be5;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 15px;
}

/* Aseguramos que los enlaces dentro del footer también sean blancos */
.footer-clinica a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-clinica a:hover {
    color: #d1e3ff;
}
/* INICIO GALERÍA */
.galeria {
    margin-top: 60px;
}

.galeria-carrusel {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.galeria-track {
    display: flex;
    transition: transform 0.6s ease;
}

.galeria-card {
    width: 100%;
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    overflow: hidden;
}

.galeria-card img {
    width: 100%;
    height: auto;
    display: block;
}

.galeria-card h3 {
    font-size: 20px;
    margin: 15px;
}

.galeria-card p {
    font-size: 16px;
    margin: 0 15px 20px;
    color: #444;
}
/* FIN GALERÍA */

.why-bg {
    background-image: url("../img/fondo-why.jpg");
    background-size: cover ;
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
    padding: 60px 20px;
    overflow: hidden;
    z-index: 0;
}

#why h2,
.why-us,
.why-card {
    position: relative;
    z-index: 1;
}

#why h2,
.why-card h3,
.why-card p {
    color: #fff;
}

/* Asegurar que el texto sea blanco y esté por encima del overlay */
#why h2,
#why .why-card h3 {
    color: #fff !important;
    position: relative;
    z-index: 2;
}

#why p {
    color: #555 !important;
}
/* Hacer transparentes los recuadros para que no tapen el fondo */
.why-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    z-index: 2;
}
.breadcrumb-visual {
    background: #ffffff;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.breadcrumb-visual a {
    color: #2c7be5;
    text-decoration: none;
    font-weight: 600;
}

#breadcrumb-current {
    color: #666;
}

/* Ajuste para que la caja de contacto no tenga padding interno global */
.contacto-layout-nuevo {
    padding: 0 !important;
    overflow: hidden;
}

.contacto-col {
    flex: 1;
    min-width: 260px;
    font-style: normal;
    line-height: 1.7;
}

/* Adaptación para móviles */
@media (max-width: 600px) {
    .contacto-logo-bg {
        height: 200px;
    }
    .contacto-datos-flex {
        padding: 20px;
    }
}/* Layout General */
.contacto-fila-superior {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 40px;
    border-top: 1px solid #eee;
}

.contacto-fila-telefono {
    padding: 0 40px 30px 40px;
    display: flex;
    justify-content: center;
}

/* Botón Azul de Teléfono */
.boton-telefono-azul {
    background-color: #2c7be5;
    color: white !important;
    text-decoration: none;
    padding: 12px 35px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(44, 123, 229, 0.3);
}

.boton-telefono-azul:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(44, 123, 229, 0.4);
}

.icono-tel { font-size: 20px; }

.datos-tel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.numero-texto {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

/* Indicador Abierto/Cerrado */
.indicador-disponibilidad {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 2px;
}

.circulo-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
}

.estado-abierto { background-color: #2ecc71; box-shadow: 0 0 5px #2ecc71; }
.estado-cerrado { background-color: #e74c3c; }

@media (max-width: 600px) {
    .contacto-fila-superior { padding: 20px; text-align: center; }
}

/* INICIO MODIFICACIÓN: Ajustar espacio entre equipo y galería */
#equipo {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.galeria {
    margin-top: 60px !important;
    padding-top: 0 !important;
}
/* FIN MODIFICACIÓN */

/* INICIO MODIFICACIÓN: Logos de certificaciones en footer */
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    height: 50px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive para móviles */
@media (max-width: 600px) {
    .footer-logos {
        gap: 20px;
    }
    .footer-logo {
        height: 40px;
    }
}
/* FIN MODIFICACIÓN: Logos de certificaciones en footer */

/* INICIO MODIFICACIÓN: Estilo enlace herramientas en footer */
.footer-herramientas {
    margin: 10px 0;
    font-size: 0.85rem;
}

.footer-herramientas a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.footer-herramientas a:hover {
    color: #d1e3ff;
}
/* FIN MODIFICACIÓN: Estilo enlace herramientas en footer */

video::-internal-media-controls-download-button {
    display: none;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

video::-webkit-media-controls-panel {
    display: flex;
}

/* INICIO MODIFICACIÓN: Animación de vaivén para botón "Pide tu cita" */
.btn-primary {
    animation: vaiven 2.5s ease-in-out infinite;
    transform-origin: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
    transform: scale(1.02);
    animation: none;
}

@keyframes vaiven {
    0% {
        transform: translateX(0px) rotate(0deg);
    }
    50% {
        transform: translateX(3px) rotate(1deg);
    }
    100% {
        transform: translateX(0px) rotate(0deg);
    }
}
/* FIN MODIFICACIÓN: Animación de vaivén para botón "Pide tu cita" */

.footer-privacidad {
    margin: 5px 0;
    font-size: 0.8rem;
}

.footer-privacidad a {
    color: white;
    text-decoration: underline;
}

.footer-privacidad a:hover {
    color: #d1e3ff;
}
/* INICIO MODIFICACIÓN: Estilos específicos para página de privacidad */
.contenido-privacidad h2,
.contenido-privacidad h3 {
    background: none !important;
    color: #2c7be5 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    text-align: left !important;
    margin: 30px 0 15px 0 !important;
}

.contenido-privacidad h2 {
    font-size: 1.5rem !important;
}

.contenido-privacidad h3 {
    font-size: 1.2rem !important;
}
/* FIN MODIFICACIÓN: Estilos específicos para página de privacidad */

/* INICIO MODIFICACIÓN: Botón Me gusta en galería */
.like-container {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.like-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 5px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    color: #666;
}

.like-btn:hover {
    background: #ffebee;
    border-color: #ff6b6b;
    transform: scale(1.02);
}

.like-btn.liked {
    background: #ffebee;
    border-color: #e74c3c;
    color: #e74c3c;
}

.like-count {
    margin-left: 5px;
    font-weight: 600;
}
/* FIN MODIFICACIÓN: Botón Me gusta en galería */

/* ============================
   BLOQUE: POR QUÉ ELEGIRNOS (MEJORADO)
   ============================ */

.why-subtitulo {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
}

.why-us-mejorado {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card-mejorado {
    flex: 1 1 220px;
    min-width: 200px;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card-mejorado:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.why-icono {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-card-mejorado h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #2c7be5;
}

.why-card-mejorado p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* Tarjeta destacada: especialidad cardiología */
.why-card-destacada {
    border: 2px solid #2c7be5;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.why-card-destacada .why-icono {
    animation: latido 1.5s ease infinite;
}

@keyframes latido {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .why-us-mejorado {
        gap: 1.5rem;
    }
    
    .why-card-mejorado {
        flex: 1 1 160px;
        min-width: 150px;
        padding: 1.5rem 1rem;
    }
    
    .why-icono {
        font-size: 2.5rem;
    }
    
    .why-card-mejorado h3 {
        font-size: 1rem;
    }
    
    .why-card-mejorado p {
        font-size: 0.8rem;
    }
}
.badge-especialidad {
    display: inline-block;
    background: #e8f0fe;
    color: #2c7be5;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin: 0.5rem 0 0.5rem 0;
    font-weight: 500;
}

#why .why-subtitulo {
    color: #2c7be5 !important;
}

.boton-whatsapp-contacto {
    background-color: #25D366;
    color: white !important;
    text-decoration: none;
    padding: 12px 35px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.boton-whatsapp-contacto:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon-contacto {
    width: 22px;
    height: 22px;
    display: block;
    background-color: white;
    mask: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M16.027 3C9.383 3 4 8.383 4 15.027c0 2.652.867 5.102 2.332 7.102L4 29l7.102-2.332A12.94 12.94 0 0 0 16.027 27C22.67 27 28 21.617 28 14.973 28 8.33 22.67 3 16.027 3zm0 22.667c-2.27 0-4.36-.74-6.06-1.987l-.427-.307-4.213 1.387 1.387-4.213-.307-.427A10.62 10.62 0 0 1 5.333 15c0-5.907 4.787-10.667 10.694-10.667 5.907 0 10.64 4.76 10.64 10.667 0 5.907-4.733 10.667-10.64 10.667zm5.293-7.987c-.293-.147-1.733-.853-2.007-.947-.267-.093-.46-.147-.653.147-.187.293-.747.947-.92 1.133-.173.187-.34.2-.633.067-.293-.147-1.24-.46-2.36-1.467-.873-.78-1.467-1.747-1.64-2.04-.173-.293-.02-.453.127-.6.133-.133.293-.347.44-.52.147-.173.193-.293.293-.487.1-.187.047-.353-.02-.5-.067-.147-.653-1.573-.893-2.153-.233-.56-.467-.48-.653-.487-.173-.007-.373-.007-.573-.007-.2 0-.52.073-.793.353-.273.28-1.04 1.013-1.04 2.467 0 1.453 1.067 2.853 1.213 3.047.147.193 2.1 3.2 5.093 4.487.713.307 1.267.487 1.7.627.713.227 1.36.193 1.873.12.573-.087 1.733-.707 1.98-1.387.247-.68.247-1.267.173-1.387-.067-.12-.26-.193-.553-.34z"/></svg>') center / contain no-repeat;
}
/* CHATBOT CONSEJOS */
.chatbot-btn {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 80px;
    height: 120px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chatbot-btn .chatbot-icon {
    width: 55px;
    height: 80px;
    object-fit: cover;
    border-radius: 50% / 65%;
    pointer-events: none;
}

.chatbot-badge {
    position: fixed;
    bottom: 180px;
    left: 20px;
    background: #ff5722;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 12px;
    z-index: 10000;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease;
}

.chatbot-badge.oculto {
    opacity: 0;
    pointer-events: none;
}

.chatbot-box {
    position: fixed;
    bottom: 120px;
    left: 20px;
    width: 280px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

.chatbot-header {
    background: #007bff;
    color: white;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid #0056b3;
    text-align: center;
    position: relative;
}

.chatbot-close {
    cursor: pointer;
    font-size: 20px;
    position: absolute;
    right: 10px;
    top: 8px;
}

.chatbot-content {
    padding: 15px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.chatbot-content p {
    margin-bottom: 12px;
}
/* FIN CHATBOT CONSEJOS */
/* INICIO MODIFICACIÓN: Botones de contacto responsive */
@media (max-width: 768px) {
    .contacto-fila-telefono {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 20px !important;
    }
    
    .boton-telefono-azul,
    .boton-whatsapp-contacto {
        width: 100% !important;
        justify-content: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 12px 20px !important;
    }
}
/* FIN MODIFICACIÓN: Botones de contacto responsive */
