:root {
    --primary-red: #EC1D00;
    --dark-bg: #111111;
    --dark-grey: #222222;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --blue-accent: #0A2540; /* Tono azul para contrastar */
    --text-main: #333333;
    --text-muted: #666666;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth; /* Comportamiento de ancla suave nativo */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Utilidades --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.section-title span { color: var(--primary-red); }

.btn {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover { background: #c51800; }
.btn-blue { background: var(--blue-accent); }
.btn-blue:hover { background: #071a2e; }
.btn-full { width: 100%; }

.py-5 { padding: 5rem 0; }

/* --- Header --- */
header {
    background: var(--dark-bg);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.logo img { max-height: 50px; }

nav ul { display: flex; gap: 0.1rem; }
nav ul li a { font-weight: 400; transition: color 0.3s; }
nav ul li a:hover { color: var(--primary-red); }

/* --- Hero Section --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.8)), url('assets/imgs/header.jpg') center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero h1 { 
    font-size: 3.5rem; 
    line-height: 1.2; 
    margin-bottom: 1.5rem; 
    max-width: 800px; 
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
    max-width: 600px; 
    color: #ddd; 
}

/* --- Nosotros --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.mv-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.card-sm {
    background: var(--light-bg);
    padding: 1.5rem;
    border-left: 4px solid var(--blue-accent);
    border-radius: 4px;
}

.card-sm h4 { color: var(--blue-accent); margin-bottom: 0.5rem; }

/* --- Servicios --- */
.services-bg { background: var(--dark-bg); color: var(--white); }
.services-bg .section-title { color: var(--white); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--dark-grey);
    padding: 2rem;
    border-radius: 6px;
    transition: transform 0.3s;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--primary-red);
}

.service-card h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--primary-red); }
.service-card p { color: #ccc; font-size: 0.95rem; }

/* --- Marcas --- */
.brands-section { background: var(--light-bg); text-align: center; }

.brands-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.brand-item {
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    color: var(--blue-accent);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* --- Contacto --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 { margin-bottom: 1rem; color: var(--blue-accent); }
.contact-details { display: flex; flex-direction: column; margin-bottom: 1.5rem; color: var(--text-muted); }
.contact-details strong { color: var(--dark-bg); font-weight: 500;}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 1.5rem; }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
}


/* --- Responsive --- */
@media(max-width: 768px) {
    .about-grid, .contact-grid, .mv-cards { grid-template-columns: 1fr; gap: 2rem; }
    .hero h1 { font-size: 2.5rem; }
}

/* --- Sección Prensa / Reconocimiento --- */
.press-section {
    background-color: var(--white);
}

.press-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--light-bg);
    padding: 4rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

/* Detalle decorativo rojo en el borde izquierdo */
.press-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background-color: var(--primary-red);
}

.press-badge {
    display: inline-block;
    background-color: var(--blue-accent);
    color: var(--white);
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.press-content .section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.press-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.8;
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 4px solid #ccc;
}

.press-author {
    font-weight: 700;
    color: var(--dark-bg);
    font-size: 1rem;
}

.press-image {
    position: relative;
}

.press-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    display: block;
}

.press-image img:hover {
    transform: scale(1.02);
}

/* Responsive para la sección de prensa */
@media(max-width: 992px) {
    .press-wrapper {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 2rem;
    }
}

/* --- Footer Renovado --- */
.site-footer {
    background-color: var(--dark-bg);
    color: #999;
    border-top: 4px solid var(--primary-red); /* Detalle corporativo superior */
}

.footer-top {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

/* Columna 1 */
.footer-logo {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.footer-brand p {
    margin-bottom: 1.5rem;
    max-width: 400px;
    font-size: 0.95rem;
    text-align: left;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
    color: var(--white);
}

/* Columna 2 */
.footer-links h4, .footer-extra h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after, .footer-extra h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px; /* Pequeño efecto de movimiento al pasar el mouse */
}

/* Columna 3 (Newsletter) */
.footer-extra p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-newsletter {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: var(--white);
    font-family: inherit;
    outline: none;
}

.footer-newsletter input::placeholder {
    color: #666;
}

.footer-newsletter button {
    background-color: var(--primary-red);
    border: none;
    color: var(--white);
    padding: 0 15px;
    height: 100%;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-newsletter button:hover {
    background-color: #c51800;
}

/* Bottom Bar */
.footer-bottom {
    background-color: #0a0a0a;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.agency-credit strong {
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive Footer */
@media(max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Estados del Formulario --- */
.btn-disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
}

.form-messages {
    display: none;
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.msg-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.msg-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* --- Responsive --- */
@media(max-width: 768px) {
    /* Ajustes generales de cuadrículas que ya teníamos */
    .about-grid, .contact-grid, .mv-cards, .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
    }

    /* --- NUEVOS AJUSTES PARA EL HERO EN MÓVIL --- */
    
    /* Centramos el contenido del Hero para que se vea más ordenado en vertical */
    .hero {
        text-align: center;
    }
    
    /* Bajamos el tamaño del título principal (antes 3.5rem) */
    .hero h1 { 
        font-size: 2.2rem; 
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    /* Bajamos el tamaño del párrafo (antes 1.2rem) */
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Ajuste extra para teléfonos muy pequeños (ej. iPhone SE) */
@media(max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* --- Estilos base del Botón Hamburguesa (Oculto en Escritorio) --- */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 5px;
    z-index: 1001; /* Se asegura de estar siempre arriba */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
    border-radius: 2px;
}

/* --- Ajustes en el Responsive (Móvil) --- */
@media(max-width: 768px) {
    /* Mostramos el botón hamburguesa */
    .hamburger {
        display: block;
    }

    /* Ocultamos y estilizamos el menú para que sea desplegable */
    .nav-menu {
        position: absolute;
        left: -100%; /* Inicia fuera de la pantalla a la izquierda */
        top: 100%; /* Justo debajo del header */
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: left 0.4s ease;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    /* Clase que se activa con JS para mostrar el menú */
    .nav-menu.active {
        left: 0;
    }

    /* Ajuste de la lista en vertical */
    .nav-menu ul {
        flex-direction: column;
        padding: 2rem 0;
        margin: 0;
    }

    .nav-menu ul li {
        margin: 1.5rem 0;
    }

    .nav-menu ul li a {
        font-size: 1.2rem;
        display: block;
        padding: 5px;
    }

    /* Animación del botón: de 3 barras a una "X" */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}