@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&family=Oswald:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --rojo: #C8002D;
    --rojo-oscuro: #9E0024;
    --gris: #282828;
    --gris-medio: #4A4A4A;
    --gris-claro: #6B6B6B;
    --gris-fondo: #F5F5F0;
    --gris-linea: #E0E0D8;
    --blanco: #FFFFFF;
    --negro: #1A1A1A;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Merriweather', Georgia, serif;
    background-color: var(--gris-fondo);
    color: var(--gris);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.15;
    color: var(--gris);
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.navbar {
    background-color: var(--negro) !important;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    border-bottom: 3px solid var(--rojo);
}

.navbar-brand img {
    height: 52px;
    width: auto;
}

.nav-link {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blanco) !important;
    padding: 0.6rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--rojo) !important;
}

.nav-link i {
    margin-right: 0.35rem;
    font-size: 1rem;
    vertical-align: middle;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.92) 0%, rgba(26, 26, 26, 0.5) 45%, rgba(26, 26, 26, 0.15) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-bottom: 6rem;
}

.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--rojo);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 1.25rem;
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1.5px solid var(--rojo);
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 700;
    color: var(--blanco);
    max-width: 900px;
    margin-bottom: 1.25rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-sub {
    font-family: 'Merriweather', serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    line-height: 1.6;
    font-style: italic;
}

.hero-line {
    width: 80px;
    height: 4px;
    background-color: var(--rojo);
    margin: 1.5rem 0;
}

.cta-bar {
    background-color: var(--rojo);
    padding: 1.1rem 0;
}

.cta-bar a {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blanco);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cta-bar a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.cta-bar i {
    font-size: 1.1rem;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.section-data {
    padding: 5rem 0;
    position: relative;
}

.section-alt {
    background-color: var(--blanco);
}

.section-number {
    font-family: 'Oswald', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--rojo);
    opacity: 0.12;
    line-height: 1;
    position: absolute;
    top: 2rem;
    left: 1rem;
    z-index: 0;
    user-select: none;
}

.section-header {
    position: relative;
    z-index: 1;
}

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--rojo);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.6rem;
    display: block;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 600;
    margin-bottom: 0.6rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--rojo);
    margin-top: 0.5rem;
}

.section-body {
    font-size: 1rem;
    color: var(--gris-medio);
    text-align: justify;
    hyphens: auto;
}

.section-body p {
    margin-bottom: 1.1rem;
}

.data-card {
    background-color: var(--blanco);
    border: 1px solid var(--gris-linea);
    padding: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--rojo);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.data-card:hover::before {
    transform: scaleY(1);
}

.data-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.data-card-icon {
    font-size: 1.8rem;
    color: var(--rojo);
    margin-bottom: 0.8rem;
    display: block;
}

.data-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: var(--gris);
}

.data-card p {
    font-size: 0.88rem;
    color: var(--gris-claro);
    line-height: 1.6;
    margin-bottom: 0;
    font-family: 'Merriweather', serif;
}

.img-data {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.05);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.img-data:hover {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.02);
}

.img-wrapper {
    overflow: hidden;
    position: relative;
}

.img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.25), transparent);
    pointer-events: none;
}

.img-caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--gris-claro);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.quote-block {
    border-left: 4px solid var(--rojo);
    padding: 1.2rem 1.5rem;
    background-color: rgba(200, 0, 45, 0.04);
    margin: 1.5rem 0;
}

.quote-block p {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--gris);
    font-style: normal;
    line-height: 1.4;
    margin-bottom: 0;
}

.stat-row {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem 1.5rem;
    border-top: 3px solid var(--rojo);
    background-color: var(--blanco);
    min-width: 120px;
}

.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--rojo);
    display: block;
    line-height: 1;
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--gris-claro);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
    display: block;
}

.list-data {
    list-style: none;
    padding-left: 0;
}

.list-data li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--gris-medio);
}

.list-data li::before {
    content: '\F231';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--rojo);
    font-size: 0.8rem;
}

.list-data li strong {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    color: var(--gris);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
    }

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

    .section-number {
        font-size: 4rem;
        top: 1rem;
    }

    .section-data {
        padding: 3rem 0;
    }

    .stat-row {
        gap: 1rem;
    }

    .navbar-brand img {
        height: 42px;
    }

    .cta-bar .d-flex {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center;
    }
}
