/* =========================================================
   1. VARIABLES / CUSTOM PROPERTIES
   ========================================================= */
   :root {
    /* (Variables generales, excepto las de color que se redefinen más abajo) */
    --text: #1e293b;
    --text-light: #64748b;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --border: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Variables de color actualizadas */
:root {
    /* Paleta nueva */
    --primary: #8B0000;        /* Rojo oscuro para la marca */
    --primary-light: #DC143C;  /* Rojo más brillante para acentos */
    --secondary: #A52A2A;      /* Rojo marrón/teja */
    --accent: #FFD700;         /* Dorado */
}

/* =========================================================
   2. RESET + ESTILOS BASE
   ========================================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Urbanist', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

img,
video {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(120rem, 90%);
    margin-inline: auto;
}

/* =========================================================
   3. PRELOADER
   ========================================================= */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--background);
    display: grid;
    place-items: center;
    z-index: 9999;
    transition: 0.5s ease-in-out;
}
.preloader .loader {
    width: 5rem;
    height: 5rem;
    transform-origin: center;
}
.preloader .path {
    stroke: var(--secondary);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* =========================================================
   4. NAVBAR
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 2rem 0;
    transition: var(--transition);
}

.navbar-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem; /* Más padding horizontal */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 3rem;
    height: 2.4rem;
    position: relative;
}
.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    position: absolute;
    left: 0;
    transition: var(--transition);
}
.mobile-toggle span:first-child {
    top: 0;
}
.mobile-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.mobile-toggle span:last-child {
    bottom: 0;
}
.mobile-toggle.active span:first-child {
    transform: translateY(11px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:last-child {
    transform: translateY(-11px) rotate(-45deg);
}

/* Menú móvil */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        z-index: 100;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 40rem;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95); /* Fondo oscuro en móvil */
        flex-direction: column;
        padding: 10rem 3rem;
        transition: 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    .nav-menu.active {
        right: 0;
    }
}

/* Logo */
.navbar-brand {
    text-decoration: none;
    margin-right: auto;
    padding: 1rem 0;
}
.brand-text {
    font-size: 2.4rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
    color: #fff; /* Texto principal del logo en blanco */
}
.brand-description {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9); /* Texto secundario con transparencia */
}

/* Menú */
.nav-menu {
    display: flex;
    gap: 4rem; /* Más espacio entre elementos del menú */
}
.nav-link {
    color: #fff; /* Enlaces blancos */
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
}
.nav-link i {
    font-size: 1.8rem;
}
.nav-link:hover,
.nav-link.active {
    color: var(--accent); /* Efecto hover o activo en color dorado */
}

/* Navbar scrolled */
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(10px);
}
.navbar.scrolled .brand-text,
.navbar.scrolled .brand-description,
.navbar.scrolled .nav-link {
    color: #fff; /* Mantener blanco al hacer scroll */
}

/* Responsivo del navbar */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 2rem;
    }
}

/* =========================================================
   5. HERO SECTION
   ========================================================= */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-fallback-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    z-index: 2;
}

.hero-content {
    color: white;
    max-width: 70rem;
    margin-left: 10%; /* Ajusta para alinear con el logo si deseas */
    position: relative;
    z-index: 3; /* Sobre la capa overlay */
}

.hero-title {
    font-size: clamp(3.5rem, 5vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #fff;
}
.text-gradient {
    background: linear-gradient(to right, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: clamp(1.8rem, 2vw, 2.2rem);
    opacity: 0.9;
    margin-bottom: 4rem;
    max-width: 55rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    margin-bottom: 6rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    border-radius: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.6rem;
    transition: var(--transition);
    cursor: pointer;
}
.btn-galeria {
    background: var(--primary-light);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}
.btn-galeria:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}
.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}
.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 60rem;
}
.stat-item {
    border-left: 3px solid var(--primary-light);
    padding-left: 2rem;
}
.stat-number {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
}
.stat-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    animation: bounce 2s infinite;
}
.scroll-indicator span {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.scroll-indicator i {
    font-size: 2.4rem;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* =========================================================
   6. ABOUT SECTION
   (Versión unificada/final con detalles de galería)
   ========================================================= */
.about {
    padding: 12rem 0;
    background-color: #f8fafc;
    overflow: hidden;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}
.gallery-item:hover {
    transform: translateY(-10px);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.main-image {
    height: 400px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.gallery-grid .gallery-item {
    height: 200px;
}
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.gallery-item:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Contenido textual */
.about-content .section-header {
    margin-bottom: 4rem;
}
.section-header .section-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #1e293b;
}
.section-header .highlight {
    color: #e31837;
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(227, 24, 55, 0.2);
    z-index: -1;
}
.section-description {
    font-size: 1.8rem;
    color: #64748b;
    line-height: 1.6;
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: #e31837;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.feature-content {
    position: relative;
    z-index: 2;
}
.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}
.feature-content p {
    color: #64748b;
    line-height: 1.5;
}
.hover-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #e31837, #ff4d4d);
    opacity: 0;
    transition: all 0.3s ease;
}
.feature-item:hover {
    transform: translateX(10px);
}
.feature-item:hover .hover-bg {
    opacity: 1;
}
.feature-item:hover .feature-icon {
    background: white;
    color: #e31837;
}
.feature-item:hover .feature-content h3,
.feature-item:hover .feature-content p {
    color: white;
}

/* Responsivo about */
@media (max-width: 1200px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .main-image {
        height: 300px;
    }
    .gallery-grid .gallery-item {
        height: 150px;
    }
}
@media (max-width: 768px) {
    .about {
        padding: 6rem 0;
    }
    .section-header .section-title {
        font-size: 3rem;
    }
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }
    .feature-icon {
        margin-bottom: 1rem;
    }
}

/* =========================================================
   7. PROJECTS SECTION
   ========================================================= */
.projects {
    padding: 12rem 0;
    background-color: #fff;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}
.section-subtitle {
    color: #e31837;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}
.section-title {
    font-size: 4rem;
    color: #1e293b;
    margin-bottom: 2rem;
}

.project-card {
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}
.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.1);
}
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}
.project-content {
    padding: 3rem;
    position: relative;
}
.project-badge {
    position: absolute;
    top: -20px;
    left: 3rem;
    background: #e31837;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 500;
}
.project-content h3 {
    font-size: 2.4rem;
    color: #1e293b;
    margin: 2rem 0;
}
.project-features {
    list-style: none;
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.project-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
}
.project-features i {
    font-size: 2rem;
    color: #e31837;
}
.project-btn {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: 2px solid #e31837;
    color: #e31837;
    border-radius: 1rem;
    font-size: 1.6rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.project-btn:hover {
    background: #e31837;
    color: white;
}
.project-btn i {
    transition: transform 0.3s ease;
}
.project-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .projects {
        padding: 6rem 0;
    }
    .section-title {
        font-size: 3rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   8. CONTACT SECTION
   ========================================================= */
.contact {
    padding: 12rem 0;
    background: var(--background-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-cards {
    display: grid;
    gap: 3rem;
    margin: 4rem 0;
}

.contact-card {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
}
.contact-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}
.contact-card i {
    font-size: 2.4rem;
    color: var(--primary);
}
.contact-card a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-card a:hover {
    color: var(--primary);
}
.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.map-container {
    margin: 6rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}
.form-header {
    margin-bottom: 3rem;
    text-align: center;
}
.form-header h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #1e293b;
}
.form-header p {
    color: #64748b;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.form-group {
    position: relative;
}
.full-width {
    grid-column: 1 / -1;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    background: white;
    font-family: inherit;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}
.form-group label {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    color: #64748b;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 0.5rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
}
.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-2.4rem) scale(0.8);
    color: var(--primary);
}
.form-group textarea {
    min-height: 15rem;
    resize: vertical;
}

.btn-primary {
    width: 100%;
    margin-top: 2rem;
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.btn-primary:hover {
    background: #c41230;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.3);
}

@media (max-width: 991px) {
    .contact-form {
        max-width: 100%;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .map-container {
        height: 300px;
    }
    .section-title {
        font-size: 3rem;
    }
}
@media (max-width: 768px) {
    .contact {
        padding: 6rem 0;
    }
    .map-container {
        margin: 4rem 0;
        height: 300px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .contact-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .form-header h3 {
        font-size: 2rem;
    }
}

/* =========================================================
   9. FOOTER
   ========================================================= */
.footer {
    background: var(--primary);
    color: white;
    padding: 8rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 6rem;
    margin-bottom: 4rem;
}
.footer-info {
    max-width: 40rem;
}
.footer-brand h3 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
}
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}
.social-links a {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}
.footer-links h4 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 1rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--secondary);
    padding-left: 0.5rem;
}
.footer-newsletter h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.footer-newsletter p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}
.footer-newsletter .form-group {
    display: flex;
}
.footer-newsletter input {
    flex: 1;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem 0 0 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.footer-newsletter button {
    padding: 0 2rem;
    background: var(--secondary);
    border: none;
    border-radius: 0 0.8rem 0.8rem 0;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}
.footer-newsletter button:hover {
    background: var(--accent);
}
.footer-bottom {
    text-align: center;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* =========================================================
   10. BACK TO TOP BUTTON
   ========================================================= */
.back-to-top {
    position: fixed;
    left: 3rem;
    bottom: 3rem;
    width: 5rem;
    height: 5rem;
    background: var(--secondary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* =========================================================
   11. BOTÓN FLOTANTE WHATSAPP
   ========================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 100;
}
.whatsapp-float.visible {
    transform: scale(1);
}
.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1) !important;
}

/* =========================================================
   12. UTILS / ANIMATIONS
   ========================================================= */
.fade-in {
    animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.text-center {
    text-align: center;
}
.mb-2 {
    margin-bottom: 2rem;
}
.mb-4 {
    margin-bottom: 4rem;
}


/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 0; /* Eliminar padding superior */
    overflow-x: hidden;
    background: #000; /* Fondo negro para evitar flash blanco */
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem;
}

/* Stats específicamente en móvil */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Forzar 2 columnas */
    gap: 1rem;
    padding: 0 1rem;
    margin-top: 2rem;
    width: 100%;
}

.stat-item {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid #e31837;
}

/* Media queries ajustados */
@media (min-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 2rem;
    }
}

/* Ajuste del contenido interno */
.stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
}

.stat-text {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-subtext {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

html, body {
    overflow-x: hidden;
}