/* ==========================================================================
   ILEVA - FUNDACIÓN BERTA MARTÍNEZ DE JARAMILLO
   Estilos Premium
   ========================================================================== */

:root {
    --bg-dark: #0f172a;       /* Dark slate */
    --bg-card: #1e293b;       /* Lighter slate */
    --accent-gold: #d4af37;   /* Classic Gold */
    --accent-hover: #fcd34d;  /* Brighter Gold */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a { text-decoration: none; color: inherit; }

/* NAVBAR */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}
.brand-logo { display: flex; flex-direction: column; }
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
}
.logo-accent { color: var(--accent-gold); }
.legal-badge {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.nav-links { display: flex; gap: 2rem; }
.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-link:hover { color: var(--accent-gold); }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero-section {
    padding: 10rem 0 6rem;
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.hero-content { flex: 1; }
.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.highlight-text { color: var(--accent-gold); }
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.hero-actions { display: flex; gap: 1rem; }
.btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
}
.btn-primary:hover { background-color: var(--accent-hover); }
.btn-secondary {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}
.btn-secondary:hover {
    background-color: rgba(212, 175, 55, 0.1);
}
.btn-block { width: 100%; display: block; }
.hero-image-wrapper {
    flex: 1;
    position: relative;
}
.hero-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

/* SECTIONS */
.section { padding: 6rem 0; }
.section-header { margin-bottom: 4rem; }
.text-center { text-align: center; }
.sub-heading {
    display: block;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.section-desc { color: var(--text-muted); }

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-10px); }
.feature-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.feature-content { padding: 2rem; }
.feature-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}
.feature-card h3 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ABOUT / LEGAL */
.about-section {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text p { margin-bottom: 1.5rem; color: #cbd5e1; }
.legal-card-box {
    background: var(--bg-dark);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.legal-card-box h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.legal-list { list-style: none; }
.legal-list li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
}
.legal-list li strong { color: white; margin-bottom: 0.2rem; }

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-list { list-style: none; margin-top: 2rem; }
.contact-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.contact-list i {
    color: var(--accent-gold);
    font-size: 1.5rem;
}
.contact-list strong { display: block; margin-bottom: 0.3rem; }
.contact-list span { color: var(--text-muted); font-size: 0.95rem; }

.contact-form-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: white;
    font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}
.form-checkbox {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.form-checkbox a { color: var(--accent-gold); text-decoration: underline; }

/* FOOTER */
.footer {
    background-color: #0b1120;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.footer-desc { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; }
.footer-links h4 { margin-bottom: 1.5rem; color: white; font-family: var(--font-heading); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; font-size: 0.9rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-gold); }
.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* MODALS */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    visibility: hidden; opacity: 0; transition: 0.3s;
}
.modal.active { visibility: visible; opacity: 1; }
.modal-overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
}
.modal-container {
    position: relative; background: var(--bg-card);
    width: 90%; max-width: 600px; max-height: 85vh;
    border-radius: 8px; border: 1px solid var(--border-color);
    z-index: 2001; display: flex; flex-direction: column;
}
.modal-header {
    padding: 1.5rem; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h2 { font-family: var(--font-heading); font-size: 1.3rem; }
.modal-close-btn {
    background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer;
}
.modal-body { padding: 1.5rem; overflow-y: auto; color: #cbd5e1; font-size: 0.95rem; }
.modal-body h3 { margin: 1.5rem 0 0.5rem; color: var(--accent-gold); }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-container, .about-grid, .contact-grid { grid-template-columns: 1fr; flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .mobile-menu-btn { display: block; }
    .nav-links {
        display: none; position: absolute; top: 85px; left: 0; width: 100%;
        background: var(--bg-card); flex-direction: column; padding: 2rem; border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
}
