/* =========================================
   RESET DE ESTILOS BÁSICOS
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

html, body { 
    height: 100%; 
    overflow-x: hidden; 
}

body { 
    display: flex; 
    flex-direction: column; 
    background-color: #ecf0f1; 
}

/* =========================================
   HEADER Y LOGO
   ========================================= */
header { 
    background-color: #ffffff; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 25px 40px; 
    position: relative; 
    z-index: 10; 
    flex-shrink: 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    cursor: pointer; 
    transition: opacity 0.3s; 
}

.logo:hover { 
    opacity: 0.8; 
}

.logo img { 
    height: 100px; 
    width: auto; 
    display: block; 
}

/* =========================================
   NAVEGACIÓN (MENÚ PRINCIPAL)
   ========================================= */
nav ul { 
    list-style: none; 
    display: flex; 
    gap: 5px; 
}

nav ul li a { 
    text-decoration: none; 
    color: #934e4e; 
    font-size: 17px; 
    font-weight: 600; 
    padding: 10px 15px; 
    position: relative; 
    display: inline-block; 
    border-radius: 4px; 
    transition: all 0.3s ease; 
}

/* Línea animada (Escritorio) */
nav ul li a::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 0%; 
    height: 3px; 
    background-color: #934e4e; 
    border-radius: 3px; 
    transition: width 0.3s ease-in-out; 
}

nav ul li a:hover { 
    color: #7a3f3f; 
    background-color: rgba(147, 78, 78, 0.08); 
}

nav ul li a:hover::after, 
nav ul li a.active-link::after { 
    width: 100%; 
}

nav ul li a.active-link { 
    color: #934e4e; 
    text-shadow: 0 0 8px rgba(147, 78, 78, 0.3); 
}

nav ul li a:active { 
    transform: scale(0.92); 
}

/* Menú Móvil (Hamburguesa) */
.hamburger { 
    display: none; 
    cursor: pointer; 
    flex-direction: column; 
    gap: 5px; 
}

.hamburger .bar { 
    width: 25px; 
    height: 3px; 
    background-color: #934e4e; 
    border-radius: 2px; 
    transition: all 0.3s ease; 
}

/* =========================================
   CONTENIDO PRINCIPAL Y ANIMACIONES
   ========================================= */
main { 
    flex: 1 0 auto; 
    width: 100%; 
    padding-bottom: 50px; 
}

.content-section { 
    padding: 50px 0; 
    text-align: center; 
    animation: fadeIn 0.4s ease-in-out; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Animaciones suaves al scroll (JS Observer) */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }
.delay-4 { transition-delay: 0.7s; }

/* Títulos y Subtítulos */
.page-title, .main-headline, .section-subtitle, .steps-title { 
    padding-left: 20px; 
    padding-right: 20px; 
    margin-left: auto; 
    margin-right: auto; 
    text-align: center; 
}

.page-title, .content-section h1 { 
    color: #2c3e50; 
    font-size: 28px; 
    margin-bottom: 15px; 
    max-width: 900px; 
    line-height: 1.3;
}

.main-headline { 
    color: #2c3e50; 
    font-size: 24px; 
    font-weight: 600; 
    margin-top: 40px; 
    margin-bottom: 15px; 
    max-width: 900px; 
    line-height: 1.3; 
}

.section-subtitle { 
    color: #555; 
    line-height: 1.6; 
    max-width: 800px;
    margin-top: 30px;
    margin-bottom: 35px; 
    font-size: 20px; 
}

.highlight-text { 
    color: #934e4e; 
    font-weight: 700; 
    font-size: 20px; 
    margin-bottom: 5px; 
    display: block; 
}

/* =========================================
   CARRUSEL
   ========================================= */
.carousel-container { 
    position: relative; 
    width: 100%; 
    margin: 0 0 20px 0; 
    overflow: hidden; 
}

.carousel-track { 
    display: flex; 
    transition: transform 0.5s ease-in-out; 
}

.carousel-slide { 
    min-width: 100%; 
    position: relative; 
}

.carousel-slide img { 
    width: 100%; 
    height: 550px; 
    object-fit: cover; 
    object-position: center top;
    display: block; 
}

.hero-contact-btn { 
    position: absolute; 
    top: 60%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background-color: #934e4e; 
    color: white; 
    padding: 15px 35px; 
    font-size: 18px; 
    font-weight: bold; 
    text-decoration: none; 
    border-radius: 50px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
    transition: all 0.3s ease; 
    z-index: 5; 
}

.hero-contact-btn:hover { 
    background-color: #7a3f3f; 
    transform: translate(-50%, -55%); 
    box-shadow: 0 6px 20px rgba(0,0,0,0.6); 
}

/* Botones Fijos para evitar temblores */
.carousel-btn { 
    position: absolute; 
    top: 50%; 
    margin-top: -25px; 
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4); 
    color: white; 
    border: none; 
    cursor: pointer; 
    font-size: 24px; 
    border-radius: 50%; 
    transition: background-color 0.3s ease, transform 0.2s ease; 
    z-index: 10; 
}

.carousel-btn:hover { 
    background-color: rgba(0, 0, 0, 0.8); 
    transform: scale(1.1); 
}

.prev-btn { left: 20px; } 
.next-btn { right: 20px; }

.carousel-dots { 
    position: absolute; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 10px; 
    z-index: 6; 
}

.dot { 
    width: 12px; 
    height: 12px; 
    background-color: rgba(255, 255, 255, 0.5); 
    border-radius: 50%; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.dot.active-dot { 
    background-color: white; 
    transform: scale(1.2); 
}

/* =========================================
   CAJAS DE PASOS (1, 2, 3)
   ========================================= */
.steps-title { 
    color: #934e4e; 
    font-size: 28px; 
    margin-top: 40px; 
    margin-bottom: 35px; 
    font-weight: bold; 
    max-width: 900px; 
}

.steps-container { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    max-width: 900px; 
    margin: 0 auto 50px auto; 
    width: calc(100% - 40px); 
}

.step-item { 
    display: flex; 
    align-items: flex-start; 
    background-color: #ffffff; 
    padding: 25px 30px; 
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    text-align: left; 
    border-left: 5px solid #934e4e; 
    gap: 25px; 
    transition: all 0.3s ease; 
}

.step-item:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); 
}

.step-icon { 
    flex-shrink: 0; 
    width: 50px; 
    height: 50px; 
    background-color: rgba(147, 78, 78, 0.1); 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.step-icon svg { width: 26px; height: 26px; fill: #934e4e; }

.step-content h3 { color: #2c3e50; font-size: 20px; margin-bottom: 8px; }
.step-content p { color: #555; font-size: 16px; line-height: 1.6; margin-top:15px; margin-bottom: 10px; }
.step-content ul { margin-left: 20px; color: #555; line-height: 1.6; font-size: 16px; }
.step-content ul li { margin-bottom: 5px; }

ul.check-list { list-style: none; margin-left: 0; }
ul.check-list li { display: flex; align-items: flex-start; margin-bottom: 5px;}
ul.check-list li::before { content: '✓'; color: #934e4e; font-weight: bold; font-size: 16px; margin-right: 8px; }

/* =========================================
   TARJETAS GRID (Evaluaciones / Estudios)
   ========================================= */
.eval-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    max-width: 1050px; 
    margin: 0 auto; 
    width: calc(100% - 40px); 
    text-align: left; 
}

.eval-card { 
    background: #ffffff; 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-top: 5px solid #934e4e; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    transition: all 0.3s ease; 
}

.eval-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); 
}

.eval-card.full-width { 
    grid-column: 1 / -1; 
    align-items: flex-start; 
    text-align: left; 
}

.eval-card h3 { color: #2c3e50; font-size: 19px; margin-bottom: 10px; line-height: 1.4; }
.eval-card p { color: #7f8c8d; font-size: 14px; line-height: 1.5; }

/* Subsección Encuestas */
.encuestas-container { 
    display: flex; 
    justify-content: space-between; 
    width: 100%; 
    gap: 30px; 
    margin-top: 20px; 
    flex-wrap: wrap; 
}

.encuestas-col { flex: 1; min-width: 250px; }
.encuestas-col h4 { 
    color: #2c3e50; 
    font-size: 16px; 
    margin-bottom: 15px; 
    border-bottom: 2px solid rgba(147, 78, 78, 0.2); 
    padding-bottom: 8px; 
    display: inline-block; 
}

.encuestas-col ul { list-style: none; color: #555; font-size: 15px; line-height: 1.8; }
.encuestas-col ul li { margin-bottom: 8px; display: flex; align-items: center; }
.encuestas-col ul li::before { content: "•"; color: #934e4e; font-size: 20px; margin-right: 10px; }

.method-list li::before { display: none; }
.method-icon { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 28px; 
    height: 28px; 
    background-color: rgba(147, 78, 78, 0.1); 
    border-radius: 50%; 
    margin-right: 12px; 
}

.method-icon svg { width: 14px; height: 14px; fill: #934e4e; }

/* =========================================
   CONTACTO Y BOTONES DE ACCIÓN
   ========================================= */
.contact-info { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
    background: white; 
    padding: 40px 30px; 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    max-width: 500px; 
    margin: 0 auto; 
    width: calc(100% - 40px); 
}

.contact-phone { font-size: 22px; color: #2c3e50; font-weight: bold; }

/* Quitar estilo azul en iOS para teléfonos */
a[href^="tel"] {
  color: inherit; 
  text-decoration: none; 
}

.contact-email { 
    font-size: 18px; 
    color: #2c3e50; 
    font-weight: 600; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    transition: color 0.3s; 
    margin-bottom: 5px; 
}

.contact-email:hover { color: #934e4e; }
.contact-email svg { width: 20px; height: 20px; fill: currentColor; }

.whatsapp-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    background-color: #56945b; 
    color: white; 
    text-decoration: none; 
    padding: 12px 25px; 
    font-size: 18px; 
    font-weight: 600; 
    border-radius: 50px; 
    transition: all 0.3s; 
    box-shadow: 0 4px 6px rgb(28 76 46 / 30%);
    margin-top: 10px; 
}

.whatsapp-btn:hover { 
    background-color: #1EBE5D; 
    transform: translateY(-3px); 
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4); 
}

/* =========================================
   FOOTER
   ========================================= */
footer { 
    background-color: #934e4e; 
    color: #f1f1f1; 
    text-align: center; 
    padding: 20px; 
    border-top: 3px solid #7a3f3f; 
    flex-shrink: 0; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.footer-content { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 30px; 
    flex-wrap: wrap; 
}

.footer-content p, .copyright { margin: 0; font-size: 15px; }
.footer-content strong { color: white; }
.copyright { font-size: 14px; color: #e0e0e0; }

/* =========================================
   MÓVIL (MEDIA QUERIES)
   ========================================= */
@media (max-width: 768px) {
    header { padding: 15px 20px; }
    
    /* Logo optimizado para celular */
    .logo img { height: 90px; }
    
    .hamburger { display: flex; }
    nav { 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background-color: #ffffff; 
        display: none; 
        box-shadow: -1px 4px 6px rgb(0 0 0 / 40%);
    }
    nav ul { flex-direction: column; gap: 0; text-align: left; }
    nav ul li a {
        color: #4d4242;
        display: block; 
        padding: 15px 20px; 
        border-radius: 0; 
        border-bottom: 1px solid #f0f0f0; 
        border-left: 0px solid #934e4e; 
    }
    nav ul li a::after { display: none; }
    nav ul li a:hover, nav ul li a.active-link { 
        background-color: rgba(147, 78, 78, 0.05); 
        padding-left: 30px; 
        border-left: 6px solid #934e4e; 
    }
    nav.active { display: block; }
    
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .page-title, .content-section h1 { font-size: 22px; }
    .main-headline { font-size: 18px; margin-top: 30px; } 
    .section-subtitle { font-size: 17px; margin-bottom: 25px; }
    .steps-title { font-size: 22px; margin-bottom: 25px; text-align: center; }
    
    .step-item { flex-direction: column; align-items: center; text-align: center; padding: 20px; gap: 15px; }
    .step-content ul { text-align: left; display: inline-block; }
    
    .eval-grid { grid-template-columns: 1fr; }
    .eval-card.full-width { text-align: center; align-items: center; }
    
    .encuestas-container { flex-direction: column; gap: 20px; }
    .encuestas-col ul { display: inline-block; text-align: left; }
    
    .carousel-slide img { height: 400px; } 
    .hero-contact-btn { font-size: 16px; padding: 12px 25px; top: 70%; }
    
    /* Botones de dirección (< >) adaptados para móvil */
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
        margin-top: -17px; 
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}