/* ==========================================================================
   SISTEMA DE DISEÑO - OLIMPIADA DE BIOLOGÍA 2027 (VERSIÓN ULTRA-PREMIUM)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap');

/* 1. VARIABLES GLOBALES */
:root {
    /* Paleta Principal Refinada */
    --ed27-navy: #040916;
    /* Azul espacio profundo */
    --ed27-navy-light: #0d172a;
    /* Azul marino oscuro para contrastes sutiles */
    --ed27-gold: #f59e0b;
    /* Ámbar vibrante cientifico */
    --ed27-gold-glow: rgba(245, 158, 11, 0.4);

    /* Variaciones de Fondo y Texto */
    --ed27-bg-light: #ffffff;
    /* Blanco Puro */
    --ed27-bg-soft: #f1f5f9;
    /* Gris Slate ultra suave */
    --ed27-text-main: #475569;
    /* Texto principal legible */
    --ed27-text-title: #0f172a;
    /* Títulos Slate oscuro */
}

/* 2. TIPOGRAFÍA CORPORATIVA */
.ed27-font-display {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.03em;
}

/* 3. TÍTULOS DE SECCIÓN ESPECTACULARES (Centrados y Apilados Perfectamente) */
.ed27-section-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Obliga a la etiqueta, el título y la barra a estar en el centro exacto */
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.ed27-section-title-block h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    /* Ajustado sutilmente para que no rompa en pantallas medianas */
    font-weight: 900;
    text-transform: uppercase;
    color: var(--ed27-text-title);
    line-height: 1.1;
    margin: 0;
    padding: 0;
}

/* La línea separadora evoluciona a un elemento decorativo de 3 bloques científicos */
.ed27-section-title-block .separator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.ed27-section-title-block .separator-block {
    height: 8px;
    background-color: var(--ed27-gold);
    border-radius: 4px;
    box-shadow: 0 4px 10px var(--ed27-gold-glow);
}

.ed27-section-title-block .separator-block:nth-child(1) {
    width: 15px;
    opacity: 0.6;
}

.ed27-section-title-block .separator-block:nth-child(2) {
    width: 60px;
}

.ed27-section-title-block .separator-block:nth-child(3) {
    width: 15px;
    opacity: 0.6;
}

/* Separación extra si hay un párrafo debajo del título */
.ed27-section-title-block p {
    margin-top: 1.5rem;
    max-width: 42rem;
}

/* Título secundario (Lapel) para fondos oscuros */
.ed27-label-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.03) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--ed27-gold);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 10px rgba(245, 158, 11, 0.05);
}

/* Título secundario (Lapel) para fondos claros */
.ed27-label-title-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ed27-bg-soft);
    border: 1px solid #cbd5e1;
    color: var(--ed27-text-main);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

/* 4. TARJETAS "PREMIUM" (Con Efecto Parallax y Profundidad) */
.ed27-card {
    background: #ffffff;
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    /* Sombra profunda y suave */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.ed27-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px -15px rgba(4, 9, 22, 0.08);
    border-color: rgba(4, 9, 22, 0.05);
}

/* Iconos de Tarjeta (Con Efecto Cristalino y Brillo Inverso) */
.ed27-card-icon {
    width: 5rem;
    height: 5rem;
    background-color: var(--ed27-bg-soft);
    color: var(--ed27-navy);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.ed27-card:hover .ed27-card-icon {
    background-color: var(--ed27-navy);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Textos de Tarjeta */
.ed27-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ed27-text-title);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.ed27-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ed27-text-main);
}

/* 5. BOTONES "PREMIUM CTAs" */
.ed27-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ed27-gold);
    color: var(--ed27-navy);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.2rem 3rem;
    border-radius: 999px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.25);
    text-decoration: none;
}

.ed27-btn:hover {
    background-color: #ffffff;
    color: var(--ed27-navy);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 30px rgba(245, 158, 11, 0.2);
}

.ed27-btn svg {
    margin-left: 0.75rem;
    transition: transform 0.3s ease;
}

.ed27-btn:hover svg {
    transform: translateX(6px);
}

/* 6. LOGOS DE APOYO Y SEDES */
.ed27-logo-box {
    height: 90px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.ed27-logo-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.ed27-supporter-container {
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
}

.ed27-supporter-container:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}