/* VARIABLES Y RESET (Basado en gráficas Sinapsis ATE) */
:root {
    --primary: #216170; /* Teal/Celeste Oscuro */
    --secondary: #e66a35; /* Naranja */
    --dark: #16404b; /* Teal más oscuro */
    --light: #f4f8f9; /* Crema/Celeste muy claro */
    --text: #334155;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--text); background-color: var(--light); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-white { background-color: var(--white); }
.img-fluid { display: block; width: 100%; height: auto; object-fit: cover; }
.profile-img { border-radius: 12px; border: 4px solid var(--secondary); overflow: hidden; line-height: 0; }

/* NAVEGACIÓN */
header { background: var(--white); padding: 12px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo-img { height: 56px; width: auto; } /* Ajuste para logo_Ate_Sinapsis.jpeg - se adapta al alto de la navegación */
.nav-links { display: flex; flex-wrap: wrap; gap: 15px; }
.nav-links a { text-decoration: none; color: var(--primary); padding: 6px 0; font-weight: 600; transition: 0.3s; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--secondary); border-bottom: 2px solid var(--secondary); }

/* HERO SLIDER (NUEVO) */
.hero-slider-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 88px; /* Compensa la barra de navegación fija */
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Efecto suave de transición */
}

.slide.active {
    opacity: 1;
}

.slide-1 { background-image: linear-gradient(rgba(33, 97, 112, 0.8), rgba(33, 97, 112, 0.8)), url('../img/clases.jpeg'); }
.slide-2 { background-image: linear-gradient(rgba(33, 97, 112, 0.8), rgba(33, 97, 112, 0.8)), url('../img/niños.jpeg'); }
.slide-3 { background-image: linear-gradient(rgba(33, 97, 112, 0.8), rgba(33, 97, 112, 0.8)), url('../img/profesores.jpeg'); }

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
}

/* BOTONES */
.btn { display: inline-block; padding: 12px 30px; border-radius: 6px; text-decoration: none; font-weight: 700; transition: 0.3s; text-align: center; border: none; cursor: pointer; }
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: #cf5a2a; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-small { margin-top: 15px; padding: 8px 15px; }
.active-link { color: var(--secondary); }
.section-panel { padding: 60px; border-radius: 12px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.card.border-primary { border-top-color: var(--primary); }
.list-indent { padding-left: 20px; }
.page-main { padding-top: 100px; }
.service-panel { background: var(--white); padding: 50px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-top: 5px solid var(--primary); max-width: 900px; margin: 0 auto; }
.service-panel h3 { font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; }
.service-subtitle { color: var(--secondary); font-weight: bold; font-size: 1.2rem; margin-bottom: 25px; }
.service-panel p { font-size: 1.1rem; margin-bottom: 20px; }
.service-features { background: var(--light); padding: 20px; border-radius: 8px; margin-bottom: 30px; }
.service-features ul { list-style: none; margin: 0; padding: 0; }
.service-features li { margin-bottom: 10px; }
.service-actions { text-align: center; }
.price-card p { font-size: 0.9rem; font-style: italic; margin-bottom: 15px; }
.price-card span { font-size: 1rem; color: #666; font-weight: normal; }
.page-section { border-radius: 12px; padding: 40px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.about-subtitle { font-size: 1.2rem; color: var(--primary); }
.page-lead { font-size: 1.1rem; max-width: 800px; margin: 0 auto; }
.footer-small { font-size: 0.8rem; margin-top: 10px; opacity: 0.7; }
.page-footer { margin-top: 40px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.price-card { background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); display: flex; flex-direction: column; border-top: 5px solid var(--primary); }
.price-card.popular { border-top-color: var(--secondary); transform: scale(1.02); }
.price-title { font-size: 1.5rem; color: var(--primary); margin-bottom: 15px; }
.price-cost { font-size: 2rem; font-weight: bold; margin-bottom: 20px; color: var(--secondary); }
.features-list { list-style: none; margin-bottom: 30px; flex-grow: 1; padding: 0; }
.features-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.features-list li::before { content: "✓"; color: var(--secondary); position: absolute; left: 0; font-weight: bold; }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.cv-list li::before { content: "•"; color: var(--primary); font-weight: bold; position: absolute; left: 0; font-size: 1.2rem; }
.cv-list li.no-bullet { padding-left: 0; margin-bottom: 0; }
.cv-list li.no-bullet::before { content: none; }
.cv-sublist { list-style: none; margin: 0; padding: 0 0 0 10px; }
.cv-sublist li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.cv-sublist li::before { content: "◦"; color: var(--primary); font-weight: normal; position: absolute; left: 0; top: 0.4rem; font-size: 0.85rem; line-height: 1; }
.profile-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; margin-top: 40px; }
.profile-img { border-radius: 12px; border: 4px solid var(--secondary); overflow: hidden; }
.cv-section { margin-bottom: 30px; }
.cv-section h3 { color: var(--secondary); border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; margin-bottom: 15px; }

/* SECCIONES */
main > section { padding: 80px 0; }
section { padding: 80px 0; }
section > .section-panel { padding: 60px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.section-panel .section-title { margin-bottom: 30px; }
.section-title { font-size: 2.2rem; margin-bottom: 40px; color: var(--primary); text-align: center; }

/* TABLA FECHAS CLAVES */
.table-container { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background-color: var(--primary); color: var(--white); font-weight: 600; }
tr:hover { background-color: var(--light); }

.table-note { margin-top: 15px; font-size: 0.95rem; color: #556271; }

.cat-hito { border-left: 5px solid #8b8b8b; }
.cat-procesos { border-left: 5px solid #005aa3; }
.cat-portafolio { border-left: 5px solid #ed1b34; }
.cat-resultados { border-left: 5px solid #283063; }

/* TARJETAS (Metodología, Sitios de Interés, Planes) */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--secondary); }
.card h3 { color: var(--primary); margin-bottom: 15px; }

/* CONTACTO */
.contact-wrapper { max-width: 600px; margin: 0 auto; padding: 40px; background: var(--white); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; }
.btn-block { width: 100%; }

/* BANNER ATE FOOTER */
.ate-banner { background: var(--light); padding: 40px 20px; text-align: center; border-top: 1px solid #e2e8f0; }
.ate-banner img { max-width: 150px; margin-bottom: 15px; }
.ate-banner h4 { color: var(--primary); }

/* FOOTER */
footer { background: var(--dark); color: var(--white); padding: 40px 0 20px; text-align: center; }
footer a { color: var(--secondary); font-weight: 600; text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--white); text-decoration: underline; }
.whatsapp-btn { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2); z-index: 1000; text-decoration: none; }

/* LÍNEA DE TIEMPO EN TABLA */
.timeline-cell { position: relative; height: 30px; background: #f0f0f0; border-radius: 15px; overflow: hidden; }
.timeline-bar { position: absolute; height: 20px; top: 5px; background: linear-gradient(to right, var(--secondary), var(--primary)); border-radius: 10px; }