/* Variables de Colores (Paleta Energética) */
:root {
    --color-electric-green: #A0F300;
    --color-graphite-black: #1A1A1A;
    --color-rebel-gray: #3D3D3D;
    --color-pure-white: #FFFFFF;
    --color-vibrant-red: #E74C3C;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--color-pure-white);
    background-color: var(--color-graphite-black); /* Fallback color */
    background-image: url('images/hero-bg-fallback.jpg'); /* Fallback image */
    background-size: cover;
    background-attachment: fixed;
}

/* --- Video Background --- */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Lo pone detrás de todo */
    overflow: hidden;
}

#globalVideo {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1); /* Ajusta el brillo para que el texto sea legible */
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    color: var(--color-electric-green);
    margin-bottom: 15px;
}

/* --- Header --- */
.header {
    background-color: rgba(26, 26, 26, 0.8); /* Fondo semi-transparente */
    backdrop-filter: blur(10px); /* Efecto de desenfoque para un look moderno */
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(61, 61, 61, 0.5); /* Borde sutil */
}

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

.logo {
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Oswald', sans-serif;
}

.logo a {
    color: var(--color-pure-white);
    text-decoration: none;
}

.logo a:hover {
    color: var(--color-electric-green);
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 35px;
}

.nav-list a {
    color: var(--color-pure-white);
    font-weight: 400;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-electric-green);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}


/* --- Main Content Wrapper --- */
.content-wrapper {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre el video */
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh; /* Ocupa la primera pantalla completa */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Para no quedar debajo del header */
    background: transparent; /* El fondo es el video global */
}

.hero-title {
    font-size: 5em;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 1); /* Sombra más fuerte para legibilidad sobre el video */
    color: var(--color-electric-green);
    font-family: 'Oswald', sans-serif;
}

.hero-subtitle {
    font-size: 1.6em;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-pure-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
    font-family: 'Roboto', sans-serif;
}

/* --- Content Islands --- */
.content-island {
    padding: 100px 0;
    margin: 40px auto; /* Espacio vertical entre islas */
    max-width: 1400px; /* Ancho máximo de las islas */
    background-color: rgba(26, 26, 26, 0.85); /* Fondo de la isla semi-transparente */
    backdrop-filter: blur(15px); /* Desenfoque más pronunciado */
    border-radius: 20px; /* Bordes redondeados */
    border: 1px solid rgba(61, 61, 61, 0.7);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

h2.section-title {
    font-size: 3.2em;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

h2.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) skewX(-20deg);
    width: 100px;
    height: 4px;
    background-color: var(--color-electric-green);
    border-radius: 2px;
}

/* --- About Section (ya es una isla) --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}
.about-text { flex: 1; }
.about-text p { margin-bottom: 25px; font-size: 1.15em; color: var(--color-pure-white); }
.about-image { flex: 1; text-align: center; }
.about-image img { max-width: 100%; height: auto; border-radius: 15px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); }

/* --- Services Section (ya es una isla) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background-color: var(--color-graphite-black);
    padding: 45px 35px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--color-electric-green), var(--color-vibrant-red), var(--color-electric-green));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-15px); background-color: var(--color-rebel-gray); border-color: var(--color-electric-green); }
.service-icon { font-size: 4em; color: var(--color-electric-green); margin-bottom: 25px; display: block; transition: transform 0.3s ease; }
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h3 { font-size: 2em; margin-bottom: 20px; color: var(--color-electric-green); font-family: 'Oswald', sans-serif; }
.service-card p { font-size: 1.05em; color: var(--color-pure-white); }

/* --- Contact Section (ya es una isla) --- */
.contact-intro { font-size: 1.3em; margin-bottom: 50px; color: var(--color-pure-white); font-weight: 300; text-align: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; text-align: left; }

.contact-form-container, .contact-info {
    padding: 0;
    box-shadow: none;
    border: none;
}

.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--color-electric-green); text-transform: uppercase; font-size: 0.9em; letter-spacing: 0.5px; font-family: 'Oswald', sans-serif; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border-radius: 8px; border: 2px solid var(--color-rebel-gray); background-color: var(--color-graphite-black); color: var(--color-pure-white); font-size: 1.05em; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-electric-green); box-shadow: 0 0 0 4px rgba(160, 243, 0, 0.4); }
.contact-info h3 { font-size: 2.2em; margin-bottom: 30px; color: var(--color-electric-green); }
.contact-info p { margin-bottom: 20px; font-size: 1.15em; color: var(--color-pure-white); }
.contact-info p i { margin-right: 12px; color: var(--color-electric-green); }
/* Corrección para que ignore los botones */
.contact-info a:not(.btn) {
    color: var(--color-electric-green);
    text-decoration: none;}
.contact-info a:hover { color: var(--color-vibrant-red); }
.social-links { margin-top: 35px; margin-bottom: 35px; }
.social-links a { color: var(--color-pure-white); margin-right: 25px; font-size: 2em; transition: color 0.3s ease, transform 0.2s ease; }
.social-links a:hover { color: var(--color-electric-green); transform: scale(1.1); }

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    letter-spacing: 1px;
    font-family: 'Oswald', sans-serif;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-electric-green);
    color: var(--color-graphite-black);
    border: 2px solid var(--color-electric-green);
    box-shadow: 0 0 15px rgba(160, 243, 0, 0.6);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-electric-green);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(160, 243, 0, 0.8);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-electric-green); /* Texto verde visible */
    border: 2px solid var(--color-electric-green); /* Borde verde */
    box-shadow: none; /* Sin sombra para diferenciarlo */
}

.btn-outline:hover {
    background-color: var(--color-electric-green);
    color: var(--color-graphite-black); /* Texto oscuro al pasar el ratón */
    box-shadow: 0 0 20px rgba(160, 243, 0, 0.7); /* Le damos brillo en el hover */
    transform: translateY(-3px);
}


/* --- Footer --- */
.footer {
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(15px);
    color: var(--color-rebel-gray);
    text-align: center;
    padding: 50px 0;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(61, 61, 61, 0.7);
}
.footer p { margin-bottom: 12px; font-size: 0.95em; }
.footer i { color: var(--color-electric-green); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .content-island { margin: 20px 15px; padding: 80px 20px; }
    .hero-title { font-size: 4em; }
    .hero-subtitle { font-size: 1.4em; }
    .about-content { flex-direction: column; gap: 30px; }
    .about-image { order: -1; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h2.section-title { font-size: 2.5em; }
    .hero-title { font-size: 3.2em; }
    .hero-subtitle { font-size: 1.2em; }
    .content-island { margin: 20px 10px; padding: 60px 15px; border-radius: 15px; }
    
    .header { padding: 15px 0; }
    .header .container { flex-direction: column; }
    .nav-list { margin-top: 15px; }
    .nav-list li { margin: 0 10px; }

    .contact-grid { gap: 40px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.6em; }
    .hero-subtitle { font-size: 1.1em; }
    .btn { padding: 12px 25px; font-size: 0.9em; }
    .content-island { padding: 50px 10px; }
    h2.section-title { font-size: 2.2em; }
    .service-card h3 { font-size: 1.8em; }
}


.btn-outline {
    background-color: transparent;
    color: var(--color-electric-green); /* Texto verde visible */
    border: 2px solid var(--color-electric-green); /* Borde verde */
    box-shadow: none; /* Sin sombra para diferenciarlo */
}

.btn-outline:hover {
    background-color: var(--color-electric-green);
    color: var(--color-graphite-black); /* Texto oscuro al pasar el ratón */
    box-shadow: 0 0 20px rgba(160, 243, 0, 0.7); /* Le damos brillo en el hover */
    transform: translateY(-3px);
}
