/* --- VARIABLES CSS (El corazón del diseño) --- */
:root {
    --primary: #800000;       /* Burgundy Profundo */
    --primary-dark: #600000;
    --accent: #D4AF37;        /* Oro Mate */
    --text-main: #2C3E50;     /* Azul oscuro casi negro para texto */
    --text-light: #F5F5F5;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.85); /* Fondo de cristal */
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8f9fa;
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, .nav-link {
    font-family: 'Outfit', sans-serif;
}

/* --- GLASMOPHISM NAVBAR --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link.active, .nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-portal {
    background-color: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-portal:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fondo con gradiente y url simulada */
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44,62,80,0.8), rgba(128,0,0,0.7));
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.text-accent {
    color: var(--accent);
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* --- BOTONES --- */
.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    margin: 0 10px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-main);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: #e5c150;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* --- SECCIONES GENÉRICAS --- */
.features, .cta-section {
    padding: 100px 20px;
    background: white;
    position: relative;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 60px;
}

/* --- CARDS --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: left;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(128, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s;
}

.card:hover .icon-box {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-main);
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* --- CTA SECTION --- */
.cta-section {
    background-color: var(--text-main);
    color: white;
    text-align: center;
    background-image: linear-gradient(30deg, #2C3E50 0%, #4a5c6e 100%);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* --- FOOTER --- */
footer {
    background-color: #1a252f;
    color: #ecf0f1;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p, .footer-col a {
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.6;
    display: block;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* --- ANIMACIONES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .navbar { width: 95%; padding: 15px; border-radius: 15px; }
    .nav-links { display: none; } /* En una versión final, aquí iría el JS para el menú móvil */
    .btn-portal { padding: 8px 15px; font-size: 0.9rem; }
    .hero-content { padding: 0 15px; }
}
