/* --- VARIABLES (Identidad Seguridad: Azul Marino, Rojo Alerta, Azul Tech) --- */
:root {
    --color-dark-blue: #0d1b2a;
    --color-tech-blue: #1b263b;
    --color-primary: #1976d2; /* Azul corporativo */
    --color-accent-red: #d32f2f; /* Rojo alarma */
    --color-text: #415a77;
    --color-light-bg: #e0e1dd;
    --border-radius-card: 8px;
    --box-shadow-tech: 0 8px 30px rgba(0,0,0,0.15);
}

/* --- ESTILOS GENERALES --- */
.page-security {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: var(--color-text);
}

.section-padding { padding: 90px 0; }
.bg-light-tech { background-color: #f0f2f5; }
.bg-dark-tech { background-color: var(--color-dark-blue); }
.text-dark-blue { color: var(--color-dark-blue); }
.text-primary-tech { color: var(--color-primary); }
.text-danger { color: var(--color-accent-red) !important; }
.text-white { color: white !important; }
.text-center { text-align: center; }

/* Flexbox Utilities */
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.fw-bold { font-weight: 700; }
.ls-2 { letter-spacing: 1px; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

/* --- GRID SYSTEM & LAYOUT --- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-lg-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.align-items-center { align-items: center; }

@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .flex-row-reverse {
        flex-direction: row-reverse;
    }
    .pe-lg-5 {
        padding-right: 3rem !important;
    }
    .mb-lg-0 { margin-bottom: 0 !important; }
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-danger {
    background-color: var(--color-accent-red);
    color: white;
    transition: all 0.3s;
}
.btn-danger:hover {
    background-color: #b71c1c;
    transform: scale(1.05);
}

.btn-outline-light {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
.btn-outline-light:hover {
    background-color: white;
    color: var(--color-dark-blue);
}

.shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; }

/* --- SECCIÓN HERO --- */
.hero-section {
    position: relative;
    height: 75vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Degradado oscuro muy fuerte para resaltar las luces de la imagen de fondo */
    background: linear-gradient(to right, rgba(13, 27, 42, 0.95), rgba(13, 27, 42, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-badge {
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 20px;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.hero-lead { font-size: 1.25rem; max-width: 700px; margin: 0 auto 40px auto; color: #e0e1dd; }

/* Animación Pulso Rojo (Alarma) */
.pulse-red { animation: pulse-red 2s infinite; }
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(211, 47, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

/* --- SECCIÓN TECH (Lista lateral) --- */
.tech-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}
.tech-list li {
    display: flex;
    margin-bottom: 25px;
}
.tech-list .icon {
    width: 50px;
    height: 50px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}
.shadow-tech { box-shadow: -15px 15px 0px var(--color-dark-blue); }

/* --- SECCIÓN SERVICIOS (Grid) --- */
.container-narrow { max-width: 1140px; margin: 0 auto; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-card);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: left; /* Alineación izquierda para variar */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

/* Indicador de estado (luz led ficticia) */
.card-status {
    width: 10px; height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 20px; right: 20px;
}
.status-active { background-color: #4caf50; box-shadow: 0 0 8px #4caf50; }
.status-alert { background-color: var(--color-accent-red); box-shadow: 0 0 8px var(--color-accent-red); }

.service-card h3 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-dark-blue);
    font-size: 1.4rem;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Colores de Iconos */
.icon-blue { color: #2196f3; }
.icon-red { color: #d32f2f; }
.icon-orange { color: #ff9800; }
.icon-teal { color: #009688; }
.icon-fire { color: #ff5722; }
.icon-grey { color: #78909c; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .shadow-tech { box-shadow: none; margin-bottom: 30px; }
    .tech-list li { flex-direction: column; text-align: center; }
    .tech-list .icon { margin: 0 auto 10px auto; }
    .service-card { text-align: center; }
    .card-status { left: 50%; margin-left: -5px; } /* Centrar led en móvil */
}