/* ============================================================
   ESTILOS GENERALES — Talento Norte SpA
   ============================================================ */

:root {
    --azul: #002B55;
    --azul2: #073B70;
    --celeste: #6D91B5;
    --gris: #F3F6F9;
    --arena: #E8EEF4;
    --texto: #1f2937;
}

body {
    font-family: Arial, sans-serif;
    color: var(--texto);
}

.text-main  { color: var(--azul); }
.bg-soft    { background-color: var(--gris); }
.bg-arena   { background-color: var(--arena); }

.btn-main       { background: var(--azul); color: #fff !important; border: none; transition: all .25s ease; }
.btn-main:hover { background: var(--azul2); color: #fff !important; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 150px;
    background: linear-gradient(135deg, var(--azul) 0%, var(--azul2) 50%, #0f172a 100%);
}

.hero-container {
    max-width: 1540px;
    padding-left: 48px;
    padding-right: 48px;
    position: relative;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0; bottom: 0; left: -50%; right: -50%;
    z-index: 1;
    opacity: .22;
    animation: heroSlide 8s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, rgba(109,145,181,.45) 50%, rgba(0,43,85,.55) 50%);
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    animation: heroSlideReverse 10s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, rgba(255,255,255,.14) 50%, rgba(7,59,112,.42) 50%);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .75;
    animation: heroSlide 12s ease-in-out infinite alternate;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.22) 0, transparent 22%),
        radial-gradient(circle at 80% 40%, rgba(109,145,181,.35) 0, transparent 25%),
        linear-gradient(90deg, transparent 0, rgba(255,255,255,.10) 1px, transparent 1px);
    background-size: auto, auto, 42px 42px;
}

@keyframes heroSlide        { 0% { transform: translateX(-25%); } 100% { transform: translateX(25%); } }
@keyframes heroSlideReverse { 0% { transform: translateX(25%);  } 100% { transform: translateX(-25%); } }

.hero-curve {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    width: 100%; height: 70px;
    z-index: 3; pointer-events: none;
}
.hero-curve svg { display: block; width: 100%; height: 100%; }

.badge-custom {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.20);
    font-size: 14px;
}

.text-light-blue { color: #dbeafe; line-height: 1.6; }
.text-light-gray { color: #e2e8f0; line-height: 1.7; }

.hero-animate-left {
    opacity: 0;
    transform: translateX(-60px);
    animation: heroSlideLeft .9s ease forwards;
}
.hero-delay { animation-delay: .25s; }

@keyframes heroSlideLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   CARDS
   ============================================================ */

.card-custom {
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 32px rgba(15,23,42,.08);
}

.hero-card {
    background: rgba(255,255,255,.12);
    color: white;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mini-box {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    font-weight: 700;
}

/* ============================================================
   VALOR — Cards "Creamos valor" y "Enfoque territorial"
   ============================================================ */

.territory-card {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 26px;
    align-items: center;
    padding: 33px 39px;
    background: #002550;
    border-radius: 28px;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(0,43,85,.22);
    transition: transform .35s ease, box-shadow .35s ease;
}

.territory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(0,43,85,.28);
}

.territory-icon,
.comunidad-icon {
    width: 91px;
    height: 91px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.territory-icon img,
.comunidad-icon img {
    width: 155px;
    height: 155px;
    object-fit: contain;
}

.territory-content h5 {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: .03em;
}

.territory-content p {
    color: rgba(255,255,255,.88);
    font-size: 1.1rem;
    line-height: 1.55;
    margin: 0;
}

/* ============================================================
   SERVICIOS
   ============================================================ */

.section-line {
    width: 120px; height: 4px;
    background: linear-gradient(90deg, var(--azul) 0%, rgba(0,43,85,.15) 100%);
    border-radius: 999px;
}

.service-card {
    position: relative;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(109,145,181,.55);
    box-shadow: 0 18px 40px rgba(15,23,42,.14);
}

.service-icon-card {
    gap: 18px;
    display: flex;
    align-items: center;
}

.service-icon-card img {
    width: 78px; height: 78px;
    max-width: 78px; max-height: 78px;
    object-fit: contain;
}

.service-card h5 {
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: .02em;
    margin-bottom: 12px;
}

.service-card p {
    font-size: .98rem;
    line-height: 1.6;
}

/* ============================================================
   CHECK ITEMS
   ============================================================ */

.check-item {
    margin: 0;
    color: #334155;
    font-weight: 600;
    line-height: 1.5;
}

/* ============================================================
   COBERTURA TERRITORIAL
   ============================================================ */

.coverage-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.coverage-card > .dropdown { flex: 1; }

.coverage-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    align-items: center;
    justify-items: center;
    text-align: center;
}

.coverage-list .check-item { width: 100%; text-align: center; }
.coverage-full { grid-column: 1 / -1; text-align: center; }
.benefit-list  { display: grid; gap: 18px; }
.coverage-list-large .check-item { font-size: 18px; font-weight: 700; }

/* ============================================================
   ZONE PROMO — Alcance territorial
   ============================================================ */

.zone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.zone-promo {
    position: relative;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.zone-promo--wide {
    grid-column: span 3;
    aspect-ratio: 3 / 1;
}

.zone-img-wrapper {
    width: 100%; height: 100%;
    overflow: hidden;
    position: relative;
}

.zone-img-wrapper img {
    width: 120%; height: 100%;
    object-fit: cover;
    transform: translateX(-10%);
    transition: transform 300ms cubic-bezier(.25,1,.5,1);
    display: block;
}

.zone-img-wrapper::after {
    content: "";
    position: absolute; inset: 0;
    background-color: var(--overlay-color);
    mix-blend-mode: multiply;
    opacity: .55;
    transition: opacity 300ms ease;
}

.zone-img-wrapper::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%);
    z-index: 1; pointer-events: none;
}

.zone-title {
    position: absolute;
    left: 0; bottom: 0; width: 100%;
    padding: 10px 12px 8px;
    font-family: 'Syne', sans-serif;
    font-size: 13px; font-weight: 700;
    color: #fff; line-height: 1.2; margin: 0;
    z-index: 2;
    transition: transform 300ms cubic-bezier(.25,1,.5,1);
}

.zone-title::after {
    content: attr(data-cta);
    display: block;
    font-size: 10px; font-weight: 400;
    letter-spacing: .06em;
    color: rgba(255,255,255,.75);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 300ms ease, transform 300ms ease;
    margin-top: 2px;
}

.zone-promo:hover .zone-img-wrapper img  { transform: translateX(0); }
.zone-promo:hover .zone-img-wrapper::after { opacity: .8; }
.zone-promo:hover .zone-title            { transform: translateX(6%); transition-timing-function: cubic-bezier(.34,1.56,.64,1); }
.zone-promo:hover .zone-title::after     { opacity: 1; transform: translateY(0); }
.zone-promo--wide:hover .zone-img-wrapper { transform: none; }
.zone-promo--wide .zone-title { font-size: 14px; }

/* ============================================================
   DROPDOWN LIST — Beneficios
   ============================================================ */

.dropdown {
    border: 1px solid #c1c2c5;
    border-radius: 12px;
    transition: all 300ms;
    display: flex;
    flex-direction: column;
    width: 100%; height: 100%; min-height: 100%;
    background-color: white;
    overflow: hidden;
    position: relative;
}

.dropdown input:where(:checked) ~ .list {
    opacity: 1; transform: none;
    transition: all 500ms ease;
    margin-top: 0; padding-top: 0; margin-bottom: 0;
    height: 100%; max-height: none; min-height: 0;
}

.dropdown input:where(:not(:checked)) ~ .list {
    opacity: 0; transform: translateY(1rem);
    margin-top: -100%;
    user-select: none;
    height: 0; max-height: 0; min-height: 0;
    pointer-events: none;
    transition: all 500ms ease-out;
}

.trigger {
    cursor: default; user-select: none;
    width: 100%; display: flex; align-items: center; justify-content: center;
    padding: 1rem; min-height: 58px;
    position: relative; z-index: 99;
    border-radius: inherit;
    background-color: white;
    flex-shrink: 0; pointer-events: none;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

.dropdown input:where(:checked) + .trigger { margin-bottom: 0; }

.dropdown input:where(:checked) + .trigger:before {
    rotate: 90deg;
    transition-delay: 0ms;
}

.trigger::after,
.dropdown input:where(:checked) + .trigger::after {
    content: "¿Por qué priorizar personal local?";
    color: var(--azul);
    font-weight: 700; font-size: 25px;
    text-align: center; width: 100%;
}

.trigger:before, .trigger::after {
    position: relative;
    display: flex; justify-content: center; align-items: center;
}

.trigger:before {
    content: "›";
    rotate: -90deg;
    width: 17px; height: 17px;
    color: #262626; border-radius: 2px;
    font-size: 30px;
    transition: all 350ms ease;
    transition-delay: 85ms;
}

.list {
    flex: 1; width: 100%; height: 100%; max-height: none;
    display: grid; grid-auto-flow: row; align-content: stretch;
    gap: 1rem; overflow: hidden auto;
    padding: 1rem; margin: 0;
    --w-scrollbar: 8px;
}

.listitem { list-style: none; width: 100%; height: 100%; }

.article {
    width: 100%; height: 100%; min-height: 58px;
    padding: 1rem; border-radius: 8px;
    border: 1px solid #c1c2c5; background-color: white;
    display: flex; align-items: center;
    font-size: 18px; color: #334155; font-weight: 600;
    line-height: 1.5; text-align: left;
}

.webkit-scrollbar::-webkit-scrollbar        { width: var(--w-scrollbar); height: var(--w-scrollbar); border-radius: 9999px; }
.webkit-scrollbar::-webkit-scrollbar-track  { background: #0000; }
.webkit-scrollbar::-webkit-scrollbar-thumb  { background: #0000; border-radius: 9999px; }
.webkit-scrollbar:hover::-webkit-scrollbar-thumb { background: #c1c2c5; }

/* ============================================================
   PROCESO
   ============================================================ */

.proceso { background-color: var(--azul); }

.process-card {
    height: 100%;
    position: relative; overflow: hidden;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.10);
    border-radius: 22px; padding: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease, background .45s ease;
}

.process-card::before {
    content: "";
    position: absolute; top: -60%; left: -60%; width: 220%; height: 220%;
    background: linear-gradient(0deg, transparent, transparent 32%, rgba(109,145,181,.35));
    transform: rotate(-45deg);
    opacity: 0; transition: opacity .45s ease, transform .65s ease;
    pointer-events: none;
}

.process-card:hover {
    transform: scale(1.04);
    background: rgba(255,255,255,.14);
    border-color: rgba(155,184,212,.65);
    box-shadow: 0 0 24px rgba(109,145,181,.45);
}

.process-card:hover::before { opacity: 1; transform: rotate(-45deg) translateY(100%); }

.process-card span, .process-card h5, .process-card p { position: relative; z-index: 2; }

.process-card span  { display: block; font-size: 34px; font-weight: 900; color: #9BB8D4; margin-bottom: 10px; }
.process-card h5    { color: #ffffff; font-weight: 700; }
.process-card p     { color: rgba(255,255,255,.78); line-height: 1.5; }

/* ============================================================
   BENEFICIOS — Boceto estilo "Personal local listo para operar"
   ============================================================ */

.benefits-section {
    background: var(--gris);
    overflow: hidden;
    height: 850px;
}

/* ── Bloque superior ── */
.benefits-top {
    position: relative;
    display: grid;
    grid-template-columns: 0.15fr 1fr;
    min-height: 480px;
    height: 80%;
}

/* Panel texto */
.benefits-text {
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.benefits-eyebrow {
    font-family: 'Syne', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--celeste);
    margin-bottom: 12px;
}

.benefits-title {
    font-family: 'Syne', Arial, sans-serif;
    font-size: clamp(1.5rem, 4.5vw, 4.5rem);
    font-weight: 900;
    color: #000000;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.benefits-title span {
    color: var(--celeste);
}

.benefits-rule {
    width: 40px;
    height: 3px;
    background: var(--celeste);
    border-radius: 999px;
    margin-bottom: 20px;
}

.benefits-desc {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.75;
    margin: 0;
}

/* Panel imagen */
.benefits-image-wrap {
    position: relative;
    overflow: hidden;
    /* corte diagonal desde la izquierda */
    clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.benefits-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.benefits-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,43,85,.55) 0%,
        rgba(0,43,85,.10) 60%,
        transparent 100%
    );
    pointer-events: none;
}

/* ── Bloque inferior — 4 beneficios ── */
.benefits-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
    padding: 40px 56px 48px;
    border-top: 1px solid rgba(255,255,255,.12);
    background: var(--azul);
}

.benefit-separator {
    width: 1px;
    background: rgba(255,255,255,.15);
    align-self: stretch;
    margin: 0 28px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.benefit-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(109,145,181,.22);
    border: 1px solid rgba(109,145,181,.40);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--celeste);
    flex-shrink: 0;
    transition: background .25s ease, transform .25s ease;
}

.benefit-item:hover .benefit-icon {
    background: rgba(109,145,181,.38);
    transform: translateY(-3px);
}

.benefit-item h5 {
    font-family: 'Syne', Arial, sans-serif;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.benefit-item p {
    font-size: .85rem;
    font-weight: 300;
    color: rgba(255,255,255,.65);
    margin: 0;
    line-height: 1.55;
}

/* ============================================================
   RESPONSIVE — HOME
   ============================================================ */

/* ── Tablet 992px ── */
@media (max-width: 991px) {
    .coverage-list { grid-template-columns: 1fr; }
    .coverage-full { grid-column: auto; }

    /* trigger: fuente más pequeña */
    .trigger::after,
    .dropdown input:where(:checked) + .trigger::after {
        font-size: 20px;
    }
}

/* ── Tablet 768px ── */
@media (max-width: 768px) {
    /* Hero */
    .hero { padding: 56px 0 120px; }
    .hero-container { padding-left: 24px; padding-right: 24px; }
    .display-4 { font-size: 2.2rem; }
    .badge-custom { font-size: 12px; padding: 7px 14px; }

    /* Secciones */
    section.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Mini-box */
    .mini-box { font-size: 12px; padding: 10px 12px; line-height: 1.3; border-radius: 12px; font-weight: 600; }

    /* Territory cards: columna única */
    .territory-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px 24px;
        gap: 18px;
    }
    .territory-icon, .comunidad-icon { margin: 0 auto; width: auto; height: auto; max-width: 100%; }
    .territory-icon img, .comunidad-icon img { width: 80px; height: 80px; max-width: 100%; }
    .territory-content h5 { font-size: 1.2rem; }
    .territory-content p  { font-size: 1rem; }

    /* Servicios */
    .service-icon-card { gap: 14px; }
    .service-icon-card img { width: 62px; height: 62px; max-width: 62px; max-height: 62px; }
    .service-card h5 { font-size: 1rem; }
    .service-card p  { font-size: .95rem; }

    /* Proceso */
    .process-card span { font-size: 26px; }
    .process-card { padding: 18px; }

    /* Dropdown trigger */
    .trigger::after,
    .dropdown input:where(:checked) + .trigger::after { font-size: 16px; }
    .article { font-size: 15px; }

    /* Zone grid */
    .zone-grid { grid-template-columns: repeat(2, 1fr); }
    .zone-promo--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
    .zone-title { font-size: 12px; padding: 8px 10px 6px; }

    /* ════════════════════════════════════════════════════════
       BENEFICIOS — Rediseño móvil
       1) Texto blanco arriba (centrado)
       2) Imagen abajo (full width)
       3) Bloque azul de beneficios (sin cambios)
       ════════════════════════════════════════════════════════ */

    .benefits-section {
        background: #ffffff;
        height: auto;
    }

    /* Bloque superior: stack vertical */
    .benefits-top {
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: auto;
        height: auto;
    }

    /* Texto: bloque blanco arriba, centrado */
    .benefits-text {
        order: 0;
        padding: 48px 28px 36px;
        text-align: center;
        background: #ffffff;
        position: static;
        align-items: center;
    }

    .benefits-eyebrow {
        color: var(--celeste);
    }

    .benefits-title {
        font-size: 2.2rem;
        color: #000000;
    }

    .benefits-title span { color: var(--celeste); }

    .benefits-rule {
        background: var(--celeste);
        margin-left: auto;
        margin-right: auto;
    }

    .benefits-desc {
        color: rgba(0,0,0,.75);
        font-size: 1rem;
    }

    /* Imagen: full-width abajo del texto, sin corte diagonal */
    .benefits-image-wrap {
        order: 1;
        clip-path: none;
        width: 100%;
        height: 260px;
        display: block;
    }

    .benefits-img-overlay {
        background: linear-gradient(
            to right,
            rgba(0,43,85,.35) 0%,
            rgba(0,43,85,.10) 60%,
            transparent 100%
        );
    }

    /* Beneficios bottom: 2 columnas */
    .benefits-bottom {
        grid-template-columns: 1fr 1fr;
        padding: 32px 24px 36px;
        gap: 28px;
    }

    .benefit-separator { display: none; }
    .benefit-item { align-items: center; text-align: center; }
}

/* ── Móvil 480px ── */
@media (max-width: 480px) {
    /* Hero */
    .hero { padding: 44px 0 100px; }
    .hero-container { padding-left: 18px; padding-right: 18px; }
    .display-4 { font-size: 1.8rem; line-height: 1.2; }
    .badge-custom { font-size: 11px; padding: 6px 12px; }

    /* Botones hero full-width */
    .hero .d-flex.flex-wrap .btn { width: 100%; text-align: center; }

    /* Títulos de sección */
    h2.fw-bold { font-size: 1.4rem; }

    /* Mini-box */
    .mini-box { font-size: 11px; padding: 8px 10px; }

    /* Cards indicadores */
    .card-custom.fw-bold { font-size: 13px; padding: .75rem !important; }

    /* Territory cards compactas */
    .territory-card { padding: 22px 18px; }
    .territory-icon img, .comunidad-icon img { width: 64px; height: 64px; }
    .territory-content h5 { font-size: 1.05rem; }
    .territory-content p  { font-size: .93rem; }

    /* Servicios: 1 columna */
    .service-card { text-align: center; }

    /* Proceso */
    .process-card { padding: 14px; }
    .process-card span { font-size: 22px; }

    /* Dropdown */
    .trigger::after,
    .dropdown input:where(:checked) + .trigger::after { font-size: 14px; }
    .article { font-size: 13px; min-height: 48px; }

    /* Zone grid: 2 cols en 480 también */
    .zone-title { font-size: 11px; }

    /* CTA final */
    #contacto .d-flex .btn { width: 100%; }

    /* ════════════════════════════════════════════════════════
       BENEFICIOS — Ajustes móvil pequeño
       ════════════════════════════════════════════════════════ */

    .benefits-text {
        padding: 40px 20px 28px;
    }

    .benefits-title { font-size: 1.85rem; }

    .benefits-desc { font-size: .95rem; }

    .benefits-image-wrap {
        height: 220px;
    }

    /* Beneficios bottom: se mantiene en 2 columnas */
    .benefits-bottom {
        grid-template-columns: 1fr 1fr;
        padding: 24px 16px 28px;
        gap: 20px;
    }
}