:root {
    --primary-color: #E31B23;    
    --secondary-color: #FFFFFF;  
    --bg-dark: #121214;          
    --bg-card: #1E1E24;          
    --text-main: #FFFFFF;        
    --text-muted: #A0A0AA;       
    --transition: all 0.3s ease; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #B81117;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    display: block;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.underline {
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    background-color: rgba(18, 18, 20, 0.95);
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    border-bottom: 1px solid #2A2A30;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-links {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--secondary-color);
}

/* Portada Estilo Video en Bucle */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 90px 24px 40px 24px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(18,18,20,0.6) 0%, rgba(18,18,20,0.95) 100%);
    z-index: -1;
}

.hero-content {
    margin-top: 0;
    width: 100%;
    max-width: 800px;
}

.hero-logo-centered {
    width: 280px;               
    max-width: 80%;             
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
    mix-blend-mode: screen;     
    filter: none;               
    border: none;
    outline: none;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.hero-buttons .btn {
    margin: 5px 10px;
}

/* Estadísticas de Impacto (Para 3 Tarjetas Centradas) */
.stats-section {
    background-color: var(--bg-card);
    padding: 50px 24px;
    border-top: 1px solid #2A2A30;
    border-bottom: 1px solid #2A2A30;
}

.stats-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

/* Servicios */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 24px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 0 0 30px 0;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #2A2A30;
    overflow: hidden;
}

.card-image-container {
    width: 100%;
    height: 180px;
    background-color: #121214;
    margin-bottom: 20px;
    border-bottom: 1px solid #2A2A30;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding: 0 20px;
}

.service-card p {
    color: var(--text-muted);
    padding: 0 20px;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(227, 27, 35, 0.15);
}

/* Proceso de Trabajo */
.process-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 24px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.process-step {
    background-color: var(--bg-card);
    padding: 30px 20px;
    border-radius: 8px;
    border: 1px solid #2A2A30;
    transition: var(--transition);
}

.process-step:hover {
    border-color: var(--primary-color);
}

.step-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Nosotros */
.about-section {
    background-color: #16161a;
    padding: 90px 24px;
    border-top: 1px solid #2A2A30;
    border-bottom: 1px solid #2A2A30;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.underline-left {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 2rem;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Contacto y Formulario */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 24px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-form-container {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #2A2A30;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-dark);
    border: 1px solid #2A2A30;
    color: var(--text-main);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-dark);
    border: 1px solid #2A2A30;
    color: var(--text-main);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    appearance: none; 
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group select option {
    background-color: var(--bg-card);
    color: var(--text-main);
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Footer */
.footer {
    background-color: #0b0b0c;
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid #2A2A30;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e1e24;       
    border: 2px solid #2a2a30;       
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: var(--transition);
    overflow: hidden;
    padding: 10px;
}

.social-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-box:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(227, 27, 35, 0.4);
}

/* REGULAR Y OPTIMIZAR DISPOSITIVOS MÓVILES */
@media screen and (max-width: 960px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        height: calc(100vh - 80px);
        transition: var(--transition);
    }
    .nav-menu.active { left: 0; }
    .nav-links { padding: 2rem; width: 100%; display: block; }
    .menu-toggle { display: block; }

    /* Ajustes visuales para la portada en pantallas pequeñas */
    .hero-section {
        padding-top: 100px;
        padding-bottom: 30px;
    }

    .hero-logo-centered {
        width: 160px;
        margin-bottom: 0.5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }

    .contact-container { 
        grid-template-columns: 1fr; 
    }
}