/* --- Reseteo y Estilos Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px; 
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ccc;
    background: #0a0a0a;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header y Navegación --- */
header {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 2rem; 
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 100px;
    width: auto;
}

.logo-text {
    font-size: 2.0rem;
    font-weight: bold;
    color: #00d4ff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.0rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 2.0rem;
    font-weight: bold;
}

.nav-menu a:hover {
    color: #00d4ff;
}

/* --- Sección Hero --- */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    position: relative;
    overflow: hidden; 
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 1200px;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; background: linear-gradient(135deg, #00d4ff, #0099cc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: glow 2s ease-in-out infinite alternate; }
@keyframes glow { from { text-shadow: 0 0 20px rgba(0, 212, 255, 0.3); } to { text-shadow: 0 0 30px rgba(0, 212, 255, 0.6); } }
.hero p { font-size: 1.3rem; margin-bottom: 2rem; opacity: 0.9; }

/* --- Botones y Secciones Generales --- */
.cta-button { background: linear-gradient(135deg, #00d4ff, #0099cc); color: #fff; padding: 1rem 2rem; border: none; border-radius: 50px; font-size: 1.1rem; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3); }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5); }
.security-section, .services-section, .formulario-section, footer { padding: 6rem 0; }

/* --- Sección Seguridad --- */
.security-section { background: #111; position: relative; }
.security-content { text-align: center; color: #fff; }
.security-content h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: #00d4ff; }
.security-content p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 3rem; opacity: 0.9; }
.security-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card { background: rgba(255, 255, 255, 0.05); padding: 2rem; border-radius: 15px; border: 1px solid rgba(0, 212, 255, 0.2); transition: all 0.3s ease; backdrop-filter: blur(10px); }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(0, 212, 255, 0.5); box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1); }
.feature-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #00d4ff, #0099cc); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.5rem; }
.feature-card h3 { color: #00d4ff; margin-bottom: 1rem; }

/* --- Sección Servicios --- */
.services-section { background: #0a0a0a; }
.services-header { text-align: center; margin-bottom: 4rem; }
.services-header h2 { font-size: 2.5rem; color: #00d4ff; margin-bottom: 1rem; }
.services-header p { font-size: 1.2rem; color: #ccc; max-width: 600px; margin: 0 auto; }
.services-grid {display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;}
.service-card { background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.05)); padding: 2.5rem; border-radius: 20px; border: 1px solid rgba(0, 212, 255, 0.2); transition: all 0.3s ease; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent); transition: left 0.5s ease; }
.service-card:hover::before { left: 100%; }
.service-card:hover { transform: translateY(-10px); border-color: rgba(0, 212, 255, 0.5); }
.service-card h3 { color: #00d4ff; font-size: 1.5rem; margin-bottom: 1rem; }
.service-card p { color: #ccc; line-height: 1.8; }

/* --- Sección Formulario --- */
.formulario-section { background: #111; }
.formulario-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.formulario-text h2 { font-size: 2.5rem; color: #00d4ff; margin-bottom: 1.5rem; }
.formulario-text p { color: #ccc; font-size: 1.1rem; line-height: 1.8; margin-bottom: 2rem; }

/* --- ESTILOS PARA EL FORMULARIO --- */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00d4ff;
    font-size: 1rem;
}
.contact-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
.contact-form .cta-button {
    width: 100%;
    margin-top: 1rem;
}

/* --- Footer --- */
footer { background: #000; color: #ccc; text-align: center; padding: 3rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { color: #00d4ff; margin-bottom: 1rem; }
.footer-section a { color: #ccc; text-decoration: none; display: block; margin-bottom: 0.5rem; transition: color 0.3s ease; }
.footer-section a:hover { color: #00d4ff; }

/* --- Animaciones y Responsivo --- */
.fade-in { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s ease forwards; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .nav-menu { display: none; }
    .formulario-content { grid-template-columns: 1fr; text-align: center; }
    .services-grid { grid-template-columns: 1fr; }
    .logo-text { display: none; }
}

/* --- NUEVOS ESTILOS PARA LA SECCIÓN "Nuestros Trabajos" --- */
.our-work-section {
    background: #0a0a0a; /* O un color de contraste si lo prefieres */
    padding: 6rem 0;
    text-align: center;
}

.work-header {
    margin-bottom: 4rem;
}

.work-header h2 {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.work-header p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
}

.work-category {
    margin-top: 4rem;
    margin-bottom: 6rem; /* Espacio entre categorías */
}

.work-category h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

.work-category h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: #00d4ff;
    border-radius: 2px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch; /* Para que todas las tarjetas tengan la misma altura */
}

.work-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Para espaciar el contenido y los botones */
    align-items: center;
    text-align: center;
    backdrop-filter: blur(5px);
}

.work-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.2);
}

.work-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #00d4ff;
}

.work-card h3 {
    font-size: 1.8rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    font-weight: bold;
}

.work-card p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1; /* Para que el párrafo ocupe el espacio disponible */
}

.work-card .cta-button-small {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
    margin: 0.5rem; /* Espacio entre botones si hay varios */
}

.work-card .cta-button-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* Adaptaciones responsivas */
@media (max-width: 768px) {
    .work-header h2 {
        font-size: 2rem;
    }
    .work-category h3 {
        font-size: 1.8rem;
    }
    .work-grid {
        grid-template-columns: 1fr;
    }
    .work-card {
        padding: 2rem;
    }
    .work-icon {
        font-size: 3rem;
    }
    .work-card h3 {
        font-size: 1.6rem;
    }
    .work-card p {
        font-size: 1rem;
    }
    .work-card .cta-button-small {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}