/* =========================================
   1. VARIABLES Y RESET BÁSICO (Moderno)
   ========================================= */
:root {
    /* Paleta Premium Modern: Negros, Blancos, Dorado Brass */
    --color-bg: #ffffff;
    --color-bg-dark: #121212; 
    --color-text: #333333;
    --color-text-light: #f4f4f4;
    --color-accent: #d4af37;    
    --color-accent-hover: #bda031;
    --color-card-bg: #f9f9f9;
    
    /* Tipografía de sistema (sin librerías externas para máxima velocidad) */
    --fuente-principal: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 85px; /* Esta es la línea que añadimos para solucionar el salto */
    font-size: 16px;
}

body {
    font-family: var(--fuente-principal);
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. COMPONENTES REUTILIZABLES
   ========================================= */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    margin-bottom: 60px;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

/* =========================================
   3. HEADER Y NAVEGACIÓN
   ========================================= */
.main-header {
    background-color: var(--color-bg); /* Cambiamos el rgba transparente por el color opaco definido en :root */
    padding: 20px 0;
    position: sticky; 
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.6rem; 
    font-weight: 800;
    color: var(--color-bg-dark);
    letter-spacing: 1px;
}

.logo a {
    text-decoration: none;
}

.accent {
    color: var(--color-accent);
}

/* Navegación interactiva naranja */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--color-text); 
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 8px; 
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ff6600; 
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px; 
    bottom: 0;
    left: 0;
    background-color: #ff6600; 
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%; 
}

/* =========================================
   4. SECCIÓN HERO (Ajuste de Imagen de Fondo)
   ========================================= */
.hero {
    height: auto; 
    min-height: 85vh; 
    background-color: var(--color-negro);
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 80px 0;
    background-size: cover;        
    background-position: center;   
    background-repeat: no-repeat;  
}

.hero-content {
    width: 100%;
}

.hero-logo img {
    max-width: 350px; 
    height: auto;
    margin: 0 auto 35px auto;
    display: block;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 850px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
    opacity: 0.95;
}

.subtitle-centered {
    font-size: 1.8rem;
    color: var(--color-accent); 
    text-align: center;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.85;
}

/* =========================================
   5. SECCIÓN PROGRAMACIONES ACADÉMICAS (DIAGRAMA CSS)
   ========================================= */
.programaciones-academicas {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.diagram-container {
    display: flex;
    flex-direction: column;
    gap: 70px;
    align-items: center;
    text-align: center;
}

.diagram-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diagram-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.diagram-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.shape-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
}

.gap-group { gap: 30px; }
.overlap-group { padding: 0 20px; }
.suzuki-group { gap: 20px; align-items: stretch; }

.shape {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.yellow-bg {
    background-color: #ffcc00; 
    color: #000;
    border: 2px solid #e6b800;
}

.black-bg {
    background-color: #000;
    color: #fff;
}

.circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
}

.overlap-group .circle {
    position: relative;
    z-index: 1;
}
.overlap-group .center-circle {
    z-index: 2;
    margin: 0 -25px; 
}

.list-circle p { margin: 2px 0; font-size: 0.85rem; }

.box {
    width: 200px;
    height: 100px;
}

.suzuki-group .shape {
    min-height: 180px;
}

.suzuki-group h5 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.suzuki-group p {
    font-size: 0.85rem;
    font-weight: normal;
}

.square {
    width: 180px;
}

.square .small-text {
    font-size: 0.75rem;
    line-height: 1.3;
}

.rect {
    width: 220px;
}

.triangle {
    width: 260px;
    height: 220px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    padding: 0; 
    position: relative;
    border: none;
}

.triangle-text {
    position: absolute;
    bottom: 15px; 
    width: 100%;
    text-align: center;
}

.oval {
    width: 240px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .overlap-group .center-circle { margin: -15px 0; }
    .shape-group { flex-direction: column; gap: 20px; }
    .suzuki-group { flex-direction: column; align-items: center; }
}

/* =========================================
   6. SECCIÓN CONTACTO (Sin Formulario)
   ========================================= */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    color: white;
}

.contact-wrapper.no-form {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h4 {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.contact-intro {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
}

.contact-details {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-details li {
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-details strong {
    color: var(--color-accent);
    display: inline-block;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.email-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--color-accent);
}

/* =========================================
   7. PIE DE PÁGINA (FOOTER LEGAL)
   ========================================= */
.main-footer {
    background-color: #0d0d0d; 
    color: #888888;
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    margin: 4px 0;
}

.footer-company {
    font-size: 0.8rem;
    color: #555555;
}

.footer-legal-links {
    display: flex;
    gap: 25px;
}

.footer-legal-links a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ff6600;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal-links {
        justify-content: center;
        gap: 15px;
    }
}