/* Variables */
:root {
    --primary: #1A237E; /* Azul Marino Oscuro */
    --secondary: #FFFFFF; /* Blanco */
    --accent-main: #4CAF50; /* Verde Brillante */
    --accent-sec: #FFC107; /* Ámbar */
    --text-dark: #111827;
    --text-light: #F3F4F6;
    --text-gray: #4B5563;
    --bg-gray: #F9FAFB;
    --indigo-900: #312E81;
    --indigo-800: #3730A3;
    --indigo-50: #EEF2FF;
    --indigo-100: #E0E7FF;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-gray);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: var(--primary);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon-bg {
    background-color: white;
    padding: 0.25rem;
    border-radius: 0.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    color: var(--primary);
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.logo-text {
    color: white;
}

.logo-text h1 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.logo-text h2 {
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .logo-text h1 { font-size: 1rem; }
    .logo-text h2 { font-size: 0.875rem; }
}

/* Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.search-btn {
    color: white;
    padding: 0.5rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
    display: block;
    color: white;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Nav Drawer */
.mobile-nav {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--indigo-900);
    border-top: 1px solid var(--indigo-800);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}

.mobile-nav-link {
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--indigo-800);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 12rem;
        padding-bottom: 8rem;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay-color {
    position: absolute;
    inset: 0;
    background-color: var(--primary);
    opacity: 0.85;
    mix-blend-mode: multiply;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--indigo-900), transparent, transparent);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

.hero-text-box {
    max-width: 48rem; /* 3xl */
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--indigo-900);
    background-color: var(--accent-sec);
    border-radius: 0.125rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 3.75rem; }
}

.gradient-text {
    background: linear-gradient(to right, white, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: #e5e7eb;
    margin-bottom: 2rem;
    max-width: 42rem;
    line-height: 1.625;
}

@media (min-width: 768px) {
    .hero-description { font-size: 1.25rem; }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn {
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-radius: 0.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-4px);
}

.btn-primary {
    background-color: var(--accent-main);
    color: white;
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Quick Access Section */
.quick-access-section {
    position: relative;
    margin-top: -4rem;
    z-index: 20;
    padding-bottom: 4rem;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .quick-access-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.quick-access-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid transparent;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.quick-access-card:hover {
    border-bottom-color: var(--accent-main);
}

.tag {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--indigo-900);
    background-color: var(--accent-sec);
    border-radius: 0.125rem;
}

.icon-wrapper {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 9999px;
    background-color: var(--indigo-50);
    color: var(--primary);
    transition: background-color 0.2s;
}

.quick-access-card:hover .icon-wrapper {
    background-color: var(--indigo-100);
}

.quick-access-card h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.quick-access-card:hover h3 {
    color: var(--indigo-800);
}

.quick-access-card p {
    font-size: 0.75rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--indigo-900);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

/* News Section */
.news-section {
    padding: 4rem 0;
    background-color: var(--bg-gray);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--indigo-900);
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    color: var(--accent-sec); /* Amber */
}

.section-subtitle {
    color: var(--text-gray);
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.view-all-link {
    display: none;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--indigo-800);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.view-all-link:hover {
    color: var(--indigo-900);
}

@media (min-width: 768px) {
    .view-all-link { display: flex; }
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background-color: white;
    border: 1px solid #f3f4f6;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.news-card-top-bar {
    height: 0.5rem;
    width: 100%;
    background-color: var(--indigo-900);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--indigo-800);
    background-color: var(--indigo-50);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.news-date {
    font-size: 0.75rem;
    color: #9ca3af;
    font-family: monospace;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-card:hover .news-title {
    color: var(--indigo-800);
}

.news-excerpt {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: #16a34a; /* Green 600 */
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
}

.read-more-link:hover {
    color: #15803d; /* Green 700 */
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: var(--primary);
    color: white;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-icon {
    width: 40px;
    height: 40px;
    opacity: 0.8;
}

.footer-logo h3 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.125rem;
}

.footer-logo p {
    font-size: 0.75rem;
    color: #d1d5db;
    text-transform: uppercase;
}

.footer-desc {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.625;
    max-width: 28rem;
}

.footer-links h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    color: var(--accent-sec);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a, .footer-links li {
    font-size: 0.875rem;
    color: #d1d5db;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--indigo-800);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #9ca3af;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a:hover {
    color: white;
}
