  :root {
    /* Paleta luminosa farma — TEXTOS SUAVIZADOS */
    --teal: #1FA6A0;
    --teal-dark: #0F8A85;
    --teal-light: #6CC4BC;
    --teal-soft: #E6F5F4;

    /* Tonos de texto: SUAVIZADOS aún más para look farma luminoso */
    --ink: #3D4D5C;             /* texto principal — gris suave */
    --ink-soft: #5C6D7C;        /* texto secundario */
    --slate: #7E8B97;           /* texto terciario */
    --slate-light: #B0BAC4;     /* placeholder */

    /* Tonos para fondos oscuros (footer, CTA) — también suavizados */
    --deep: #1A2832;

    --paper: #FBFBF9;
    --paper-2: #F4F4F0;
    --line: #E5E5DF;
    --white: #FFFFFF;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  .container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

  /* ─────────────── HEADER ─────────────── */
  .topbar {
    background: var(--deep);
    color: rgba(255,255,255,0.7);
    font-size: 12.5px;
    padding: 9px 0;
    letter-spacing: 0.02em;
  }
  .topbar .container { display: flex; justify-content: space-between; align-items: center; }
  .topbar .info { display: flex; gap: 28px; align-items: center; }
  .topbar .info span { display: flex; align-items: center; gap: 8px; }
  .topbar .info svg { width: 13px; height: 13px; opacity: 0.6; }
  .topbar a { color: inherit; text-decoration: none; transition: color 0.2s; }
  .topbar a:hover { color: var(--teal-light); }
  .topbar .lang { display: flex; gap: 14px; font-family: 'Geist Mono', monospace; font-size: 11.5px; }
  .topbar .lang span { cursor: pointer; transition: color 0.2s; }
  .topbar .lang .active { color: var(--teal-light); }

  header.main {
    background: rgba(251,251,249,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s;
  }
  header.main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }
  .logo img {
    height: 92px;
    width: auto;
    display: block;
  }

  nav ul {
    list-style: none;
    display: flex;
    gap: 38px;
    align-items: center;
  }
  nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding: 6px 0;
  }
  nav a:not(.cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 100%;
    height: 1px;
    background: var(--teal);
    transition: right 0.3s;
  }
  nav a:not(.cta):hover { color: var(--teal); }
  nav a:not(.cta):hover::after { right: 0; }

  nav a.cta {
    background: var(--ink);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  nav a.cta:hover { background: var(--teal); }
  nav a.cta svg { width: 14px; height: 14px; transition: transform 0.3s; }
  nav a.cta:hover svg { transform: translateX(3px); }

  /* ─────────────── HERO con video de fondo ─────────────── */
  .hero {
    position: relative;
    min-height: auto;
    background: var(--paper);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 48px 0 56px;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* OVERLAY MUCHO MÁS SUTIL — solo aclara la zona izquierda donde está el texto.
     La mitad derecha queda totalmente limpia para que se vea el video bien */
  .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(95deg,
        rgba(251,251,249,0.94) 0%,
        rgba(251,251,249,0.78) 30%,
        rgba(251,251,249,0.25) 65%,
        rgba(251,251,249,0) 100%
      );
  }

  .hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.35;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 70% 50%, black 30%, transparent 75%);
  }

  .hero .container { position: relative; z-index: 3; width: 100%; }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Geist Mono', monospace;
    font-size: 11.5px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 36px;
    padding: 9px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 100px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
    opacity: 0;
    animation: fadeUp 0.8s 0.1s forwards;
  }
  .hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--teal);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
  }

  /* TÍTULO HERO — fallbacks system robustos, peso normal */
  .hero h1 {
    font-family: 'Bricolage Grotesque', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(42px, 6vw, 84px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 32px;
    max-width: 1080px;
    color: var(--ink);
    opacity: 0;
    animation: fadeUp 0.9s 0.25s forwards;
  }
  /* ACENTO — solo cambia color. NADA más. Misma fuente, mismo peso. */
  .hero h1 .accent {
    color: var(--teal);
  }
  .hero p.lead {
    font-size: 19.5px;
    color: var(--ink-soft);
    max-width: 580px;
    margin-bottom: 48px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeUp 0.9s 0.4s forwards;
  }
  .hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    opacity: 0;
    animation: fadeUp 0.9s 0.55s forwards;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 30px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
  }
  .btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
  .btn-primary {
    background: var(--ink);
    color: white;
  }
  .btn-primary:hover {
    background: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(31,166,160,0.3);
  }
  .btn-primary:hover svg { transform: translateX(4px); }
  .btn-ghost {
    background: rgba(255,255,255,0.7);
    color: var(--ink);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .btn-ghost:hover {
    background: white;
    border-color: var(--teal);
    color: var(--teal);
  }

  /* Tarjeta flotante en el hero */
  .hero-card {
    position: absolute;
    right: 40px;
    bottom: 80px;
    z-index: 4;
    background: white;
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(14,20,24,0.08), 0 1px 0 rgba(0,0,0,0.04);
    border: 1px solid var(--line);
    max-width: 320px;
    opacity: 0;
    animation: fadeUp 1s 0.8s forwards;
  }
  .hero-card-label {
    font-family: 'Geist Mono', monospace;
    font-size: 10.5px;
    color: var(--slate);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .hero-card-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
  }
  .hero-card-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 6px;
  }
  .hero-card-meta {
    font-size: 13px;
    color: var(--slate);
  }

  /* ─────────────── MARQUEE ─────────────── */
  .marquee-section {
    background: white;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 36px 0;
    overflow: hidden;
  }
  .marquee-label {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--slate);
    text-align: center;
    margin-bottom: 24px;
  }
  .marquee {
    display: flex;
    gap: 80px;
    animation: scroll 40s linear infinite;
    width: max-content;
  }
  .marquee-item {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--slate-light);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 80px;
    transition: color 0.3s;
  }
  .marquee-item:hover { color: var(--teal); }
  .marquee-item::after {
    content: '◆';
    color: var(--teal);
    font-size: 12px;
    opacity: 0.6;
  }
  @keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ─────────────── SECTIONS BASE ─────────────── */
  .section { padding: 140px 0; position: relative; }
  .section-head { max-width: 800px; margin-bottom: 80px; }
  .eyebrow {
    font-family: 'Geist Mono', monospace;
    font-size: 11.5px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .eyebrow::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--teal);
  }
  /* TÍTULOS DE SECCIÓN — con fallbacks system. Acento solo color */
  .section-head h2 {
    font-family: 'Bricolage Grotesque', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 24px;
  }
  .section-head h2 .accent {
    color: var(--teal);
  }
  .section-head p {
    font-size: 18.5px;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 640px;
  }

  /* ─────────────── SECTORES ─────────────── */
  .sectores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .sector-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--paper-2);
  }
  .sector-card .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .sector-card:hover .bg { transform: scale(1.06); }
  .sector-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18,32,41,0) 30%, rgba(18,32,41,0.85) 100%);
    transition: background 0.4s;
  }
  .sector-card:hover::after {
    background: linear-gradient(180deg, rgba(31,166,160,0.1) 0%, rgba(18,32,41,0.9) 100%);
  }
  .sector-card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
    color: white;
  }
  .sector-card .num {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
  }
  .sector-card h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
  }
  .sector-card .desc {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s;
  }
  .sector-card:hover .desc {
    max-height: 100px;
    opacity: 1;
    margin-top: 8px;
  }
  .sector-card .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--teal);
    color: white;
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    padding: 6px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    z-index: 3;
  }
  .sector-card .arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    z-index: 3;
  }
  .sector-card:hover .arrow {
    background: var(--teal);
    border-color: var(--teal);
    transform: rotate(-45deg);
  }

  /* ─────────────── SOLUCIONES SPLIT ─────────────── */
  .soluciones {
    background: white;
    border-top: 1px solid var(--line);
  }
  .sol-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
  }
  .sol-block:last-child { margin-bottom: 0; }
  .sol-block.reverse { direction: rtl; }
  .sol-block.reverse > * { direction: ltr; }

  .sol-visual {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 16px;
    overflow: hidden;
    background: var(--paper-2);
  }
  .sol-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.2,0.8,0.2,1);
  }
  .sol-visual:hover img { transform: scale(1.04); }
  .sol-visual .tag {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 100px;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--teal-dark);
    text-transform: uppercase;
  }
  /* Número de bloque — sin Fraunces, ahora con la sans en peso muy ligero */
  .sol-content .num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 200;
    font-size: 92px;
    color: var(--teal);
    line-height: 0.9;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
  }
  .sol-content h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--ink);
  }
  .sol-content > p {
    font-size: 17px;
    color: var(--ink-soft);
    margin-bottom: 32px;
    line-height: 1.65;
  }
  .sol-list {
    list-style: none;
    border-top: 1px solid var(--line);
  }
  .sol-list li {
    padding: 18px 0;
    font-size: 15.5px;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    transition: padding-left 0.3s, color 0.3s;
  }
  .sol-list li:hover { padding-left: 8px; color: var(--teal-dark); }
  .sol-list li::before {
    content: '→';
    color: var(--teal);
    font-size: 14px;
    flex-shrink: 0;
  }

  /* ─────────────── STATS ─────────────── */
  .stats-section {
    background: var(--paper-2);
    padding: 100px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .stat-item {
    padding: 0 20px;
    border-right: 1px solid var(--line);
    text-align: left;
  }
  .stat-item:first-child { padding-left: 0; }
  .stat-item:last-child { border-right: none; padding-right: 0; }

  /* Stats — sin Fraunces italic, ahora con sans pesada en gris-carbón */
  .stat-number {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 300;
    font-size: clamp(56px, 6.5vw, 88px);
    color: var(--ink);
    line-height: 0.95;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
    gap: 4px;
  }
  .stat-number .suffix {
    font-size: 0.5em;
    color: var(--teal);
    font-weight: 400;
  }
  .stat-label {
    font-size: 14.5px;
    color: var(--slate);
    line-height: 1.5;
    max-width: 220px;
  }

  /* ─────────────── PROCESO ─────────────── */
  .proceso {
    background: var(--paper);
    overflow: hidden;
  }
  .proceso-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
  }
  .proceso-track::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(to right, var(--teal) 0%, var(--line) 100%);
    z-index: 0;
  }
  .step {
    position: relative;
    z-index: 1;
  }
  /* Número del paso — sin Fraunces */
  .step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 28px;
    transition: all 0.4s;
  }
  .step:hover .step-num {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(31,166,160,0.3);
  }
  .step h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .step p {
    color: var(--slate);
    font-size: 14.5px;
    line-height: 1.6;
  }

  /* ─────────────── CTA ─────────────── */
  .cta-section { padding: 140px 0; background: var(--paper); }
  .cta-box {
    background: var(--deep);
    border-radius: 24px;
    padding: 96px 72px;
    color: white;
    position: relative;
    overflow: hidden;
  }
  .cta-box::before {
    content: '';
    position: absolute;
    top: -100%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(31,166,160,0.25) 0%, transparent 60%);
    border-radius: 50%;
  }
  .cta-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
  }
  .cta-box-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: end;
    gap: 64px;
  }
  .cta-box .eyebrow { color: var(--teal-light); }
  .cta-box .eyebrow::before { background: var(--teal-light); }
  .cta-box h2 {
    font-family: 'Bricolage Grotesque', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(32px, 4.2vw, 56px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 0;
  }
  .cta-box h2 .accent {
    color: var(--teal-light);
  }
  .cta-actions { display: flex; flex-direction: column; gap: 16px; }
  .cta-box .btn-primary {
    background: white;
    color: var(--ink);
    justify-content: center;
  }
  .cta-box .btn-primary:hover { background: var(--teal); color: white; }
  .cta-box .btn-ghost {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.2);
    justify-content: center;
  }
  .cta-box .btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.05); }

  /* ─────────────── FOOTER ─────────────── */
  footer {
    background: white;
    color: var(--ink-soft);
    padding: 100px 0 36px;
    border-top: 1px solid var(--line);
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--line);
  }
  footer h5 {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--slate);
    margin-bottom: 28px;
    font-weight: 500;
  }
  footer ul { list-style: none; }
  footer ul li { padding: 7px 0; }
  footer ul a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.2s;
  }
  footer ul a:hover { color: var(--teal); }
  .footer-about p {
    color: var(--slate);
    font-size: 14.5px;
    line-height: 1.7;
    max-width: 360px;
    margin-top: 24px;
  }
  .footer-about { text-align: center; }
  .footer-about .logo { display: inline-flex; justify-content: center; }
  .footer-about p { margin-left: auto; margin-right: auto; }
  .footer-about img {
    height: 124px;
    width: auto;
    display: block;
  }
  .footer-bottom {
    padding-top: 36px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--slate);
    align-items: center;
  }
  .footer-bottom a { color: inherit; text-decoration: none; transition: color 0.2s; }
  .footer-bottom a:hover { color: var(--teal); }

  /* ─────────────── RESPONSIVE ─────────────── */
  @media (max-width: 980px) {
    .sectores-grid { grid-template-columns: repeat(2, 1fr); }
    .sol-block { grid-template-columns: 1fr; gap: 40px; }
    .sol-block.reverse { direction: ltr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
    .stat-item { border-right: none; padding: 0; }
    .proceso-track { grid-template-columns: 1fr 1fr; }
    .proceso-track::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-box-inner { grid-template-columns: 1fr; }
    .cta-box { padding: 56px 36px; }
    header .nav-toggle { display: flex; }
    nav ul {
      position: fixed;
      top: 0; right: 0;
      height: 100dvh;
      width: min(82vw, 320px);
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
      background: #fff;
      padding: 96px 28px 36px;
      transform: translateX(100%);
      transition: transform 0.32s ease;
      box-shadow: -14px 0 44px rgba(0,0,0,0.14);
      z-index: 1001;
      overflow-y: auto;
    }
    nav ul.open { transform: translateX(0); }
    nav li { width: 100%; }
    nav a:not(.cta) { display: block; width: 100%; padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
    nav a.cta { margin-top: 18px; width: 100%; justify-content: center; }
    .nav-lang { margin: 16px 0 0; padding: 16px 0 0; border-left: none; border-top: 1px solid var(--line); }
    body.nav-open { overflow: hidden; }
    .topbar .info { gap: 12px; font-size: 11px; }
    .topbar .info span:nth-child(2),
    .topbar .info span:nth-child(3) { display: none; }
    .hero-card { display: none; }
    .section { padding: 90px 0; }
    .section-head { margin-bottom: 56px; padding-right: 16px; }
    .logo img { height: 64px; }
  }

  /* Reveal animations on scroll */
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s, transform 0.9s; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* Aviso si se abre desde ZIP */
  .zip-warning {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    background: #FF6B35;
    color: white;
    padding: 14px 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  }
  .zip-warning strong { font-weight: 600; }


/* ═══════════════════════════════════════════════════════════════
   ESTILOS PARA PÁGINAS INTERNAS (empresa, sectores, contacto, etc.)
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────── Hero pequeño de páginas internas (mejorado) ─────────────── */
.page-hero {
  position: relative;
  background: var(--paper);
  padding: 52px 0 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: clamp(520px, 46vh, 640px);
  display: flex;
  align-items: center;
  /* Imagen de ambiente opcional: cada página define --hero-img inline */
  --hero-img: none;
}

/* Capa 1: cuadrícula sutil de fondo (más marcada que antes) */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.7;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 75% 50%, black 0%, transparent 80%);
  z-index: 1;
}

/* Capa 2: imagen de ambiente a la derecha + círculos teal + degradado de fundido */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* círculo teal grande arriba-derecha (más visible que antes) */
    radial-gradient(circle 750px at 95% -150px, rgba(31,166,160,0.22) 0%, rgba(31,166,160,0.08) 35%, transparent 60%),
    /* círculo teal pequeño abajo-izquierda */
    radial-gradient(circle 450px at -50px 105%, rgba(31,166,160,0.10) 0%, transparent 55%),
    /* degradado que fundee la imagen lateral con el texto */
    linear-gradient(95deg,
      var(--paper) 0%,
      rgba(251,251,249,0.96) 30%,
      rgba(251,251,249,0.70) 50%,
      rgba(251,251,249,0.30) 75%,
      rgba(251,251,249,0.10) 100%
    ),
    /* la imagen de ambiente (si está definida) */
    var(--hero-img) right center / cover no-repeat;
  pointer-events: none;
  z-index: 2;
}

/* Decoraciones flotantes en el page-hero (líneas finas) */
.page-hero .deco-line {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal));
  z-index: 3;
}
.page-hero .deco-dots {
  display: none;
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow:
    0 -32px 0 -2px var(--teal-light),
    0 -64px 0 -3px var(--teal-light),
    0 32px 0 -2px var(--teal-light),
    0 64px 0 -3px var(--teal-light);
  opacity: 0.55;
  z-index: 3;
}

.page-hero .container {
  position: relative;
  z-index: 4;
  max-width: 900px;
  margin-right: auto;
  margin-left: 0;
  padding-left: 32px;
  padding-right: 32px;
}
@media (min-width: 1281px) {
  .page-hero .container {
    margin-left: max(0px, calc((100vw - 1280px) / 2));
  }
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--slate); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { color: var(--slate-light); }
.breadcrumb .current { color: var(--teal); }

.page-hero h1 {
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 900px;
}
.page-hero h1 .accent { color: var(--teal); }
.page-hero p.subtitle {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.55;
}

/* ─── Bloque de texto a 2 columnas con imagen lateral ─── */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}
.split-block:last-child { margin-bottom: 0; }
.split-block.reverse { direction: rtl; }
.split-block.reverse > * { direction: ltr; }
.split-block .visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
}
.split-block .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.2,0.8,0.2,1);
}
.split-block .visual:hover img { transform: scale(1.04); }
.split-block .text h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ink);
}
.split-block .text > p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.65;
}

/* ─── Pilares (3 ó 4 columnas con icono) ─── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar {
  background: white;
  border: 1px solid var(--line);
  padding: 40px 32px;
  border-radius: 16px;
  transition: all 0.3s;
}
.pillar:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(14,20,24,0.06);
}
.pillar-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--teal-dark);
  transition: all 0.3s;
}
.pillar:hover .pillar-icon {
  background: var(--teal);
  color: white;
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pillar p {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── Sector detalle (en sectores.html) ─── */
.sector-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  padding: 28px 0 72px;
  border-bottom: 1px solid var(--line);
}
.sector-detail:last-child { border-bottom: none; }
.sector-detail.reverse { direction: rtl; }
.sector-detail.reverse > * { direction: ltr; }
.sector-detail .visual-stack {
  position: sticky;
  top: 160px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sector-detail .visual-stack img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.sector-detail .info .num {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 200;
  font-size: 92px;
  color: var(--teal);
  line-height: 0.9;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}
.sector-detail .info h2 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
}
.sector-detail .info > p {
  font-size: 17.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 32px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.feature {
  background: var(--paper-2);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.feature h5 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature h5::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
.feature p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.55;
}

/* ─── Sectores tabs en sectores.html ─── */
.sector-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;             /* Firefox: oculta la scrollbar */
  -ms-overflow-style: none;          /* IE/Edge: oculta la scrollbar */
}
.sector-tabs::-webkit-scrollbar { display: none; }  /* Chrome/Safari: oculta la scrollbar */
.sector-tab {
  padding: 11px 28px;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all 0.2s;
}
.sector-tab:hover { color: var(--ink); }
.sector-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* ─── Equipo (cards con foto + texto) ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(14,20,24,0.08); }
.team-photo {
  aspect-ratio: 4/5;
  background: var(--paper-2);
  background-size: cover;
  background-position: center top;
  position: relative;
}
.team-info { padding: 20px 22px 24px; }
.team-info h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.team-info .role {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
}

/* ─── Certificaciones (grid de logos) ─── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: white;
}
.cert {
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  transition: background 0.2s;
}
.cert:hover { background: var(--paper-2); }
.cert:nth-child(6n) { border-right: none; }
.cert-name {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.cert-desc {
  font-size: 11.5px;
  color: var(--slate);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   FORMULARIO DE CONTACTO
   ═══════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group label .req { color: var(--teal); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition: all 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 3px rgba(31,166,160,0.1);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
  font-family: 'Geist', sans-serif;
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.5;
}
.form-checkbox input { margin-top: 3px; cursor: pointer; }
.form-checkbox a { color: var(--teal); text-decoration: none; }
.form-checkbox a:hover { text-decoration: underline; }
.form-submit {
  width: 100%;
  padding: 18px 32px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.form-submit:hover {
  background: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(31,166,160,0.3);
}
.form-submit svg { width: 16px; height: 16px; transition: transform 0.3s; }
.form-submit:hover svg { transform: translateX(4px); }

/* ─── Lateral de contacto con datos ─── */
.contact-info { padding-left: 8px; }
.contact-info h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.contact-info > p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.contact-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-block:last-child { border-bottom: none; }
.contact-block-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal-dark);
}
.contact-block-icon svg { width: 20px; height: 20px; }
.contact-block-content h5 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
  font-weight: 500;
}
.contact-block-content p,
.contact-block-content a {
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.5;
  text-decoration: none;
  display: block;
}
.contact-block-content a:hover { color: var(--teal); }

/* ─── Mapa ─── */
.map-section {
  margin-top: 120px;
  padding-top: 0;
}
.map-container {
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ─── Page-hero con imagen ─── */
.page-hero.with-image {
  padding: 0;
  border-bottom: none;
}
.page-hero.with-image .hero-image {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.page-hero.with-image .hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(251,251,249,0.3) 30%, transparent 100%);
}
.page-hero.with-image .container {
  padding-top: 120px;
  padding-bottom: 80px;
}

/* ─── Responsive para internas ─── */
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr; gap: 16px; }
  .split-block { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
  .split-block.reverse { direction: ltr; }
  .sector-detail { grid-template-columns: 1fr; gap: 32px; padding: 60px 0; }
  .sector-detail.reverse { direction: ltr; }
  .sector-detail .visual-stack { position: relative; top: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .cert:nth-child(6n) { border-right: 1px solid var(--line); }
  .cert:nth-child(2n) { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .page-hero { padding: 80px 0 56px; }
  .page-hero.with-image .hero-image { display: none; }
  .map-container { height: 320px; }
}

/* ═══════════════════════════════════════════════════════════════
   SOLUCIONES — Cards de servicios con icono
   ═══════════════════════════════════════════════════════════════ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(14,20,24,0.06);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width 0.4s;
}
.service-card:hover::before { width: 100%; }
.service-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  margin-bottom: 24px;
  transition: all 0.3s;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card:hover .service-icon { background: var(--teal); color: white; }
.service-card h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 18.5px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════
   PROYECTOS — Filtros + grid de casos
   ═══════════════════════════════════════════════════════════════ */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.filter-count {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  margin-left: 8px;
  opacity: 0.6;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(14,20,24,0.08);
  border-color: var(--teal-light);
}
.project-image video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.project-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
}
.project-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 7px 14px;
  border-radius: 100px;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--teal-dark);
  text-transform: uppercase;
  z-index: 2;
}
.project-content { padding: 24px 26px 28px; }
.project-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 12px;
}
.project-content h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.project-content p {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.project-link {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}
.project-card:hover .project-link { gap: 12px; }

/* ═══════════════════════════════════════════════════════════════
   ACTUALIDAD — Blog grid
   ═══════════════════════════════════════════════════════════════ */
.blog-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
.blog-featured .visual {
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
}
.blog-featured .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s;
}
.blog-featured:hover .visual img { transform: scale(1.04); }
.blog-featured .badge-featured {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.blog-featured h2 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
}
.blog-featured > div > p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.blog-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.blog-meta .dot { color: var(--slate-light); }
.blog-meta .cat { color: var(--teal); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
.blog-card .visual {
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.blog-card .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.blog-card:hover .visual img { transform: scale(1.05); }
.blog-card h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.blog-card:hover h3 { color: var(--teal); }
.blog-card p {
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════
   TRABAJA CON NOSOTROS — Vacantes
   ═══════════════════════════════════════════════════════════════ */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.job-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
  transition: all 0.3s;
  cursor: pointer;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 32px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.job-card:hover {
  border-color: var(--teal);
  background: linear-gradient(95deg, rgba(31,166,160,0.03) 0%, transparent 60%);
  transform: translateX(4px);
}
.job-title h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.job-title .job-dept {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.job-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.job-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--slate);
  flex-shrink: 0;
}
.job-arrow {
  width: 44px;
  height: 44px;
  background: var(--paper-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 0.3s;
}
.job-card:hover .job-arrow {
  background: var(--teal);
  color: white;
  transform: rotate(-45deg);
}
.job-arrow svg { width: 16px; height: 16px; }

/* Galería de "Vida en la empresa" */
.life-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 600px;
}
.life-gallery > div {
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
  cursor: pointer;
}
.life-gallery > div:hover { transform: scale(1.02); }
.life-gallery > div:nth-child(1) {
  grid-row: 1 / span 2;
}

@media (max-width: 980px) {
  .service-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .blog-featured { grid-template-columns: 1fr; gap: 32px; }
  .blog-grid { grid-template-columns: 1fr; gap: 40px; }
  .job-card { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .job-arrow { display: none; }
  .life-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; height: 500px; }
  .life-gallery > div:nth-child(1) { grid-row: auto; grid-column: 1 / span 2; }
}


/* ===== Hero interno con vídeo (variante .has-video) ===== */
.page-hero.has-video::after { display: none; }
.page-hero.has-video::before { display: none; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg,
    rgba(251,251,249,0.90) 0%,
    rgba(251,251,249,0.72) 25%,
    rgba(251,251,249,0.40) 50%,
    rgba(251,251,249,0.12) 75%,
    rgba(251,251,249,0.02) 100%);
}
.page-hero.has-video .container { position: relative; z-index: 3; }
/* vídeo dentro de bloques split, igual que las imágenes */
.split-block .visual video { width: 100%; height: 100%; object-fit: cover; }


/* ===== Hero index: fila de texto + botón en dos columnas ===== */
.hero-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 56px; }
.hero-row .lead { margin-bottom: 0; }
.hero-row .hero-cta { flex-shrink: 0; }
@media (max-width: 760px){
  .hero-row { grid-template-columns: 1fr; gap: 24px; }
  .hero-row .hero-cta { justify-content: flex-start; }
}


/* ===== Anclas de sectores: dejar hueco bajo cabecera + pestañas ===== */
#farmaceutico, #cosmetico, #quimico, #alimentario { scroll-margin-top: 150px; }


/* ===== Selector de idioma dentro del menú ===== */
.nav-lang { display:flex; align-items:center; gap:10px; margin-left:6px; padding-left:18px; border-left:1px solid var(--line); }
.nav-lang span { cursor:pointer; line-height:0; opacity:.4; transition:opacity .2s, transform .2s; display:block; }
.nav-lang span img { width:26px; height:18px; display:block; border-radius:3px; box-shadow:0 0 0 1px rgba(0,0,0,.10); }
.nav-lang span:hover { opacity:1; transform:translateY(-1px); }
.nav-lang .active { opacity:1; }


/* ===== Página 25 años ===== */
.anniv-photo { border-radius:16px; overflow:hidden; margin-top:8px; }
.anniv-photo img { width:100%; display:block; }
.ba-grid { display:grid; grid-template-columns:1fr 1fr; gap:32px; margin-top:8px; }
.ba-item { background:var(--paper-2,#f4f4f2); border:1px solid var(--line); border-radius:16px; padding:48px 40px; text-align:center; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px; min-height:240px; }
.ba-item img { max-width:80%; max-height:150px; width:auto; height:auto; display:block; }
.ba-item figcaption { font-family:'Geist Mono', monospace; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--slate); }
@media (max-width:760px){ .ba-grid{ grid-template-columns:1fr; } }


/* ===== 25 años: comparación antes/después (fotos) ===== */
.ba-photos { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:8px; }
.ba-photos figure { margin:0; }
.ba-photos img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:14px; display:block; }
.ba-photos figcaption { margin-top:12px; font-family:'Geist Mono', monospace; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--slate); }
@media (max-width:760px){ .ba-photos{ grid-template-columns:1fr; } }


/* ===== Menú móvil (hamburguesa) ===== */
.nav-toggle { display:none; flex-direction:column; justify-content:center; gap:5px; width:46px; height:46px; padding:10px; background:none; border:none; cursor:pointer; position:relative; z-index:1002; }
.nav-toggle span { display:block; width:100%; height:2px; background:#1b1d22; border-radius:2px; transition:transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }


/* ===== Certificaciones (sellos reales) ===== */
.cert-badges { display:grid; grid-template-columns:repeat(2,1fr); gap:28px; max-width:720px; margin:0 auto; }
.cert-badge { margin:0; background:#fff; border:1px solid var(--line); border-radius:16px; padding:32px 28px; display:flex; flex-direction:column; align-items:center; gap:18px; text-align:center; }
.cert-badge img { height:148px; width:auto; display:block; }
.cert-badge figcaption { font-size:13.5px; color:var(--slate); line-height:1.55; }
.cert-badge figcaption strong { color:#16181d; }
.cert-standards { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px; margin-top:44px; }
.cert-standards-label { font-family:'Geist Mono', monospace; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--slate); }
.cert-chip { font-family:'Geist Mono', monospace; font-size:13px; padding:7px 16px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#16181d; }
@media (max-width:680px){ .cert-badges{ grid-template-columns:1fr; } }


/* ===== Index: hero solo vídeo (logo) ===== */
.hero.hero-video { aspect-ratio: 2.35; max-height: 88vh; padding: 0; background: #eef0ef; width: 100%; }
.hero.hero-video .hero-bg video { object-fit: cover; object-position: center 52%; }
.hero.hero-video .hero-bg::after { display: none; }
@media (max-width: 760px){ .hero.hero-video { aspect-ratio: 1.5; } }


/* ===== Banner de cookies ===== */
.cookie-banner { position:fixed; left:16px; right:16px; bottom:16px; z-index:9998; max-width:760px; margin:0 auto; background:#16181d; color:#fff; border-radius:14px; padding:20px 24px; display:flex; flex-wrap:wrap; align-items:center; gap:16px 20px; box-shadow:0 20px 60px rgba(0,0,0,.3); transform:translateY(160%); transition:transform .4s ease; }
.cookie-banner.show { transform:translateY(0); }
.cookie-banner p { font-size:13.5px; line-height:1.55; color:rgba(255,255,255,.85); flex:1 1 320px; margin:0; }
.cookie-banner a { color:#fff; text-decoration:underline; }
.cookie-banner .cookie-actions { display:flex; gap:10px; flex-shrink:0; }
.cookie-banner button { font-family:inherit; font-size:13.5px; font-weight:500; padding:11px 20px; border-radius:100px; border:none; cursor:pointer; transition:all .2s; }
.cookie-accept { background:var(--teal,#1fa6a0); color:#fff; }
.cookie-accept:hover { background:#fff; color:#16181d; }
.cookie-reject { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.3); }
.cookie-reject:hover { border-color:#fff; }
@media (max-width:600px){ .cookie-banner{ flex-direction:column; align-items:stretch; } .cookie-banner .cookie-actions{ justify-content:stretch; } .cookie-banner button{ flex:1; } }

/* ===== Páginas legales ===== */
.legal-content { max-width:820px; }
.legal-content h2 { font-family:'Bricolage Grotesque', sans-serif; font-size:24px; font-weight:500; color:var(--ink); margin:40px 0 14px; letter-spacing:-0.01em; }
.legal-content h2:first-child { margin-top:0; }
.legal-content h3 { font-family:'Bricolage Grotesque', sans-serif; font-size:19px; font-weight:500; color:var(--ink); margin:28px 0 10px; }
.legal-content p, .legal-content li { font-size:15.5px; line-height:1.7; color:var(--ink-soft); }
.legal-content p { margin-bottom:14px; }
.legal-content ul { margin:0 0 14px 20px; list-style:disc; }
.legal-content li { margin-bottom:6px; }
.legal-content strong { color:var(--ink); }
.legal-updated { font-family:'Geist Mono', monospace; font-size:12px; color:var(--slate); margin-top:40px; padding-top:20px; border-top:1px solid var(--line); }

.project-card { cursor: default; }

@media (max-width: 560px) {
  .sector-card .content { padding: 16px; }
  .sector-card h3 { font-size: 18px; }
  .sector-card .num { margin-bottom: 6px; }
}

@media (max-width: 760px) {
  .sector-card .arrow { display: none; }
  .sector-tabs-bar { display: none; }
}

/* ===== HERO PARTIDO (index) ===== */
/* Panel teal por DETRAS a todo el ancho; la foto se solapa encima con corte
   diagonal -> imposible que quede hueco entre ambos. ~60/40 */
.hero.hero-split {
  position: relative;
  min-height: clamp(460px, 56vh, 580px);
  overflow: hidden;
  background: #eef0ef;
  padding: 0;
}
.hero-split-panel {
  position: absolute; top: 0; bottom: 0; right: 0;
  width: 50%; z-index: 1;
  display: flex; align-items: center;
  background:
    url('hex-white.svg') repeat,
    radial-gradient(120% 90% at 88% 12%, #2bbcb4 0%, rgba(43,188,180,0) 55%),
    linear-gradient(135deg, #1fa6a0 0%, #117a75 100%);
  color: #fff;
}
.hero-split-media {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 66%; z-index: 2; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);   /* corte diagonal a la derecha */
}
.hero-split-media video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 52%;
  display: block;
}
.hero-split-inner { padding: 44px 46px 44px 28%; width: 100%; }
.hero-split-inner .eyebrow { color: rgba(255,255,255,0.78); margin-bottom: 14px; }
.hero-split-inner h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(25px, 2.2vw, 35px);
  font-weight: 500; line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 18px; color: #fff;
}
.hero-split-inner h1 em { font-style: normal; color: #c9f2ee; }
.hero-split-inner p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.9); margin-bottom: 26px; }
.hero-split-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-split-actions .btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 100px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.hero-split-actions .btn svg { width: 16px; height: 16px; }
.hero-split-actions .btn-primary { background: #fff; color: #0e6b67; }
.hero-split-actions .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.2); }
.hero-split-actions .btn-ghost { border: 1.5px solid rgba(255,255,255,0.6); color: #fff; }
.hero-split-actions .btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
@media (max-width: 820px) {
  .hero.hero-split { display: block; position: relative; min-height: 0; }
  .hero-split-media { position: static; width: 100%; height: clamp(190px, 36vh, 270px); clip-path: none; }
  .hero-split-panel { position: static; width: 100%; }
  .hero-split-inner { padding: 32px 24px 36px; }
}
