/* public/assets/css/index.css */

/* ====== HERO SECTION ====== */
.hero-section {
    background: linear-gradient(150deg, #0a1628 0%, #0e1c38 40%, #152448 75%, #1a2e52 100%);
    color: #f0eee8;
    padding: 5.5rem 0 0;
    position: relative;
    overflow: hidden;
}

/* Decorative elements — geometric academic feel */
.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,135,26,0.12) 0%, rgba(41,82,204,0.08) 50%, transparent 72%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 50px;
    left: -60px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41,82,204,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Decorative horizontal rule accent */
.hero-section .hero-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent, #c8871a) 40%, transparent);
    opacity: 0.45;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 680px;
    padding-bottom: 4rem;
}

/* Badge above headline */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: rgba(200,135,26,0.15);
    color: #e8b955;
    border: 1px solid rgba(200,135,26,0.3);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 3.1rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #f0eee8;
    margin: 0 0 1.2rem;
}

.hero-highlight {
    color: #e8a53a;
    
}

.hero-content p {
    font-size: 1.05rem;
    color: rgba(240,238,232,0.72);
    max-width: 520px;
    line-height: 1.75;
    margin: 0 0 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.btn-lg {
    padding: 0.9rem 1.85rem !important;
    font-size: 1rem !important;
}

/* Hero CTA primary button on dark bg — gold accent */
.hero-actions .btn-primary {
    background: #c8871a !important;
    box-shadow: none !important;
}

.hero-actions .btn-primary:hover {
    background: #a8720f !important;
    transform: translateY(-2px);
}

/* Hero secondary button override for dark bg */
.hero-actions .btn-secondary {
    background: rgba(240,238,232,0.08);
    border-color: rgba(240,238,232,0.2);
    color: rgba(240,238,232,0.88);
    backdrop-filter: blur(4px);
}

.hero-actions .btn-secondary:hover {
    background: rgba(240,238,232,0.14);
    border-color: rgba(240,238,232,0.35);
    color: #f0eee8;
}

/* Stats strip at the bottom of the hero */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(200,135,26,0.2);
    margin: 0 -1.5rem;
    padding: 1.25rem 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 120px;
    padding: 0.25rem 1rem;
    text-align: center;
}

.stat-number {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #e8a53a;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(240,238,232,0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(200,135,26,0.2);
    flex-shrink: 0;
}

/* ====== SECTION HEADER ====== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c8871a;
    margin-bottom: 0.65rem;
}

.section-header h2 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 0.85rem;
    color: #1a1a2a;
    line-height: 1.2;
}

.section-header p {
    font-size: 1rem;
    color: #5c5e72;
    line-height: 1.7;
    margin: 0;
}

/* ====== FEATURES SECTION ====== */
.features-section {
    padding: 5.5rem 0;
    background: #f5f2ed;
}

.features-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.feature-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.85rem 1.65rem;
    border: 1px solid #edeae5;
    box-shadow: 0 2px 8px rgba(20,20,40,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(20,20,40,0.11);
    border-color: #d4b87a;
}

/* Icono + título en fila horizontal */
.feature-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.feature-card__header h3 {
    margin: 0;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 0.75rem;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.feature-icon img {
    width: 26px;
    height: 26px;
    display: block;
    object-fit: contain;
}

.feature-icon--blue   { background: #e8eeff; }
.feature-icon--violet { background: #ede9fe; }
.feature-icon--green  { background: #e8f8ef; }
.feature-icon--orange { background: #fef3e2; }
.feature-icon--red    { background: #fef0f0; }
.feature-icon--teal   { background: #e0f7f4; }

.feature-card h3 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.55rem;
    letter-spacing: -0.01em;
    color: #1a1a2a;
}

.feature-card p {
    font-size: 0.875rem;
    color: #5c5e72;
    margin: 0;
    line-height: 1.7;
}

/* ====== OPOSICIONES SECTION ====== */
.opos-section {
    padding: 5.5rem 0;
    background: #ffffff;
}

.opos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.opos-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #f5f2ed;
    border: 1.5px solid #ddd8d0;
    border-radius: 0.65rem;
    padding: 0.65rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2c2e3e;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
    cursor: pointer;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.opos-card:hover {
    border-color: #c8871a;
    background: #fef3e2;
    color: #8a5c0a;
    transform: translateY(-2px);
}

.opos-icon {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.opos-name {
    flex: 1;
}

.opos-count {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 500;
    color: #6b7280;
    text-align: right;
    white-space: nowrap;
}

/* ====== CTA SECTION ====== */
.cta-section {
    padding: 5.5rem 0;
    background: #f5f2ed;
}

.cta-box {
    background: linear-gradient(145deg, #0e1c38 0%, #152448 50%, #1e3060 100%);
    border-radius: 1.5rem;
    padding: 3.75rem 3rem;
    text-align: center;
    color: #f0eee8;
    box-shadow: 0 20px 60px rgba(14,28,56,0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(200,135,26,0.15);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,135,26,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41,82,204,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 2.15rem;
    font-weight: 700;
    margin: 0 0 0.9rem;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1rem;
    color: rgba(240,238,232,0.75);
    max-width: 500px;
    margin: 0 auto 2.25rem;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-box .btn-primary {
    background: #c8871a;
    color: #fff;
    box-shadow: 0 4px 18px rgba(200,135,26,0.42);
}

.cta-box .btn-primary:hover {
    background: #a8720f;
    transform: translateY(-2px);
}

.btn-cta-secondary {
    color: rgba(240,238,232,0.85);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    transition: color 0.18s;
    position: relative;
    z-index: 1;
}

.btn-cta-secondary::after {
    content: '→';
}

.btn-cta-secondary:hover {
    color: #f0eee8;
    text-decoration: underline;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    /* Tarjetas de oposiciones: lista vertical en móvil */
    .opos-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        width: 100%;
    }
    .opos-card {
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
    }

    .hero-section {
        padding-top: 4rem;
    }

    .hero-content {
        text-align: center;
        padding-bottom: 3rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        margin: 0 -1rem;
        padding: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        min-width: 100px;
    }

    .section-header h2 {
        font-size: 1.65rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 2.75rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.65rem;
    }
}

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

    .stat-number {
        font-size: 1.35rem;
    }
}
