/* --- CONFIGURACIÓN GENERAL --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Roboto', sans-serif; 
    color: #333; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

.container { 
    max-width: 1100px; 
    margin: auto; 
    padding: 0 20px; 
}

:root {
    --blue-main: #3498db;
    --blue-sky: #46a5e5;
    --blue-dark: #2c3e50;
    --light-bg: #f4f7f6;
    --whatsapp-green: #25d366; /* Color oficial WhatsApp */
}

/* --- PRELOADER --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content { text-align: center; }

.loader-logo {
    width: 150px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-bar {
    width: 100px;
    height: 4px;
    background: #eee;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 100%;
    background: var(--blue-main);
    animation: loading 1s infinite linear;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes loading {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* --- BOTÓN WHATSAPP FLOTANTE --- */
.whatsapp-btn-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.whatsapp-btn-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* --- HEADER --- */
header { 
    padding: 15px 0; 
    border-bottom: 1px solid #eee;
    background: #fff;
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo img { height: 60px; display: block; }

.contact-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phone {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.phone a { text-decoration: none; color: inherit; }
.phone i { color: var(--blue-main); font-size: 0.9rem; }

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.social-icons a {
    color: var(--blue-main);
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.social-icons a:hover {
    color: var(--blue-dark);
    transform: scale(1.1);
}

/* --- HERO --- */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('img/banner.jpeg'); 
    background-size: cover;
    background-position: center;
    height: 800px; 
    display: flex;
    align-items: center;
    color: white;
}

.hero-content h3 { font-weight: 400; font-size: 1.8rem; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); }

.hero-content h1 { 
    font-size: 3.8rem; 
    font-weight: 700;
    line-height: 1.1;
    margin: 15px 0 30px 0; 
    max-width: 750px; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

/* --- BOTONES --- */
.btn-main {
    display: inline-block;
    background: var(--blue-sky);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-main:hover { background: var(--blue-main); transform: translateY(-2px); }

/* --- SECCIONES --- */
section { padding: 80px 0; }

.section-title { 
    text-align: center; 
    color: var(--blue-main); 
    margin-bottom: 50px; 
    font-size: 3.2rem;
    font-weight: 700;
}

.flex-row { display: flex; align-items: center; gap: 50px; }
.flex-row.reverse { flex-direction: row-reverse; }

.col-text, .col-img { flex: 1; }
.col-img img { width: 100%; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.check-list { list-style: none; }
.check-list li { margin-bottom: 18px; display: flex; align-items: flex-start; }
.check-list li::before { 
    content: '✓'; 
    color: #27ae60; 
    font-weight: bold; 
    margin-right: 12px; 
    font-size: 1.2rem; 
}

.blue-text { color: var(--blue-dark); font-size: 2.5rem; margin-bottom: 10px; }
.light-blue-text { color: var(--blue-main); font-size: 1.3rem; margin-bottom: 20px; }

/* --- TESTIMONIOS BANNER --- */
.testimonials-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/testimonios.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
}

.white-text { color: #fff !important; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

.swiper { 
    width: 100%; 
    max-width: 800px; 
    margin: 0 auto;
    padding: 20px 0 60px !important; 
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px; 
    border-radius: 10px;
    text-align: center;
    height: auto;
    min-height: 250px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card p { font-style: italic; color: #333; font-size: 1.3rem; margin-bottom: 20px; }
.patient-name { font-weight: 700; color: var(--blue-main); font-size: 1rem; text-transform: uppercase; letter-spacing: 1.5px; }

.swiper-pagination-bullet { background: #fff !important; opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--blue-main) !important; opacity: 1; }

/* --- FOOTER --- */
footer { padding-top: 50px; border-top: 3px solid var(--blue-main); }
.footer-grid { display: flex; justify-content: space-between; margin-bottom: 50px; }
.footer-col { flex: 1; padding: 0 15px; } /* Añadido para mejor distribución */
.footer-col h5 { color: var(--blue-dark); font-size: 1.2rem; margin-bottom: 15px; font-weight: 700; }

.bottom-bar { background: var(--blue-main); color: white; text-align: center; padding: 30px 0; }
.bottom-content { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.footer-logo-small { height: 40px; filter: brightness(0) invert(1); opacity: 0.9; }
.bottom-bar p { font-size: 0.85rem; margin: 0; }
.bottom-bar a { color: white; text-decoration: underline; font-weight: bold; transition: opacity 0.3s; }
.bottom-bar a:hover { opacity: 0.7; }

/* Centrar el botón de valoración */
.center-btn {
    text-align: center;
    margin-top: 50px;
    width: 100%; 
    display: block;
}

/* --- RESPONSIVE OPTIMIZATION --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .section-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    /* Header apilado */
    .header-content { flex-direction: column; gap: 15px; }
    .contact-info { text-align: center; align-items: center; }
    .phone { justify-content: center; }
    .social-icons { justify-content: center; }

    /* Hero ajustado para celular */
    .hero { height: 600px; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; margin-bottom: 25px; } /* Letra más chica */
    .hero-content h3 { font-size: 1.3rem; }

    /* Secciones apiladas */
    section { padding: 60px 0; }
    .flex-row { flex-direction: column; text-align: center; }
    
    /* Perfil: Foto primero, texto después */
    .flex-row.reverse { flex-direction: column-reverse; } 

    .section-title { font-size: 2.2rem; margin-bottom: 30px; }
    .blue-text { font-size: 2rem; }
    .light-blue-text { font-size: 1.1rem; }
    .check-list li { justify-content: flex-start; text-align: left; } /* Lista alineada a izq para leer bien */

    /* Footer y Testimonios */
    .footer-grid { flex-direction: column; gap: 30px; text-align: center; }
    .testimonial-card p { font-size: 1.1rem; }
    .whatsapp-btn-float { width: 50px; height: 50px; font-size: 28px; bottom: 20px; right: 20px; } /* Botón más discreto en cel */
}