/* =========================================================
   LT & SOLUTIONS PRO
   SECCIÓN: SECTORES DE NEGOCIO

   Diseño:
   - Corporativo y moderno
   - Tarjetas con imágenes
   - Efectos hover
   - Diseño adaptable a móviles
========================================================= */


/* =========================================================
   1. CONTENEDOR PRINCIPAL
========================================================= */

.sectors-section {

    /* Fondo general de la sección */
    background: #F8FAFC;

    /* Espaciado vertical */
    padding: 100px 24px;

    /* Evita desbordamientos horizontales */
    width: 100%;
    overflow: hidden;

    /* Ajuste de navegación con anclas */
    scroll-margin-top: 100px;

}


/* Contenedor interior con ancho máximo */

.sectors-container {

    width: 100%;
    max-width: 1240px;
    margin: 0 auto;

}


/* =========================================================
   2. ENCABEZADO DE LA SECCIÓN
========================================================= */

.sectors-header {

    /* Centra los textos */
    text-align: center;

    /* Limita el ancho para mejorar la lectura */
    max-width: 790px;
    margin: 0 auto 55px;

}


/* Etiqueta superior */

.sectors-badge {

    display: inline-block;

    padding: 9px 17px;

    background: #EFF6FF;

    border: 1px solid #DBEAFE;

    border-radius: 30px;

    color: #1652F0;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 20px;

}


/* Título principal */

.sectors-header h2 {

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.2;

    font-weight: 800;

    color: #0F172A;

    margin: 0 0 20px;

    letter-spacing: -1.5px;

}


/* Palabras destacadas del título */

.sectors-header h2 span {

    color: #1652F0;

}


/* Descripción */

.sectors-header p {

    max-width: 720px;

    margin: 0 auto;

    color: #64748B;

    font-size: 16px;

    line-height: 1.8;

}


/* =========================================================
   3. DISTRIBUCIÓN DE LAS TARJETAS
========================================================= */

.sectors-cards-grid {

    /* Tres columnas en escritorio */
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px;

    width: 100%;

}


/* =========================================================
   4. TARJETA INDIVIDUAL
========================================================= */

.sector-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);

    display: flex;
    flex-direction: column;
    min-width: 0;

    transition: box-shadow 0.35s ease,
                border-color 0.35s ease;
}

/* EFECTO DE LA TARJETA: SIN DESPLAZAMIENTO */

.sector-card:hover {
    box-shadow: 0 12px 30px rgba(22, 82, 240, 0.10);
    border-color: #BFDBFE;
}


/* =========================================================
   5. IMAGEN - ZOOM EXCLUSIVO DE LA FOTOGRAFÍA
========================================================= */

/* MARCO: NO CAMBIA DE TAMAÑO */

.sector-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #E2E8F0;
    flex-shrink: 0;
}

/* FOTOGRAFÍA */

.sector-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    transform: scale(1);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: transform;
}

/* ZOOM: SOLO LA FOTOGRAFÍA */

.sector-card-image:hover img {
    transform: scale(1.12);
}

/* DEGRADADO */

.sector-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.42),
        transparent 60%
    );

    pointer-events: none;
}

/* NÚMERO DECORATIVO */

.sector-number {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;

    color: #FFFFFF;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   6. CONTENIDO DE LAS TARJETAS
========================================================= */

.sector-card-content {

    /* Espaciado interno */
    padding: 25px 24px 27px;

    /* Permite alinear los enlaces */
    display: flex;

    flex-direction: column;

    flex: 1;

}


/* Categoría pequeña */

.sector-category {

    color: #1652F0;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.2px;

    margin-bottom: 12px;

}


/* Nombre del sector */

.sector-card-content h3 {

    color: #0F172A;

    font-size: 20px;

    font-weight: 800;

    line-height: 1.3;

    margin: 0 0 12px;

}


/* Descripción */

.sector-card-content p {

    color: #64748B;

    font-size: 13px;

    line-height: 1.75;

    margin: 0 0 18px;

}


/* =========================================================
   7. LISTA DE BENEFICIOS
========================================================= */

.sector-features {

    list-style: none;

    padding: 0;

    margin: 0 0 23px;

}


/* Cada beneficio */

.sector-features li {

    position: relative;

    padding-left: 23px;

    margin-bottom: 10px;

    color: #475569;

    font-size: 12px;

    line-height: 1.5;

}


/* Icono de verificación */

.sector-features li::before {

    content: "✓";

    position: absolute;

    left: 0;

    top: 0;

    color: #16A34A;

    font-size: 14px;

    font-weight: 800;

}


/* =========================================================
   8. ENLACE DE CADA TARJETA
========================================================= */

.sector-link {

    /* Empuja el enlace hacia abajo */
    margin-top: auto;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    color: #1652F0;

    font-size: 13px;

    font-weight: 800;

    text-decoration: none;

    transition: color 0.25s ease;

}


/* Flecha */

.sector-link span {

    font-size: 19px;

    transition: transform 0.25s ease;

}


/* Efecto hover */

.sector-link:hover {

    color: #0F3EB5;

}


.sector-link:hover span {

    transform: translateX(5px);

}


/* =========================================================
   9. BLOQUE FINAL DE CONTACTO
========================================================= */

.sectors-bottom {

    /* Distribución horizontal */
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    /* Espaciado */
    padding: 35px 40px;

    margin-top: 65px;

    /* Fondo azul corporativo */
    background: linear-gradient(
        110deg,
        #0F3EB5,
        #1652F0
    );

    border-radius: 20px;

    position: relative;

    overflow: hidden;

}


/* Texto del bloque */

.sectors-bottom-text {

    position: relative;

    z-index: 1;

    max-width: 650px;

}


/* Etiqueta */

.sectors-bottom-text span {

    color: #FBBF24;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


/* Título */

.sectors-bottom-text h3 {

    color: #FFFFFF;

    font-size: 25px;

    font-weight: 800;

    line-height: 1.3;

    margin: 10px 0;

}


/* Descripción */

.sectors-bottom-text p {

    color: #DBEAFE;

    font-size: 14px;

    line-height: 1.6;

    margin: 0;

}


/* =========================================================
   10. BOTÓN DEL BLOQUE FINAL
========================================================= */

.sectors-bottom-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 15px 22px;

    background: #FBBF24;

    color: #0F172A;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 800;

    text-decoration: none;

    white-space: nowrap;

    position: relative;

    z-index: 1;

    transition:
        background 0.25s ease,
        transform 0.25s ease;

}


/* Efecto hover del botón */

.sectors-bottom-button:hover {

    background: #F59E0B;

    transform: translateY(-3px);

}


/* =========================================================
   11. TABLETS
========================================================= */

@media (max-width: 1024px) {

    .sectors-section {

        padding: 80px 22px;

    }

    /* Dos columnas en tablets */

    .sectors-cards-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px;

    }

}


/* =========================================================
   12. MÓVILES
========================================================= */

@media (max-width: 768px) {

    .sectors-section {

        padding: 65px 18px;

    }

    .sectors-header {

        margin-bottom: 35px;

    }

    .sectors-header h2 {

        font-size: 32px;

    }

    .sectors-header p {

        font-size: 14px;

    }

    /* Las tarjetas ocupan una columna */

    .sectors-cards-grid {

        grid-template-columns: 1fr;

        gap: 22px;

    }

    .sector-card-content {

        padding: 22px;

    }

    .sector-card-content h3 {

        font-size: 19px;

    }

    /* Bloque final en vertical */

    .sectors-bottom {

        flex-direction: column;

        align-items: flex-start;

        padding: 30px 24px;

        margin-top: 45px;

    }

    .sectors-bottom-text h3 {

        font-size: 22px;

    }

}


/* =========================================================
   13. MÓVILES PEQUEÑOS
========================================================= */

@media (max-width: 420px) {

    .sectors-section {

        padding: 55px 14px;

    }

    .sectors-header h2 {

        font-size: 28px;

    }

    .sector-card-content {

        padding: 20px;

    }

    .sectors-bottom-button {

        width: 100%;

        white-space: normal;

    }

}


/* =========================================================
   14. ACCESIBILIDAD
   Respeta a los usuarios que prefieren menos movimiento
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sector-card,
    .sector-card-image img,
    .sector-link span,
    .sectors-bottom-button {

        transition: none;

    }

    .sector-card:hover,
    .sector-card:hover .sector-card-image img {

        transform: none;

    }

}



/* PRUEBA DEFINITIVA DE ZOOM */

.sector-card-image {
    overflow: hidden !important;
}

.sector-card-image img {
    transform: scale(1) !important;
    transition: transform 1s ease !important;
}

.sector-card-image:hover img {
    transform: scale(1.5) !important;
}
