/* CONFIGURACIÓN GENERAL Y VARIABLES */
:root {
    --primary-red: #d6200e;       /* Rojo extraído del engranaje del logo */
    --primary-blue: #0f4c9c;      /* Azul de las siglas IESTP */
    --accent-yellow: #f2b705;     /* Amarillo dorado del casco y átomo */
    
    --accent-blue: #f4f8fd;       
    --blue-border: #cbdcf2;       
    --dark-bg: #09172a;           
    --light-bg: #f8fafc;          
    
    --card-shadow: 0 4px 15px rgba(15, 76, 156, 0.06); 
    --text-main: #1e293b;         
    --text-muted: #64748b;        
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SECCIONES Y ANIMACIONES NATIVAS AUTOMÁTICAS */
.section {
    padding: 60px 0;
    border-bottom: 1px solid #eef2f6;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 35px;
    color: var(--dark-bg);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    margin: 8px auto 0;
    border-radius: 2px;
}

.subtitle-text {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* SISTEMA FADE IN AUTOMÁTICO */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    animation: revealOnLoad 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

@keyframes revealOnLoad {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HERO SECTION */
.hero {
    position: relative;
    background: url('images/fiestas.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 90px 20px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(9, 23, 42, 0.9), rgba(15, 76, 156, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.logo-container img {
    max-width: 110px;
    height: auto;
    margin-bottom: 15px;
}

.badge {
    background-color: var(--primary-red);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 2.8rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: var(--accent-yellow);
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.slogan {
    font-style: italic;
    font-size: 1.1rem;
    color: #cbdcf2;
    margin-bottom: 25px;
}

.hero-info-bar {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-info-bar i { color: var(--accent-yellow); margin-right: 5px; }

/* INVITACIÓN */
.invitation-card {
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
    padding: 35px;
    border-left: 5px solid var(--primary-blue);
    background: white;
}
.invitation-card h4 { color: var(--primary-blue); font-size: 1.25rem; margin-bottom: 12px; }
.invitation-card p { margin-bottom: 15px; font-size: 1.02rem; color: #334155; text-align: justify; }
.signature { display: block; text-align: right; font-style: italic; color: var(--text-muted); margin-top: 20px; }

/* TIMELINE CRONOGRAMA */
.timeline-container {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}
.timeline-container::before {
    content: '';
    position: absolute;
    left: 21px; top: 0; width: 2px; height: 100%;
    background: #e2e8f0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.timeline-number {
    width: 44px; height: 44px;
    background: var(--dark-bg);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; z-index: 2;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    box-shadow: var(--card-shadow);
}
.timeline-content strong { display: block; font-size: 1.05rem; color: var(--dark-bg); margin-bottom: 4px; }
.timeline-content span { font-size: 0.95rem; color: var(--text-main); display: block; }

.border-red { border-left: 4px solid var(--primary-red); }
.border-yellow { border-left: 4px solid var(--accent-yellow); }
.border-blue { border-left: 4px solid var(--primary-blue); }

/* TABLA DE FIXTURE */
.evaluation-container {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.evaluation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 25px;
    border-bottom: 1px solid #f1f5f9;
}
.header-row { background-color: var(--primary-blue); color: white; }
.highlight-row { background-color: #fefce8; border-left: 4px solid var(--accent-yellow); }
.eval-date { font-weight: 600; color: var(--primary-blue); }
.highlight-row .eval-date { color: #a16207; }

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; margin-top: 25px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.card-requisito-container { padding: 25px; border-radius: 8px; }
.card-requisito-container h4 { margin-bottom: 15px; font-size: 1.15rem; color: var(--dark-bg); }

.tone-orange { background-color: #fff5f5; border: 1px solid #fee2e2; }
.tone-blue { background-color: var(--accent-blue); border: 1px solid var(--blue-border); }

.doc-list { list-style: none; }
.doc-list li {
    display: flex;
    gap: 12px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.check-icon { margin-top: 3px; font-size: 1rem; }
.blue-icon { color: var(--primary-blue); }
.red-icon { color: var(--primary-red); }

/* CARDS CULTURALES */
.culture-grid { margin-top: 35px; }
.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    text-align: center;
    border: 1px solid #f1f5f9;
}
.icon-box {
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 1.25rem;
}
.icon-box.red { background: #fee2e2; color: var(--primary-red); }
.icon-box.yellow { background: #fef9c3; color: #a16207; }
.icon-box.blue { background: #dbeafe; color: var(--primary-blue); }

.card h4 { font-size: 1rem; color: var(--dark-bg); margin-bottom: 6px; }
.card p { font-size: 0.88rem; color: var(--text-muted); }

/* BANNERS */
.alert-banner { display: flex; gap: 15px; padding: 15px 20px; border-radius: 8px; align-items: center; }
.info-banner { background-color: #f0f7ff; border: 1px solid #bfdbfe; color: var(--primary-blue); }
.info-banner i { font-size: 1.6rem; }

/* CLAUSURA */
.closure-card {
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-blue));
    color: white; padding: 35px; border-radius: 12px; text-align: center;
}
.closure-card h4 { color: var(--accent-yellow); margin: 10px 0; font-size: 1.3rem; }
.closure-card h5 { font-size: 1.1rem; font-weight: 400; opacity: 0.95; }
.location-cl { font-size: 0.9rem; margin-top: 10px; color: #93c5fd; }
.star-spin { font-size: 2rem; color: var(--accent-yellow); animation: spin 8s linear infinite; }

/* FOOTER */
.main-footer {
    background-color: var(--dark-bg); color: #94a3b8; text-align: center; padding: 35px 20px; font-size: 0.85rem; margin-top: 40px;
}
.footer-brand { color: white; font-size: 1.3rem; font-weight: bold; margin-bottom: 6px; }
.designer { color: var(--accent-yellow); font-weight: bold; margin: 10px 0; }
.credits { opacity: 0.7; line-height: 1.5; }

/* COMPONENTE INTERACTIVO Y EFECTOS */
.shadow-hover { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.shadow-hover:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(15, 76, 156, 0.1); }

/* ANIMACIONES COMPLEMENTARIAS */
.pulse-slow { animation: pulse 3s ease-in-out infinite; }
.flag-bounce { animation: bounce 2s infinite; }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes spin { 100% { transform: rotate(30deg); } }

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero h2 { font-size: 1.25rem; }
    .grid-2 { grid-template-columns: 1fr; }
}