@charset "utf-8";

/* ======================================================
   REGLA CRÍTICA DE ESTABILIDAD GEOMÉTRICA
   ====================================================== */
html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
    /* Bloquea matemáticamente cualquier desbordamiento causado por paddings o bordes */
}

/* Tipografía y ajustes generales */
/*
Paleta de colores
Morado bajo #79328C
Morado alto #632C73
Azul alto #2493BF
Azul bajo #1EB7D9
Gris #F2F2F2
*/

body {
    margin: 0;
    color: #333;
    overflow-x: hidden; /* Segunda capa de mitigación de desbordamiento */
}

body p,
li,
a,
button {
    font-family: "Source Sans 3", sans-serif;
}

body h1,
h2,
h3 {
    font-family: "Inter", sans-serif;
}

body button:hover {
    background-color: #2f2f2f;
    color: #FFF;
    transition: .5s;
}

/* Hero Principal */
.hero {
    background-image: url(/img/servicios/background-servicios-tecnologia-operativa-digital-nexora.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: left;
    padding: 20px;
    padding-bottom: 200px;
    padding-top: 200px;
    position: relative;
    color: #FFF;
}

.hero-content {
    position: relative;
    max-width: 800px;
    width: 100%;
}

.hero h1 {
    font-size: 4.5rem;
    margin-left: 5%;
    margin-bottom: 20px;
    margin-top: 0;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 30px;
    margin-left: 5%;
    margin-top: 0;
}

.hero .cta-btn {
    background: #0A2A43;
    color: white;
    padding: 20px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    margin-left: 5%;
    display: inline-block;
}

.hero .cta-btn:hover {
    background: #20447D;
    transition: .5s;
}

/* Main general */
main {
    width: 100%;
    margin-left: 0%;
}

/* ======================================================
   ESTILOS - PÁGINA TECNOLOGÍA OPERATIVA
   ====================================================== */

/* --- HERO CONCEPTUAL --- */
.tech-hero {
    width: 100%;
    padding: 50px 0 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.tech-wrapper {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.tag-tech {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FF6C2C;
    margin-bottom: 20px;
}

.tech-hero h1 {
    font-size: 48px;
    color: #0c1b33;
    font-weight: 900;
    margin: 0 0 25px 0;
    letter-spacing: -1px;
}

.tech-hero p {
    font-size: 20px;
    color: #555555;
    line-height: 1.6;
}

/* --- BENTO GRID SYSTEM --- */
.bento-sec {
    width: 100%;
    padding: 40px 0 100px 0;
    background-color: #ffffff;
}

.bento-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 24px;
}

.bento-card {
    background-color: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.bento-card:hover {
    border-color: #056839;
    box-shadow: 0 10px 40px rgba(12, 27, 51, 0.05);
}

/* Variaciones de la Grid */
.card-large {
    grid-column: span 2;
    grid-row: span 1;
    background-color: #0c1b33;
    color: #ffffff;
}

.card-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.card-small {
    grid-column: span 1;
    grid-row: span 1;
}

.card-medium-alt {
    grid-column: span 2;
    grid-row: span 1;
}

/* Elementos internos de las cards */
.card-tag {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FF6C2C;
    margin-bottom: 15px;
}

.card-large .card-tag {
    color: #ffffff;
    opacity: 0.7;
}

.bento-card h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.bento-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555555;
}

.card-large p {
    color: #d1d5db;
}

/* Lista dentro de la card grande */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ffffff;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FF6C2C;
    font-weight: bold;
}

.card-icon-bg {
    position: absolute;
    bottom: -20px;
    right: -20px;
    opacity: 0.1;
    color: #ffffff;
}

.card-icon-bg svg {
    width: 150px;
    height: 150px;
}

/* --- SECCIÓN INFRAESTRUCTURA DECO --- */
.infra-sec {
    width: 100%;
    padding: 50px 0;
    background-color: #f4f6f9;
}

.infra-wrapper {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.infra-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.infra-text h2 {
    font-size: 32px;
    color: #0c1b33;
    margin-bottom: 20px;
    font-weight: 900;
}

.infra-text p {
    font-size: 17px;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.infra-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.infra-badges span {
    background-color: #ffffff;
    color: #0c1b33;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.deco-placeholder {
    width: 100%;
    height: 200px;
    background-color: #0c1b33;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 12px;
    font-size: 14px;
}

/* ======================================================
   ESTILOS - PROCESO HORIZONTAL Y CTA (TECNOLOGÍA OPERATIVA)
   ====================================================== */

.tech-proceso-sec {
    width: 100%;
    padding: 50px 0;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
}

.tech-proceso-sec .proceso-wrapper {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.tech-proceso-sec .proceso-header {
    text-align: center;
    margin-bottom: 60px;
}

.tech-proceso-sec .proceso-header h2 {
    font-size: 36px;
    color: #0c1b33;
    font-weight: 900;
    margin-bottom: 15px;
}

.tech-proceso-sec .proceso-header p {
    font-size: 18px;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- GRID HORIZONTAL --- */
.tech-proceso-sec .proceso-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.tech-proceso-sec .fase-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tech-proceso-sec .fase-item:hover {
    transform: translateY(-5px);
    border-color: #056839;
    box-shadow: 0 10px 20px rgba(12, 27, 51, 0.05);
}

.tech-proceso-sec .fase-numero {
    font-size: 42px;
    font-weight: 900;
    color: #FF6C2C;
    margin-bottom: 15px;
    line-height: 1;
    opacity: 0.8;
}

.tech-proceso-sec .fase-contenido h3 {
    font-size: 20px;
    color: #0c1b33;
    font-weight: 700;
    margin-bottom: 15px;
}

.tech-proceso-sec .fase-contenido p {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* --- CTA TECNOLOGÍA OPERATIVA --- */
.tech-cta-sec {
    width: 100%;
    padding: 50px 0 70px 0;
    background-color: #0c1b33;
    text-align: center;
}

.tech-cta-sec .cta-wrapper {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.tech-cta-sec h2 {
    font-size: 38px;
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 20px;
}

.tech-cta-sec p {
    font-size: 18px;
    color: #d1d5db;
    margin-bottom: 40px;
    line-height: 1.6;
}

.tech-cta-sec .btn-tech-cta {
    display: inline-block;
    background-color: #FF6C2C;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.tech-cta-sec .btn-tech-cta:hover {
    background-color: #056839;
    transform: translateY(-2px);
}

/* ======================================================
   CASCADA MÓVIL ESTRICTA CON TAMAÑOS CONSERVADORES
   ====================================================== */

/* Ajustes para Tablets */
@media only screen and (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .card-large,
    .card-medium-alt {
        grid-column: span 1;
    }
    .infra-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .infra-badges {
        justify-content: center;
    }
    .tech-proceso-sec .proceso-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Ajustes Críticos para Móviles */
@media only screen and (max-width: 768px) {
    
    /* --- Normalización Hero Principal --- */
    .hero {
        padding: 60px 5%;
    }
    .hero h1 {
        font-size: 2rem; /* ~32px */
        margin-left: 0;
    }
    .hero p {
        font-size: 1rem; /* ~16px */
        margin-left: 0;
    }
    .hero .cta-btn {
        margin-left: 0;
        display: block;
        width: 100%;
        text-align: center;
    }

    /* --- Normalización Tech Hero --- */
    .tech-hero {
        padding: 50px 0 40px 0;
    }
    .tech-hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    .tech-hero p {
        font-size: 15px;
    }
    .tag-tech {
        font-size: 11px;
    }

    /* --- Normalización Bento Grid --- */
    .bento-sec {
        padding: 40px 0;
    }
    .bento-grid {
        gap: 15px;
    }
    .bento-card {
        padding: 25px 20px;
        border-radius: 12px;
    }
    .card-tag {
        font-size: 11px;
        margin-bottom: 12px;
    }
    .bento-card h3 {
        font-size: 20px;
    }
    .bento-card p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* --- Normalización Infraestructura DECO --- */
    .infra-sec {
        padding: 40px 0;
    }
    .infra-content {
        gap: 30px;
    }
    .infra-text h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .infra-text p {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .infra-badges span {
        font-size: 12px;
        padding: 8px 15px;
    }
    .deco-placeholder {
        height: 150px;
        font-size: 12px;
    }

    /* --- Normalización Proceso --- */
    .tech-proceso-sec {
        padding: 40px 0;
    }
    .tech-proceso-sec .proceso-header h2 {
        font-size: 24px;
        line-height: 1.2;
    }
    .tech-proceso-sec .proceso-header p {
        font-size: 15px;
    }
    .tech-proceso-sec .proceso-horizontal {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .tech-proceso-sec .fase-item {
        padding: 20px 15px;
    }
    .tech-proceso-sec .fase-numero {
        font-size: 28px;
        margin-bottom: 10px;
    }
    .tech-proceso-sec .fase-contenido h3 {
        font-size: 18px;
    }
    .tech-proceso-sec .fase-contenido p {
        font-size: 14px;
    }

    /* --- Normalización CTA --- */
    .tech-cta-sec {
        padding: 50px 0;
    }
    .tech-cta-sec h2 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    .tech-cta-sec p {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .tech-cta-sec .btn-tech-cta {
        font-size: 15px;
        padding: 14px 20px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}