/**
 * pages.css
 * Shared CSS for CMS-rendered pages (nosotros, sectores, consultoria).
 * Extracted from the <style> blocks of each static page.
 * Loaded in template.html for all slug pages.
 */

/* ══════════════════════════════════════════════════════════════════════
   SHARED — Video bg, hero overlay
══════════════════════════════════════════════════════════════════════ */
.pb-hero-video-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    z-index: 0; pointer-events: none;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: #000; z-index: 0; pointer-events: none;
}

/* ═══ NOSOTROS ═══ */

/* ══════════════════════════════════════
   1. HERO
══════════════════════════════════════ */
.about-hero {
    position: relative; overflow: hidden;
    background: #0d1f2d;
    padding: 10rem 0 7rem;
    color: #fff;
}
.about-hero .bg-shape-l {
    position: absolute; left: -100px; top: -40px;
    opacity: 0.15; width: 460px;
    animation: shapeIn 1.2s ease both;
}
.about-hero .bg-shape-r {
    position: absolute; right: -80px; bottom: -60px;
    opacity: 0.12; width: 420px;
    animation: shapeIn 1.2s .15s ease both;
}
@keyframes shapeIn { from { opacity: 0; transform: scale(.9); } }

.about-hero .hero-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr 38%;
    gap: 4rem;
    align-items: center;
}
.about-hero .hero-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    padding: .35rem 1.1rem; border-radius: 2rem;
    font-size: .78rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.about-hero h1 {
    font-size: 3.75rem; font-weight: 800;
    line-height: 1.1; letter-spacing: -.025em;
    margin: 0 0 1.25rem;
}
.about-hero .hero-desc {
    font-size: 1.1rem; line-height: 1.75;
    opacity: .85; max-width: 540px;
    margin-bottom: 2.25rem;
}
.about-hero .hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.about-hero .btn-white {
    padding: .8rem 2rem; background: #fff; color: #1B4F67;
    border-radius: .5rem; font-weight: 700; font-size: 1rem;
    text-decoration: none; transition: all .2s;
}
.about-hero .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.about-hero .btn-outline {
    padding: .8rem 2rem;
    border: 2px solid rgba(255,255,255,.6);
    color: #fff; border-radius: .5rem; font-weight: 600;
    font-size: 1rem; text-decoration: none; transition: all .2s;
}
.about-hero .btn-outline:hover { background: rgba(255,255,255,.12); }

/* hero right: floating stats card */
.hero-stats-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(12px);
    border-radius: 1.25rem;
    padding: 2.25rem;
    display: flex; flex-direction: column; gap: 1.5rem;
}
.hero-stat-row {
    display: flex; align-items: center; gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.hero-stat-row:last-child { border-bottom: none; padding-bottom: 0; }
.hero-stat-row .stat-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,.12);
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.hero-stat-row .stat-val {
    font-size: 2rem; font-weight: 800;
    line-height: 1; font-family: 'Syne', sans-serif;
}
.hero-stat-row .stat-val span { font-size: 1.2rem; }
.hero-stat-row .stat-lbl {
    font-size: .8125rem; opacity: .7; margin-top: .2rem;
}

/* ══════════════════════════════════════
   2. STATEMENT (IBM "Be essential" style)
══════════════════════════════════════ */
.about-statement {
    padding: 7rem 0;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}
.statement-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: start;
}
.statement-label {
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: #1B4F67;
    padding-top: .35rem;
}
.statement-label::before {
    content: '';
    display: block; width: 2rem; height: 2px;
    background: #1B4F67; border-radius: 2px;
    margin-bottom: .75rem;
}
.statement-quote {
    font-size: 2.25rem; font-weight: 700;
    line-height: 1.35; letter-spacing: -.02em;
    color: #0d1f2d; margin: 0;
}
.statement-quote em {
    font-style: normal; color: #1B4F67;
}
.statement-body {
    margin-top: 2rem;
    font-size: 1.0625rem; line-height: 1.8;
    color: #5a6676;
    border-top: 1.5px solid #e9ecef;
    padding-top: 2rem;
}
.statement-img-col {
    margin-top: 1.5rem;
    height: 260px;
    overflow: hidden;
    border-radius: 10px;
}
.statement-img-col .pb-parallax-img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.08) translateY(0px);
    will-change: transform;
}

/* ══════════════════════════════════════
   3. PROPUESTA DE VALOR — pilares
══════════════════════════════════════ */
.about-values {
    padding: 7rem 0;
    background: #f7f9fb;
    border-bottom: 1px solid #e2e8ed;
}
.about-values .section-header-row {
    display: flex; justify-content: space-between;
    align-items: flex-end; gap: 2rem;
    margin-bottom: 4rem;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.value-card {
    background: #fff;
    border: 1px solid #e2e8ed;
    border-radius: 1rem;
    padding: 2.25rem 2rem;
    transition: transform .3s, box-shadow .3s;
    position: relative; overflow: hidden;
}
.value-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 3px; height: 0;
    background: #1B4F67;
    border-radius: 0 0 2px 2px;
    transition: height .4s cubic-bezier(.22,.61,.36,1);
}
.value-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(27,79,103,.1); }
.value-card:hover::before { height: 100%; }

.value-card-icon {
    width: 52px; height: 52px;
    background: rgba(27,79,103,.1);
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #1B4F67;
    margin-bottom: 1.25rem;
    transition: all .3s;
}
.value-card:hover .value-card-icon {
    background: #1B4F67; color: #fff;
}
.value-card h3 {
    font-size: 1.0625rem; font-weight: 700;
    color: #0d1f2d; margin: 0 0 .75rem;
}
.value-card p {
    font-size: .9375rem; line-height: 1.7;
    color: #6c757d; margin: 0;
}

/* full-width card */
.value-card.span-3 { grid-column: span 3; }
.value-card.featured {
    background: #1B4F67; color: #fff;
    border-color: transparent;
}
.value-card.featured .value-card-icon {
    background: rgba(255,255,255,.15); color: #fff;
}
.value-card.featured:hover .value-card-icon {
    background: rgba(255,255,255,.25);
}
.value-card.featured h3,
.value-card.featured p { color: #fff; }
.value-card.featured p { opacity: .85; }
.value-card.featured::before { background: rgba(255,255,255,.4); }

/* ══════════════════════════════════════
   4. FILOSOFIA — image + text (IBM split)
══════════════════════════════════════ */
.about-philosophy {
    padding: 7rem 0;
    background: #fff;
}
.philosophy-grid {
    display: grid;
    grid-template-columns: 48% 1fr;
    gap: 5rem;
    align-items: center;
}
.philosophy-img-wrap {
    position: relative;
}
.philosophy-img-wrap .main-img {
    width: 100%; border-radius: 1rem; display: block;
    box-shadow: 0 24px 72px rgba(27,79,103,.15);
}
.philosophy-badge {
    position: absolute; bottom: -1.5rem; right: -1.5rem;
    background: #1B4F67; color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(27,79,103,.25);
}
.philosophy-badge .badge-num {
    font-size: 2.25rem; font-weight: 800;
    line-height: 1; font-family: 'Syne', sans-serif;
}
.philosophy-badge .badge-lbl {
    font-size: .8rem; opacity: .8; margin-top: .25rem;
}

.philosophy-text { padding-left: .5rem; }
.philosophy-text .section-subtitle { margin-bottom: .5rem; }
.philosophy-text .section-title { margin-bottom: 1.5rem; font-size: 2.5rem; }
.philosophy-text .lead {
    font-size: 1.0625rem; line-height: 1.8;
    color: #5a6676; margin-bottom: 2rem;
}
.philosophy-commitments { margin: 0 0 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.commitment-item {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1.25rem 1.5rem;
    background: #f7f9fb;
    border-radius: .75rem;
    border-left: 3px solid #1B4F67;
    transition: all .25s;
}
.commitment-item:hover { background: #edf2f7; transform: translateX(4px); }
.commitment-item .ci-icon {
    width: 40px; height: 40px;
    background: rgba(27,79,103,.1);
    border-radius: .5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #1B4F67;
    flex-shrink: 0; margin-top: .1rem;
}
.commitment-item h4 {
    font-size: .9375rem; font-weight: 700;
    color: #0d1f2d; margin: 0 0 .35rem;
}
.commitment-item p {
    font-size: .9rem; line-height: 1.65;
    color: #6c757d; margin: 0;
}

/* ══════════════════════════════════════
   5. STATS (dark band)
══════════════════════════════════════ */
.about-stats {
    padding: 5.5rem 0;
    background: #0d1f2d;
    color: #fff;
    position: relative; overflow: hidden;
}
.about-stats .stats-bg-shape {
    position: absolute; right: -120px; top: -60px;
    opacity: .07; width: 500px;
}
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative; z-index: 1;
}
.about-stat-item {
    text-align: center;
    padding: 1.5rem;
    border-right: 1px solid rgba(255,255,255,.1);
}
.about-stat-item:last-child { border-right: none; }
.about-stat-item .snum {
    font-size: 3.25rem; font-weight: 800;
    line-height: 1; color: #fff;
    font-family: 'Syne', sans-serif;
    margin-bottom: .5rem;
}
.about-stat-item .snum span { font-size: 1.75rem; color: rgba(255,255,255,.7); }
.about-stat-item .slbl {
    font-size: .875rem; color: rgba(255,255,255,.6);
    line-height: 1.4; font-weight: 500;
}

/* ══════════════════════════════════════
   6. POR QUE ELEGIRNOS — full width cards
══════════════════════════════════════ */
.about-why {
    padding: 7rem 0;
    background: #fff;
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3.5rem;
}
.why-card {
    padding: 3rem 2.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8ed;
    position: relative; overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(27,79,103,.1); }
.why-card-num {
    font-size: 5rem; font-weight: 800; line-height: 1;
    color: rgba(27,79,103,.08);
    font-family: 'Syne', sans-serif;
    position: absolute; top: 1rem; right: 1.5rem;
    user-select: none;
}
.why-card-icon {
    width: 56px; height: 56px;
    background: rgba(27,79,103,.1);
    border-radius: .875rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #1B4F67;
    margin-bottom: 1.5rem;
}
.why-card h3 {
    font-size: 1.3rem; font-weight: 700;
    color: #0d1f2d; margin: 0 0 1rem;
}
.why-card p {
    font-size: .9375rem; line-height: 1.75;
    color: #6c757d; margin: 0;
}
.why-card.dark {
    background: #1B4F67;
    border-color: transparent; color: #fff;
}
.why-card.dark .why-card-icon { background: rgba(255,255,255,.15); color: #fff; }
.why-card.dark .why-card-num { color: rgba(255,255,255,.07); }
.why-card.dark h3, .why-card.dark p { color: #fff; }
.why-card.dark p { opacity: .85; }

/* ══════════════════════════════════════
   NOSOTROS — RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1200px) {
    .about-hero .hero-inner { grid-template-columns: 1fr; }
    .hero-stats-card { display: none; }
    .about-hero h1 { font-size: 3rem; }
}
@media (max-width: 1024px) {
    .statement-inner { grid-template-columns: 1fr; gap: 2rem; }
    .statement-img-col { height: 220px; }
    .philosophy-grid { grid-template-columns: 1fr; gap: 3rem; }
    .philosophy-badge { bottom: 1rem; right: 1rem; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .value-card.span-3 { grid-column: span 2; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 1.5rem 1rem; }
    .about-stat-item:last-child { border-bottom: none; }
    .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .about-hero { padding: 7rem 0 4rem; }
    .about-hero h1 { font-size: 2.25rem; }
    .statement-quote { font-size: 1.75rem; }
    .values-grid { grid-template-columns: 1fr; }
    .value-card.span-3 { grid-column: span 1; }
    .about-stats-grid { grid-template-columns: 1fr 1fr; }
    .philosophy-text .section-title { font-size: 2rem; }
}


/* ═══ SECTORES ═══ */

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.sectors-hero {
    position: relative;
    overflow: hidden;
    background: #0d1f2d;
    padding: 9rem 0 6rem;
    color: #fff;
}
.sectors-hero .bg-shape-left {
    position: absolute;
    left: -120px;
    top: -60px;
    opacity: 0.18;
    width: 480px;
    animation: slideLeft 1.2s ease both;
}
.sectors-hero .bg-shape-right {
    position: absolute;
    right: -100px;
    bottom: -80px;
    opacity: 0.14;
    width: 440px;
    animation: slideRight 1.2s ease both;
}
@keyframes slideLeft  { from { transform: translateX(-60px); opacity: 0; } to { opacity: 0.18; } }
@keyframes slideRight { from { transform: translateX(60px);  opacity: 0; } to { opacity: 0.14; } }

.sectors-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}
.sectors-hero .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.35rem 1.1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.sectors-hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem;
}
.sectors-hero .hero-desc {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.85;
    max-width: 560px;
    margin-bottom: 2.25rem;
}
.sectors-hero .hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.sectors-hero .btn-white {
    padding: 0.8rem 2rem;
    background: #fff;
    color: #1B4F67;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}
.sectors-hero .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.sectors-hero .btn-outline {
    padding: 0.8rem 2rem;
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}
.sectors-hero .btn-outline:hover {
    background: rgba(255,255,255,0.12);
}
/* hero scroll indicator */
.sectors-hero .scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.45;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sectors-hero .scroll-hint span {
    width: 1px;
    height: 36px;
    background: #fff;
    display: block;
    animation: scrollLine 1.4s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ══════════════════════════════════════
   SECTOR SELECTOR
══════════════════════════════════════ */
.sectors-area {
    padding: 7rem 0 6rem;
    background: #fff;
}
.sectors-header {
    margin-bottom: 3.5rem;
}
.sectors-header .section-title {
    font-size: 2.75rem;
}

.sectors-layout {
    display: flex;
    align-items: stretch;
    border: 1px solid #e2e8ed;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 40px rgba(13,31,45,0.07);
}

/* Left tabs */
.sectors-tabs {
    width: 29%;
    min-width: 240px;
    border-right: 1px solid #e2e8ed;
    background: #f7f9fb;
    display: flex;
    flex-direction: column;
}
.sectors-tabs-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #e2e8ed;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #adb5bd;
}

.sector-tab {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.125rem 1.5rem;
    width: 100%;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #e2e8ed;
    text-align: left;
    cursor: pointer;
    transition: all 0.22s ease;
    color: #495057;
    font-family: 'DM Sans', sans-serif;
    position: relative;
}
.sector-tab:last-child { border-bottom: none; }

.sector-tab:hover {
    background: #edf2f7;
    color: #1B4F67;
    border-left-color: rgba(27,79,103,0.35);
}
.sector-tab.active {
    background: #fff;
    color: #1B4F67;
    border-left-color: #1B4F67;
    font-weight: 700;
    margin-right: -1px;
    z-index: 1;
    box-shadow: 1px 0 0 #fff;
}

.sector-tab-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27,79,103,0.09);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #1B4F67;
    flex-shrink: 0;
    transition: all 0.22s;
}
.sector-tab:hover .sector-tab-icon,
.sector-tab.active .sector-tab-icon {
    background: #1B4F67;
    color: #fff;
}
.sector-tab-name {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.3;
}
.sector-tab-arrow {
    opacity: 0;
    color: #1B4F67;
    transition: all 0.2s;
}
.sector-tab:hover .sector-tab-arrow,
.sector-tab.active .sector-tab-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Right content */
.sectors-content {
    flex: 1;
    background: #fff;
    min-height: 560px;
    position: relative;
}
.sector-panel {
    display: none;
    padding: 2.75rem 3rem;
}
.sector-panel.active {
    display: block;
    animation: sectorFadeIn 0.48s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes sectorFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.sector-panel-grid {
    display: grid;
    grid-template-columns: 1fr 42%;
    gap: 2.5rem;
    align-items: start;
}

.sector-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1B4F67;
    margin-bottom: 0.875rem;
}
.sector-label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: #1B4F67;
    border-radius: 2px;
}

.sector-headline {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.022em;
    margin: 0 0 1rem;
    color: #0d1f2d;
}
.sector-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: #5a6676;
    margin-bottom: 1.75rem;
}

.sector-capabilities {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}
.sector-capabilities li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f3f6;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #2d3748;
}
.sector-capabilities li:last-child { border-bottom: none; }
.sector-capabilities li i {
    color: #1B4F67;
    font-size: 1rem;
    flex-shrink: 0;
}

/* image side */
.sector-panel-image .sector-img-frame {
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 16px 56px rgba(27,79,103,0.14);
    position: relative;
}
.sector-panel-image .sector-img-frame img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.sector-panel.active .sector-img-frame img {
    transform: scale(1);
}
.sector-panel-image .sector-img-badge {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: rgba(27,79,103,0.92);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.6rem 1.1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* CTA */
.sector-cta-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-top: 0.25rem;
}
.sector-cta-row .theme-btn {
    font-size: 0.9375rem;
    padding: 0.7rem 1.75rem;
}
.sector-cta-row .btn-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1B4F67;
    text-decoration: none;
    transition: gap 0.2s;
}
.sector-cta-row .btn-link-arrow:hover {
    gap: 0.7rem;
}

/* ══════════════════════════════════════
   STATS STRIP
══════════════════════════════════════ */
.sectors-stats-area {
    background: #f7f9fb;
    padding: 5rem 0;
    border-top: 1px solid #e2e8ed;
    border-bottom: 1px solid #e2e8ed;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 0.875rem;
    box-shadow: 0 2px 16px rgba(13,31,45,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(13,31,45,0.1);
}
.stat-card .stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: #1B4F67;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Syne', sans-serif;
}
.stat-card .stat-num span {
    font-size: 1.75rem;
}
.stat-card .stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.4;
}

/* ══════════════════════════════════════
   MOBILE TABS
══════════════════════════════════════ */
.sectors-tabs-mobile {
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
    padding: 0.25rem 0 1.25rem;
    margin-bottom: 0;
}
.sectors-tabs-mobile::-webkit-scrollbar { display: none; }
.sector-tab-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    background: #f7f9fb;
    border: 1.5px solid #e2e8ed;
    border-radius: 2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.sector-tab-mobile.active {
    background: #1B4F67;
    border-color: #1B4F67;
    color: #fff;
}

/* ══════════════════════════════════════
   SECTORES — RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1200px) {
    .sectors-hero h1 { font-size: 3rem; }
    .sector-panel-grid { grid-template-columns: 1fr 38%; gap: 2rem; }
    .sector-headline { font-size: 1.75rem; }
}
@media (max-width: 1024px) {
    .sectors-hero h1 { font-size: 2.5rem; }
    .sectors-layout { flex-direction: column; border: none; box-shadow: none; border-radius: 0; }
    .sectors-tabs { display: none; }
    .sectors-content { width: 100%; border: 1px solid #e2e8ed; border-radius: 1rem; overflow: hidden; }
    .sectors-tabs-mobile { display: flex; }
    .sector-panel { padding: 2rem; }
    .sector-panel-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .sector-panel-image { order: -1; }
    .sector-panel-image .sector-img-frame img { height: 260px; }
}
@media (max-width: 768px) {
    .sectors-hero { padding: 7rem 0 4rem; }
    .sectors-hero h1 { font-size: 2.1rem; }
    .sectors-hero .hero-desc { font-size: 1rem; }
    .sectors-area { padding: 5rem 0 4rem; }
    .sectors-header .section-title { font-size: 2.1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .sector-headline { font-size: 1.5rem; }
    .sector-panel-image .sector-img-frame img { height: 200px; }
}


/* ═══ CONSULTORIA ═══ */

/* ══════════════════════════════════════
   1. HERO
══════════════════════════════════════ */
.consult-hero {
    position: relative; overflow: hidden;
    background: #0d1f2d;
    padding: 10rem 0 7rem;
    color: #fff;
}
.consult-hero .bg-shape-l {
    position: absolute; left: -100px; top: -40px;
    opacity: 0.14; width: 460px;
}
.consult-hero .bg-shape-r {
    position: absolute; right: -80px; bottom: -50px;
    opacity: 0.11; width: 420px;
}
.consult-hero .hero-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr 42%;
    gap: 4rem;
    align-items: center;
}
.consult-hero .hero-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    padding: .35rem 1.1rem; border-radius: 2rem;
    font-size: .78rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.consult-hero h1 {
    font-size: 3.5rem; font-weight: 800;
    line-height: 1.1; letter-spacing: -.025em;
    margin: 0 0 1.25rem;
}
.consult-hero .hero-desc {
    font-size: 1.1rem; line-height: 1.75;
    opacity: .85; max-width: 540px; margin-bottom: 2.25rem;
}
.consult-hero .hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.consult-hero .btn-white {
    padding: .85rem 2.25rem; background: #fff; color: #1B4F67;
    border-radius: .5rem; font-weight: 700; font-size: 1rem;
    text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; gap: .5rem;
}
.consult-hero .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.consult-hero .btn-outline {
    padding: .85rem 2.25rem;
    border: 2px solid rgba(255,255,255,.6);
    color: #fff; border-radius: .5rem; font-weight: 600;
    font-size: 1rem; text-decoration: none; transition: all .2s;
    display: inline-flex; align-items: center; gap: .5rem;
}
.consult-hero .btn-outline:hover { background: rgba(255,255,255,.12); }

/* hero right: trust box */
.hero-trust-box {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(12px);
    border-radius: 1.25rem;
    padding: 2.5rem;
}
.hero-trust-box h3 {
    font-size: 1.1rem; font-weight: 700;
    margin: 0 0 1.5rem; color: #fff;
    opacity: .9;
}
.trust-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.trust-item:last-child { border-bottom: none; padding-bottom: 0; }
.trust-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: rgba(255,255,255,.12);
    border-radius: .625rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #fff;
}
.trust-item h4 { font-size: .9rem; font-weight: 700; color: #fff; margin: 0 0 .2rem; }
.trust-item p  { font-size: .8125rem; color: rgba(255,255,255,.65); margin: 0; line-height: 1.5; }

/* ══════════════════════════════════════
   2. PROPUESTA — IBM split con verbos
══════════════════════════════════════ */
.consult-prop {
    padding: 7rem 0;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}
.prop-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
}
.prop-left-label {
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: #1B4F67; margin-bottom: 1rem;
}
.prop-left-label::before {
    content: ''; display: block;
    width: 2rem; height: 2px;
    background: #1B4F67; border-radius: 2px; margin-bottom: .75rem;
}
.prop-title {
    font-size: 2.5rem; font-weight: 800;
    line-height: 1.18; letter-spacing: -.022em;
    color: #0d1f2d; margin: 0;
}
.prop-right p {
    font-size: 1.125rem; line-height: 1.85;
    color: #4a5568; margin: 0 0 1.5rem;
}
.prop-verb {
    color: #1B4F67; font-weight: 700;
    border-bottom: 2px solid #1B4F67;
    padding-bottom: .05em;
}
.prop-right .prop-sub {
    font-size: 1rem; line-height: 1.75;
    color: #6c757d; margin: 0;
}
.prop-right .prop-divider {
    width: 3rem; height: 2px;
    background: #e2e8ed; margin: 1.5rem 0;
}

/* ══════════════════════════════════════
   3. SERVICIOS — Magic zoom cards
══════════════════════════════════════ */
.consult-services {
    padding: 7rem 0;
    background: #f7f9fb;
}
.services-header { margin-bottom: 3.5rem; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* Card base */
.service-card {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8ed;
    display: flex; flex-direction: column;
    transition: border-color .5s, box-shadow .5s;
    cursor: pointer;
}
.service-card:hover {
    border-color: transparent;
    box-shadow: 0 24px 64px rgba(27,79,103,.28);
}

/* Magic zoom */
.sc-magic-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #1B4F67 0%, #004AAB 100%);
    clip-path: circle(0% at 50% 110%);
    transition: clip-path .72s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
}
.service-card:hover .sc-magic-bg {
    clip-path: circle(160% at 50% 110%);
}

.service-card-img-wrap {
    position: relative;
    height: 190px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-card-body {
    padding: 1.5rem; flex: 1;
    display: flex; flex-direction: column;
    position: relative;
}

.service-card-img {
    width: 100% !important;
    height: 190px !important;
    object-fit: cover !important;
    display: block;
    transition: transform .72s cubic-bezier(.22,.61,.36,1);
}
.service-card:hover .service-card-img {
    transform: scale(1.15);
}

.service-card-tag {
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: #1B4F67; margin-bottom: .75rem;
    transition: color .35s;
}
.service-card:hover .service-card-tag { color: rgba(255,255,255,.72); }

.service-card-title {
    font-size: 1.0625rem; font-weight: 700;
    color: #0d1f2d; margin: 0 0 .75rem; line-height: 1.3;
    transition: color .35s;
}
.service-card:hover .service-card-title { color: #fff; }

.service-card-desc {
    font-size: .875rem; line-height: 1.65;
    color: #6c757d; margin: 0; flex: 1;
    transition: color .35s;
}
.service-card:hover .service-card-desc { color: rgba(255,255,255,.82); }

.service-card-cta {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-top: 1.25rem; font-size: .875rem; font-weight: 600;
    color: #1B4F67; text-decoration: none;
    transition: color .35s, gap .25s;
}
.service-card:hover .service-card-cta { color: #fff; gap: .7rem; }

/* ══════════════════════════════════════
   4. PROCESO — 4 pasos estilo IBM
══════════════════════════════════════ */
.consult-process {
    padding: 7rem 0;
    background: #fff;
}
.process-header { margin-bottom: 4rem; }
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 2.25rem; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(to right, #1B4F67, #004AAB);
    z-index: 0;
}
.process-step {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    padding: 0 1.5rem;
    position: relative; z-index: 1;
}
.step-circle {
    width: 4.5rem; height: 4.5rem;
    background: #fff;
    border: 2px solid #1B4F67;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #1B4F67;
    margin-bottom: 1.5rem;
    transition: all .3s;
    box-shadow: 0 0 0 6px #f7f9fb;
}
.process-step:hover .step-circle {
    background: #1B4F67; color: #fff;
    transform: scale(1.08);
}
.step-num {
    position: absolute; top: -.5rem; right: calc(50% - 2.5rem);
    width: 1.4rem; height: 1.4rem;
    background: #1B4F67; color: #fff;
    border-radius: 50%;
    font-size: .65rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.step-title {
    font-size: 1rem; font-weight: 700;
    color: #0d1f2d; margin: 0 0 .6rem;
}
.step-desc {
    font-size: .875rem; line-height: 1.65;
    color: #6c757d; margin: 0;
}

/* ══════════════════════════════════════
   5. PARTNERS
══════════════════════════════════════ */
.consult-partners {
    padding: 5rem 0;
    background: #f7f9fb;
    border-top: 1px solid #e2e8ed;
    border-bottom: 1px solid #e2e8ed;
}
.partners-label {
    text-align: center;
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: #adb5bd; margin-bottom: 2.5rem;
}
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.partners-grid img {
    height: 36px; width: auto;
    opacity: .5; filter: grayscale(100%);
    transition: all .3s;
}
.partners-grid img:hover { opacity: 1; filter: grayscale(0%); }

/* ══════════════════════════════════════
   6. AGENDA — dark CTA final
══════════════════════════════════════ */
.consult-cta {
    padding: 7rem 0;
    background: linear-gradient(140deg, #0d1f2d 0%, #1B4F67 60%, #004AAB 100%);
    color: #fff;
    position: relative; overflow: hidden;
}
.consult-cta .cta-bg-shape {
    position: absolute; right: -80px; top: -60px;
    opacity: .1; width: 480px;
}
.consult-cta .cta-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}
.consult-cta .cta-label {
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    opacity: .65; margin-bottom: .75rem;
}
.consult-cta h2 {
    font-size: 2.75rem; font-weight: 800;
    line-height: 1.15; letter-spacing: -.022em;
    margin: 0 0 1rem;
}
.consult-cta p {
    font-size: 1.0625rem; opacity: .8;
    line-height: 1.7; max-width: 520px; margin: 0;
}
.consult-cta .cta-actions {
    display: flex; flex-direction: column; gap: 1rem;
    align-items: flex-end; white-space: nowrap;
}
.btn-cta-primary {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: 1rem 2.25rem;
    background: #fff; color: #1B4F67;
    border-radius: .5rem; font-weight: 700; font-size: 1rem;
    text-decoration: none; transition: all .2s;
}
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,.25); }
.btn-cta-secondary {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .9375rem; font-weight: 600;
    color: rgba(255,255,255,.8);
    text-decoration: none; transition: color .2s;
}
.btn-cta-secondary:hover { color: #fff; }

/* Form inline en hero */
.hero-form {
    margin-top: 2.5rem;
    display: flex; gap: .75rem; max-width: 440px;
}
.hero-form input {
    flex: 1;
    padding: .8rem 1.25rem;
    border-radius: .5rem;
    border: 1.5px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.1);
    color: #fff; font-size: .9375rem;
    font-family: inherit;
    backdrop-filter: blur(6px);
    transition: border-color .2s;
}
.hero-form input::placeholder { color: rgba(255,255,255,.5); }
.hero-form input:focus { outline: none; border-color: rgba(255,255,255,.7); }
.hero-form button {
    padding: .8rem 1.5rem;
    background: #fff; color: #1B4F67;
    border: none; border-radius: .5rem;
    font-weight: 700; font-size: .9375rem;
    font-family: inherit; cursor: pointer;
    white-space: nowrap; transition: all .2s;
}
.hero-form button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ══════════════════════════════════════
   CONSULTORIA — RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1200px) {
    .consult-hero .hero-inner { grid-template-columns: 1fr; }
    .hero-trust-box { display: none; }
    .consult-hero h1 { font-size: 3rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .prop-grid { grid-template-columns: 1fr; gap: 3rem; }
    .prop-title { font-size: 2rem; }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .process-steps::before { display: none; }
    .consult-cta .cta-inner { grid-template-columns: 1fr; }
    .consult-cta .cta-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .consult-hero { padding: 7rem 0 4rem; }
    .consult-hero h1 { font-size: 2.25rem; }
    .hero-form { flex-direction: column; max-width: 100%; }
    .services-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .consult-cta h2 { font-size: 2rem; }
}
