/* ========================================= */
/* ESTILOS ESPECÍFICOS PARA LA PÁGINA CÁMARAS CCTV */
/* Este archivo debe cargarse DESPUÉS de styles.css */
/* ========================================= */

/* --- 1. HERO SECTION --- */
.cctv-hero-seccion {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/cctv-hero-bg.png') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 120px 5%;
    height: 500px; /* Altura fija para el hero */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cctv-hero-contenido {
    max-width: 900px;
}

.cctv-hero-seccion h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white; /* Asegura que el título sea blanco */
    border-bottom: none; /* Elimina la línea inferior del h2 general */
}

.cctv-hero-seccion p {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.btn-hero-cctv {
    display: inline-block;
    background-color: var(--color-principal); /* Azul principal */
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn-hero-cctv:hover {
    background-color: var(--color-secundario); /* Azul secundario al pasar el mouse */
}

/* --- 2. SECCIÓN DE BENEFICIOS CLAVE --- */
.beneficios-seccion {
    padding: 80px 5%;
    background-color: #f0f4f8; /* Un gris azulado muy claro */
    text-align: center;
}

.beneficios-seccion h2 {
    margin-bottom: 50px;
}

.beneficios-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.beneficio-item {
    background-color: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 280px;
    text-align: center;
    transition: transform 0.3s ease;
}

.beneficio-item:hover {
    transform: translateY(-10px);
}

.beneficio-icon {
    font-size: 3.5em;
    color: var(--color-principal);
    margin-bottom: 20px;
}

.beneficio-item h3 {
    font-size: 1.3em;
    color: var(--color-secundario);
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
}

.beneficio-item p {
    font-size: 0.95em;
    color: var(--color-texto);
    line-height: 1.6;
}

/* --- 3. SECCIÓN DE TIPOS DE CÁMARAS --- */
.tipos-camaras-seccion {
    padding: 80px 5%;
    background-color: var(--color-fondo); /* Fondo blanco */
    text-align: center;
}

.tipos-camaras-seccion h2 {
    margin-bottom: 15px;
}

.subtitulo-seccion {
    font-size: 1.1em;
    color: var(--color-texto);
    margin-bottom: 50px;
}

.tipos-camaras-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tipo-camara-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 280px;
    text-align: center;
    transition: all 0.3s ease;
}

.tipo-camara-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.tipo-camara-img {
    width: 100%;
    height: 150px;
    object-fit: contain; /* Para que la imagen se vea completa sin cortar */
    margin-bottom: 20px;
}

.tipo-camara-item h3 {
    font-size: 1.3em;
    color: var(--color-secundario);
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
}

.tipo-camara-item p {
    font-size: 0.9em;
    color: var(--color-texto);
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-info-camara {
    display: inline-block;
    background-color: var(--color-secundario);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.btn-info-camara:hover {
    background-color: var(--color-principal);
}

/* --- 4. SECCIÓN DE TECNOLOGÍA / CÓMO FUNCIONA --- */
.como-funciona-seccion {
    padding: 80px 5%;
    background-color: #e6f0ff; /* Azul claro similar al hero de Contpaqi Despachos */
    text-align: center;
}

.como-funciona-seccion h2 {
    margin-bottom: 50px;
}

.como-funciona-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.cf-imagen {
    flex: 1;
    min-width: 300px;
}

.cf-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cf-texto {
    flex: 1;
    min-width: 300px;
}

.cf-texto h3 {
    font-size: 1.8em;
    color: var(--color-principal);
    margin-bottom: 20px;
    border-bottom: none;
    padding-bottom: 0;
}

.cf-texto p {
    font-size: 1.1em;
    color: var(--color-texto);
    line-height: 1.7;
    margin-bottom: 15px;
}

.cf-texto ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.cf-texto ul li {
    font-size: 1.05em;
    color: var(--color-texto);
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.cf-texto ul li .fas.fa-check-circle {
    color: var(--color-secundario);
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1.2em;
}

/* --- 5. SECCIÓN DE PROCESO DE INSTALACIÓN --- */
.proceso-seccion {
    padding: 80px 5%;
    background-color: var(--color-fondo);
    text-align: center;
}

.proceso-seccion h2 {
    margin-bottom: 50px;
}

.proceso-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.proceso-paso {
    background-color: #f9f9f9;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 250px;
    text-align: center;
    position: relative;
    padding-top: 60px; /* Espacio para el número */
}

.paso-numero {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-principal);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.proceso-paso h3 {
    font-size: 1.2em;
    color: var(--color-secundario);
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
}

.proceso-paso p {
    font-size: 0.9em;
    color: var(--color-texto);
    line-height: 1.5;
}

/* --- 6. SECCIÓN DE PREGUNTAS FRECUENTES (FAQ) --- */
.faq-seccion {
    padding: 80px 5%;
    background-color: #e6f0ff; /* Azul claro */
    text-align: center;
}

.faq-seccion h2 {
    margin-bottom: 50px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background-color: #f2f7ff; /* Fondo ligeramente azul para la pregunta */
    color: var(--color-secundario);
    padding: 18px 25px;
    border: none;
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '\002B'; /* Símbolo de más */
    font-size: 1.5em;
    color: var(--color-principal);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '\2212'; /* Símbolo de menos */
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding-bottom: 20px;
    line-height: 1.6;
    color: var(--color-texto);
}

/* Cuando el acordeón está activo, muestra la respuesta */
.faq-question.active + .faq-answer {
    max-height: 200px; /* Ajusta según la altura máxima esperada del contenido */
    padding-top: 15px;
    padding-bottom: 20px;
}


/* --- RESPONSIVIDAD GENERAL PARA CCTV --- */
@media (max-width: 992px) {
    .cctv-hero-seccion {
        padding: 80px 5%;
        height: auto;
    }
    .cctv-hero-seccion h1 {
        font-size: 2.5em;
    }
    .cctv-hero-seccion p {
        font-size: 1.2em;
    }

    .como-funciona-grid {
        flex-direction: column;
        text-align: center;
    }
    .cf-texto {
        margin-top: 30px;
    }
    .cf-texto h3 {
        text-align: center;
    }
    .cf-texto ul {
        padding-left: 20px; /* Ajuste para la lista de checks */
        text-align: left;
    }
}

@media (max-width: 768px) {
    .cctv-hero-seccion h1 {
        font-size: 2em;
    }
    .cctv-hero-seccion p {
        font-size: 1em;
    }

    .beneficio-item, .tipo-camara-item, .proceso-paso {
        max-width: 350px; /* Permite que las tarjetas sean más grandes en pantallas pequeñas */
        width: 100%;
    }
    
    .proceso-paso {
        padding-top: 40px;
    }
    .paso-numero {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
        top: -15px;
    }
}

@media (max-width: 480px) {
    .cctv-hero-seccion {
        padding: 60px 5%;
    }
    .cctv-hero-seccion h1 {
        font-size: 1.8em;
    }
    .cctv-hero-seccion p {
        font-size: 0.9em;
    }
    .beneficio-item, .tipo-camara-item {
        padding: 20px;
    }
    .beneficio-icon {
        font-size: 3em;
    }
    .faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .faq-answer p {
        font-size: 0.9em;
    }
}