/* =========================================
   1. VARIABLES Y RESET GENERAL
   ========================================= */
:root {
    --primary: #577FFF;    /* Rojo corporativo */
    --secondary: #302783;  /* Azul oscuro */
    --bg-light: #f4f6f7;
    --text-main: #333333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; }
ul { list-style: none; }

/* =========================================
   2. HEADER Y NAVEGACIÓN
   ========================================= */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px; /* Espacio entre logo y texto */
}

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

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

/* Menú PC */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.btn-contact {
    background-color: var(--secondary);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-contact:hover { background-color: var(--secondary); }

/* Menú Móvil */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--secondary);
    background: none;
    border: none;
    padding: 0.5rem;
}

/* Responsive Nav */
/*@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-top: 1px solid #eee;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 1.5rem 0;
        text-align: center;
        gap: 1.5rem;
    }
    .nav-links.active { display: flex; }
    .logo-img { height: 40px; }
    .logo-text { font-size: 1rem; }
}*/

/* =========================================
   3. HERO SECTIONS (Cabeceras de página)
   ========================================= */
/* Hero Home (con imagen) */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 6rem 2rem 8rem;
    text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.2rem; opacity: 0.95; margin-bottom: 2rem; }

.cta-button {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Page Header (Resto de páginas: gradiente) */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

/* Headers específicos por color temático */
.page-header.online-header { background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%); }

/* =========================================
   4. ESTRUCTURA Y GRIDS
   ========================================= */
.container, .features-container, .tribute-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Márgenes negativos para subir sobre el header */
.features-container { margin: -5rem auto 4rem; }
.container { margin: -4rem auto 4rem; }
.tribute-container { max-width: 900px; }

/* Grids Generales (3 columnas en PC) */
.features-grid, .services-grid, .pricing-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr; /* Móvil por defecto */
}

@media (min-width: 768px) {
    .features-grid, .services-grid, .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   5. TARJETAS (Cards)
   ========================================= */
/* Tarjeta Base */
.card, .service-card, .price-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 5px solid var(--primary);
    height: 100%;
}

.card:hover, .service-card:hover, .price-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s;
}

/* Estilos específicos de Servicios */
.service-card { padding: 0; border-top: none; border-bottom: 4px solid var(--primary); }
.service-img { height: 180px; width: 100%; object-fit: cover; background: #eee; }
.service-content { padding: 1.5rem; text-align: left; }
.service-list li { margin-bottom: 0.5rem; padding-left: 1.2rem; position: relative; font-size: 0.95rem; }
.service-list li::before { content: "✓"; color: var(--primary); position: absolute; left: 0; font-weight: bold; }

/* Estilos específicos de Precios */
.price-card { display: flex; flex-direction: column; }
.price-amount { font-size: 2.5rem; color: var(--primary); font-weight: 800; margin-bottom: 0.5rem; }
.price-title { color: var(--secondary); font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.btn-price { display: block; width: 100%; padding: 0.8rem; border-radius: 4px; background: var(--secondary); color: white; font-weight: bold; transition: 0.3s; margin-top: auto;}
.btn-price:hover { background: var(--primary); }
.free-registration { background: #27ae60; color: white; font-size: 1.5rem; text-align: center; padding: 1rem; border-radius: 8px; font-weight: bold; margin-bottom: 2rem; box-shadow: var(--shadow); }

/* =========================================
   6. PÁGINAS ESPECÍFICAS
   ========================================= */

/* --- INICIO (About Section) --- */
.about-section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text h2 { color: var(--secondary); margin-bottom: 1rem; border-bottom: 2px solid var(--primary); display: inline-block; }
.about-image img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }

/* --- CALENDARIO --- */
.schedule-box { background: var(--white); padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); border-top: 5px solid var(--primary); margin-bottom: 3rem; }
.schedule-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.schedule-table th, .schedule-table td { padding: 1rem; text-align: left; border-bottom: 1px solid #eee; }
.tag-cita { background: #e3f2fd; color: #1565c0; padding: 4px 10px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.dates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.date-card { background: var(--white); padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); border-left: 4px solid var(--secondary); }

/* --- ONLINE --- */
.content-section { max-width: 1100px; margin: 4rem auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.feature-list li { margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.feature-icon { color: #16a085; font-size: 1.5rem; }

/* --- TRIBUTO A PI --- */
.tribute-card { background: var(--white); border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); overflow: hidden; padding: 3rem; text-align: center; }
.quote-icon { font-size: 3rem; color: var(--primary); opacity: 0.3; margin-bottom: 1rem; display: block; line-height: 1; }
.tribute-text { font-size: 1.2rem; color: #555; margin-bottom: 2rem; font-style: italic; max-width: 700px; margin: 0 auto 2rem; }

.pi-gallery { display: flex; flex-direction: column; align-items: center; gap: 2rem; margin-top: 3rem; }
.polaroid { background: white; padding: 1rem 1rem 3rem 1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.15); transition: transform 0.3s, opacity 0.3s; max-width: 300px; border-radius: 4px; }
.polaroid-large { max-width: 700px; width: 100%; padding: 1.5rem 1.5rem 4rem 1.5rem; z-index: 10; transform: rotate(0deg) !important; }
.secondary-photo { margin-top: 2rem; transform: scale(0.9) rotate(3deg); opacity: 0.85; }
.polaroid:hover { transform: scale(1.02) rotate(0deg); opacity: 1; z-index: 15; }
.polaroid img { width: 100%; height: auto; border-radius: 2px; border: 1px solid #eee; display: block; }
.polaroid-caption { font-family: 'Segoe UI', cursive, sans-serif; color: #777; margin-top: 1rem; font-size: 1.1rem; }
.polaroid-large .polaroid-caption { font-size: 1.3rem; font-weight: bold; color: var(--secondary); }
.highlight-box { background: #fff8e1; border-left: 5px solid #f1c40f; padding: 1.5rem; margin-top: 5rem; text-align: left; border-radius: 4px; }

/* --- CONTACTO --- */
.contact-grid { max-width: 1200px; margin: 4rem auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.contact-info { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.btn-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background-color: #25D366; color: white; padding: 1rem 2rem; border-radius: 50px; font-weight: bold; font-size: 1.1rem; margin-top: 1rem; transition: transform 0.3s, background 0.3s; max-width: 300px; }
.btn-whatsapp:hover { background-color: #1ebc57; transform: translateY(-3px); }
.contact-map { min-height: 450px; width: 100%; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 4rem 2rem 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p { font-size: 0.95rem; color: #bdc3c7; line-height: 1.8; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #bdc3c7; transition: color 0.3s; font-size: 0.95rem; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* RESPONSIVE GENERAL */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .about-section, .content-section, .contact-grid { grid-template-columns: 1fr; }
    .contact-map { height: 350px; }
}

/* =========================================
   PÁGINA DE OPINIONES (Estilo Google)
   ========================================= */
.reviews-summary {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: inline-block;
    width: 100%;
    max-width: 600px;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #5f6368;
    margin-bottom: 1rem;
}

.big-rating {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.stars-gold { color: #f1c40f; letter-spacing: 2px; font-size: 1.5rem; }

/* Grid de Reseñas */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Tarjeta de Reseña Individual */
.review-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: transform 0.2s;
    border-left: none; /* Quitamos el borde de color que usábamos en otras cards */
    text-align: left; /* Google alinea a la izquierda */
    position: relative;
}

.review-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background-color: #bdc3c7; /* Color gris por defecto */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Colores aleatorios para los avatares como Google */
.avatar-blue { background-color: #4285F4; }
.avatar-red { background-color: #DB4437; }
.avatar-green { background-color: #0F9D58; }
.avatar-orange { background-color: #F4B400; }

.reviewer-info h4 { font-size: 1rem; margin-bottom: 2px; color: #202124; }
.review-date { font-size: 0.8rem; color: #70757a; }

.review-text {
    font-size: 0.95rem;
    color: #4b4b4b;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.google-icon-small {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 20px;
    opacity: 0.6;
}

/* Botón grande para ir a Google */
.btn-google-maps {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 1rem 2rem;
    border-radius: 24px;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: 3rem;
    box-shadow: 0 1px 2px rgba(60,64,67,0.3);
}

.btn-google-maps:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    color: #202124;
}


/* =========================================
   CORRECCIÓN FINAL: BOTÓN + MENÚ MÓVIL
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. HACEMOS VISIBLE EL BOTÓN DE LA HAMBURGUESA */
    .hamburger {
        display: block !important;
        position: relative;
        z-index: 10001; /* Siempre accesible */
        cursor: pointer;
        font-size: 2rem;
        color: var(--secondary);
        background: transparent;
        border: none;
        padding: 5px;
    }

    /* 2. EL CONTENEDOR DEL MENÚ (FONDO AZUL) */
    .nav-links, #nav-menu {
        display: none; /* Oculto por defecto */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary); /* Fondo Azul Corporativo */
        padding: 20px 0 40px 0;
        flex-direction: column;
        align-items: center; /* Esto centra los textos */
        text-align: center;
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
        z-index: 9999; /* Por encima de todo */
    }

    /* 3. CLASE ACTIVE (Abre el menú) */
    .nav-links.active, #nav-menu.active {
        display: flex !important;
    }

    /* 4. ESTILO DE LOS ENLACES */
    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        color: #ffffff !important; /* Texto blanco */
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-decoration: none;
    }

    .nav-links a:hover {
        background-color: rgba(255,255,255,0.1);
        color: var(--primary) !important;
    }
    
    /* 5. ARREGLO DEL BOTÓN CONTACTAR DESCENTRADO */
    .nav-links .btn-contact {
        display: block !important; /* Comportamiento de bloque */
        width: 80% !important; /* Ancho controlado */
        margin: 25px auto 0 auto !important; /* AUTO a los lados lo centra */
        background-color: var(--primary) !important;
        color: white !important;
        border-radius: 50px;
        text-align: center;
        padding: 12px 0; /* Padding vertical equilibrado */
    }
}

/* MENU FIJO */

.site-header {
    position: fixed; /* Lo mantiene fijo en la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    background-color: #ffffff; /* Ajusta al color que prefieras */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Opcional: añade profundidad */
}

/* IMPORTANTE: Evita que el contenido se esconda debajo del header */
body {
    padding-top: 80px; /* Ajusta este valor a la altura real de tu header */
}