/* Sakkana — estilos globales (assets/css/main.css) */

:root {
      --primary: rgb(30, 58, 138);
      --primary-light: #93c5fd;
      --accent-soft: rgba(59, 130, 246, 0.18);
      --bg-deep: #0c1222;
      --bg-elevated: #1e3a8a;
      --paper: #f1f5f9;
      --paper-bright: #f8fafc;
      --ink: #0f172a;
      --muted: #64748b;
      --line: rgba(255, 255, 255, 0.1);
      --line-light: rgba(30, 58, 138, 0.14);
      --radius: 14px;
      --radius-lg: 22px;
      --max: 1120px;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: "Plus Jakarta Sans", Inter, sans-serif;
      font-size: 17px;
      line-height: 1.55;
      color: var(--ink);
      background: #fff;
    }
    img { max-width: 100%; height: auto; display: block; }

    .skip {
      position: absolute;
      left: -999px;
      top: 8px;
      padding: 0.5rem 1rem;
      background: #fff;
      z-index: 200;
      border-radius: 8px;
    }
    .skip:focus { left: 8px; outline: 3px solid var(--primary); }

    .wrap { width: min(100% - 40px, var(--max)); max-width: 100%; margin-inline: auto; }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    /* Header */
    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: #fff;
      border-bottom: 1px solid var(--line-light);
    }
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.85rem 0;
    }
    .brand {
      display: inline-flex;
      align-items: center;
      text-decoration: none;
      line-height: 0;
    }
    .brand img {
      height: auto;
      width: clamp(180px, 32vw, 260px);
      max-height: 72px;
      object-fit: contain;
      object-position: left center;
    }
    @media (max-width: 920px) {
      .brand img {
        width: clamp(160px, 48vw, 220px);
        max-height: 58px;
      }
    }
    .footer .brand img {
      width: clamp(200px, 34vw, 280px);
      max-height: 76px;
      object-fit: contain;
      object-position: left center;
    }

    .nav-desktop {
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }
    .nav-desktop a {
      text-decoration: none;
      padding: 0.45rem 0.75rem;
      border-radius: 999px;
      font-size: 0.92rem;
      font-weight: 500;
      color: var(--muted);
    }
    .nav-desktop a:hover {
      color: var(--ink);
      background: rgba(30, 58, 138, 0.06);
    }
    .nav-desktop a.is-active,
    .nav-dropdown-trigger.is-active,
    .mobile-panel a.is-active,
    .mobile-nav-dropdown-btn.is-active {
      color: var(--primary);
      font-weight: 600;
    }

    .nav-dropdown {
      position: relative;
    }
    /* Puente invisible: evita que el menú se cierre al bajar el cursor */
    .nav-dropdown::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      height: 12px;
    }
    .nav-dropdown-trigger {
      display: inline-flex;
      align-items: center;
      gap: 0.2rem;
    }
    .nav-chevron {
      flex-shrink: 0;
      opacity: 0.65;
      transition: transform 0.2s ease;
    }
    .nav-dropdown.is-open .nav-chevron,
    .nav-dropdown:hover .nav-chevron,
    .nav-dropdown:focus-within .nav-chevron {
      transform: rotate(180deg);
    }
    .nav-dropdown-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      min-width: 15.5rem;
      margin: 0;
      padding: 0.55rem 0.4rem 0.4rem;
      list-style: none;
      background: #fff;
      border: 1px solid var(--line-light);
      border-radius: 14px;
      box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
      transform: translateX(-50%) translateY(4px);
      z-index: 200;
    }
    .nav-dropdown-menu a {
      display: block;
      padding: 0.5rem 0.85rem;
      border-radius: 10px;
      font-size: 0.88rem;
      font-weight: 500;
      color: var(--muted);
      white-space: nowrap;
    }
    .nav-dropdown-menu a:hover {
      color: var(--ink);
      background: rgba(30, 58, 138, 0.06);
    }
    .nav-dropdown.is-open .nav-dropdown-menu,
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateX(-50%) translateY(0);
    }

    .mobile-nav-dropdown {
      border-bottom: 1px solid var(--line-light);
      margin-bottom: 0.15rem;
      padding-bottom: 0.15rem;
    }
    .mobile-nav-dropdown-btn {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 0.6rem 0;
      border: none;
      background: none;
      font-family: inherit;
      font-size: inherit;
      font-weight: 600;
      color: var(--ink);
      cursor: pointer;
      text-align: left;
    }
    .mobile-nav-dropdown-panel {
      padding: 0 0 0.5rem 0.75rem;
    }
    .mobile-nav-dropdown-panel[hidden] {
      display: none;
    }
    .mobile-nav-dropdown-panel a {
      padding: 0.45rem 0;
      font-size: 0.92rem;
      font-weight: 500;
      color: var(--muted);
    }
    .mobile-nav-dropdown-panel a:hover {
      color: var(--ink);
    }
    .mobile-nav-dropdown.is-open .nav-chevron {
      transform: rotate(180deg);
    }
    .mobile-nav-all {
      margin-top: 0.35rem;
      padding-top: 0.35rem;
      border-top: 1px dashed var(--line-light);
      font-weight: 600 !important;
      color: var(--primary) !important;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.65rem 1.2rem;
      border-radius: 999px;
      font-weight: 600;
      font-size: 0.92rem;
      border: none;
      cursor: pointer;
      text-decoration: none;
      font-family: inherit;
      transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s;
    }
    .btn:active { transform: scale(0.98); }
    .btn-primary {
      background: var(--primary);
      color: #fff;
      box-shadow: 0 8px 24px rgba(30, 58, 138, 0.4);
    }
    .btn-primary:hover { filter: brightness(1.08); }
    .btn-ghost {
      background: transparent;
      color: #fff;
      border: 1px solid var(--line);
    }
    .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
    .btn-light {
      background: #fff;
      color: var(--primary);
      font-weight: 700;
    }
    .btn-light:hover { box-shadow: 0 8px 28px rgba(255, 255, 255, 0.2); }

    .nav-toggle {
      display: none;
      width: 44px;
      height: 44px;
      border-radius: 12px;
      border: 1px solid var(--line-light);
      background: #fff;
      cursor: pointer;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }
    .nav-toggle span {
      display: block;
      width: 18px;
      height: 2px;
      background: var(--ink);
      border-radius: 2px;
    }
    .mobile-panel {
      display: none;
      padding: 1rem 0 1.25rem;
      border-top: 1px solid var(--line-light);
    }
    .mobile-panel a {
      display: block;
      padding: 0.6rem 0;
      text-decoration: none;
      font-weight: 600;
      color: var(--ink);
    }
    .mobile-panel .btn-primary { margin-top: 0.75rem; width: 100%; text-align: center; }

    @media (max-width: 900px) {
      .nav-desktop, .header .btn-primary { display: none; }
      .nav-toggle { display: flex; }
      body.nav-open .mobile-panel { display: block; }
    }

    /* Hero oscuro (diseño inicial) */
    .hero {
      position: relative;
      color: #e8edf7;
      padding: clamp(2.75rem, 6vw, 4.75rem) 0 clamp(2.75rem, 6vw, 4.25rem);
      overflow: hidden;
    }
    /* Degradado hero: home + páginas internas */
    .hero::before,
    .page-hero-split::before,
    .page-inner main > section.relative.overflow-hidden.bg-slate-950::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(980px 560px at 8% 0%, rgba(125, 211, 252, 0.22), transparent 55%),
        radial-gradient(720px 440px at 92% 8%, rgba(30, 58, 138, 0.5), transparent 48%),
        radial-gradient(640px 380px at 55% 100%, rgba(15, 23, 42, 0.55), transparent 60%),
        linear-gradient(128deg, #1e3a8a 0%, #172554 42%, #0c1222 100%);
      pointer-events: none;
    }
    .hero::before { z-index: -2; }
    .page-hero-split::before,
    .page-inner main > section.relative.overflow-hidden.bg-slate-950::before {
      z-index: 0;
    }
    .hero::after,
    .page-hero-split::after,
    .page-inner main > section.relative.overflow-hidden.bg-slate-950::after {
      content: "";
      position: absolute;
      inset: 0;
      background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
      background-size: 100% 48px;
      opacity: 0.35;
      mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
      pointer-events: none;
    }
    .hero::after { z-index: -1; }
    .page-hero-split::after,
    .page-inner main > section.relative.overflow-hidden.bg-slate-950::after {
      z-index: 1;
    }
    .page-hero-split > .relative,
    .page-inner main > section.relative.overflow-hidden.bg-slate-950 > .relative {
      position: relative;
      z-index: 2;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1.08fr 0.92fr;
      gap: clamp(2rem, 5vw, 3.75rem);
      align-items: center;
      margin-bottom: clamp(2rem, 4vw, 2.75rem);
    }
    .hero-brand { display: none; }
    .hero .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.35rem 0.85rem;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--primary-light);
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      text-transform: none;
      margin: 0 0 1rem;
      max-width: 100%;
      line-height: 1.35;
      text-wrap: balance;
    }
    .eyebrow-dot {
      display: block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
      background: var(--primary-light);
      box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.35);
    }
    .hero h1 {
      font-size: clamp(1.65rem, 3.2vw, 2.25rem);
      line-height: 1.18;
      margin: 0 0 1rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: #fff;
      max-width: 18ch;
      text-wrap: balance;
    }
    .hero-lead {
      margin: 0 0 1.65rem;
      font-size: 1.05rem;
      color: rgba(232, 237, 247, 0.78);
      max-width: 34rem;
      line-height: 1.6;
    }
    .hero-lead strong {
      color: #fff;
      font-weight: 600;
    }
    .hero-lead--secondary { display: none; }
    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.75rem 1rem;
      margin-bottom: 0;
    }
    .hero-actions .btn-cta-long {
      max-width: 100%;
      white-space: normal;
      text-align: center;
      line-height: 1.3;
      padding: 0.85rem 1.35rem;
    }
    .hero-stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1.25rem 1.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--line);
    }
    .stat strong,
    .stat .stat-count,
    .stat .stat-label {
      display: block;
      font-size: clamp(1.85rem, 3.4vw, 2.55rem);
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: -0.02em;
      font-variant-numeric: tabular-nums;
      color: #fff;
    }
    .stat-label--ipra {
      display: inline-flex !important;
      align-items: center;
      gap: 0.45rem;
      font-size: clamp(1.35rem, 2.6vw, 1.85rem) !important;
    }
    .stat-medal {
      flex-shrink: 0;
      color: var(--primary-light);
    }
    .stat span {
      display: block;
      margin-top: 0.35rem;
      font-size: 0.8rem;
      color: rgba(232, 237, 247, 0.62);
      line-height: 1.4;
      max-width: 14rem;
    }
    .hero-visual { position: relative; }
    .hero-visual-card {
      margin: 0;
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: #0f172a;
    }
    .hero-visual-card img {
      width: 100%;
      height: auto;
      display: block;
      aspect-ratio: 4 / 3;
      object-fit: cover;
    }
    .hero-badge {
      position: absolute;
      bottom: -12px;
      left: 16px;
      right: 16px;
      background: rgba(15, 23, 42, 0.95);
      backdrop-filter: blur(10px);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 0.85rem 1rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 0.88rem;
      color: rgba(232, 237, 247, 0.92);
    }
    .hero-badge svg { flex-shrink: 0; opacity: 0.9; }

    @media (max-width: 900px) {
      .hero-grid { grid-template-columns: 1fr; margin-bottom: 1.75rem; }
      .hero h1 { max-width: none; font-size: clamp(1.45rem, 5.5vw, 1.95rem); }
      .hero-stats { grid-template-columns: 1fr 1fr; }
      .hero-visual-card img { aspect-ratio: 16 / 11; }
    }

    .logos {
      padding: 2rem 0 0.75rem;
      background: #fff;
      border-block: 1px solid rgba(30, 58, 138, 0.08);
    }
    .logos p {
      margin: 0 auto 1.25rem;
      text-align: center;
      font-size: clamp(0.92rem, 2.1vw, 1.25rem);
      font-weight: 700;
      letter-spacing: -0.01em;
      text-transform: none;
      color: var(--ink);
      max-width: none;
      width: 100%;
      line-height: 1.35;
      white-space: normal;
      text-wrap: balance;
      padding-inline: 0.25rem;
    }
    .logos-carousel {
      overflow: hidden;
      cursor: grab;
      touch-action: pan-x;
      -webkit-user-select: none;
      user-select: none;
      mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
      -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    }
    .logos-carousel.is-dragging {
      cursor: grabbing;
    }
    .logos-track {
      display: flex;
      align-items: center;
      gap: clamp(2.5rem, 5vw, 4rem);
      width: max-content;
      padding: 0.25rem 0 0;
      will-change: transform;
    }
    .logo-item {
      flex: 0 0 auto;
      width: clamp(150px, 20vw, 220px);
      height: clamp(72px, 10vw, 96px);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .logo-item img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      opacity: 1;
      transition: transform 0.25s ease;
    }
    .logo-item:hover img {
      transform: scale(1.06);
    }

    section { padding: clamp(3rem, 7vw, 5rem) 0; }

    .section-head {
      max-width: 38rem;
      margin-bottom: 2.25rem;
    }
    .section-kicker {
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--primary);
      margin: 0 0 0.5rem;
    }
    .section-head h2 {
      margin: 0 0 0.65rem;
      font-size: clamp(1.65rem, 3vw, 2.15rem);
      letter-spacing: -0.02em;
    }
    .section-head p { margin: 0; color: var(--muted); }

    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.25rem;
    }
    .card {
      background: #fff;
      border: 1px solid var(--line-light);
      border-radius: var(--radius);
      padding: 1.35rem 1.25rem;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .card:hover {
      border-color: rgba(30, 58, 138, 0.35);
      box-shadow: 0 18px 40px rgba(30, 58, 138, 0.08);
    }
    .card-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(30, 58, 138, 0.12));
      display: grid;
      place-items: center;
      font-size: 1.1rem;
    }
    .card h3 { margin: 0; font-size: 1.08rem; }
    .card p { margin: 0; font-size: 0.95rem; color: var(--muted); flex: 1; }
    .card > a:not(.post-card-thumb):not(.post-card-title),
    .card .body > a:not(.post-card-title) {
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--bg-deep);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .card > a:not(.post-card-thumb):not(.post-card-title)::after,
    .card .body > a:not(.post-card-title)::after {
      content: "→";
      transition: transform 0.2s;
    }
    .card > a:not(.post-card-thumb):not(.post-card-title):hover::after,
    .card .body > a:not(.post-card-title):hover::after {
      transform: translateX(4px);
    }

    .post-card-thumb {
      display: block;
      text-decoration: none;
      line-height: 0;
    }
    .post-card-thumb::after { content: none !important; }
    .post-card-heading {
      margin: 0 0 0.5rem;
      font-size: 1.05rem;
      line-height: 1.35;
    }
    .post-card-title {
      color: var(--ink) !important;
      text-decoration: none !important;
      font-weight: 700;
      font-size: inherit;
      line-height: inherit;
      display: inline;
    }
    .post-card-title:hover {
      color: var(--primary) !important;
      text-decoration: underline !important;
      text-underline-offset: 3px;
    }
    .post-card-title::after { content: none !important; }
    .post-card-more {
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--bg-deep);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .post-card-more::after {
      content: "→";
      transition: transform 0.2s;
    }
    .post-card-more:hover::after {
      transform: translateX(4px);
    }

    .sec-k {
      margin: 0 0 0.35rem;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--primary);
    }
    .sec-t {
      margin: 0 0 0.75rem;
      font-size: clamp(1.65rem, 3vw, 2.2rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      max-width: none;
    }
    .sec-i { margin: 0 0 1rem; color: var(--muted); max-width: 42rem; }
    .sec-i--sub {
      margin-bottom: 2rem;
      font-weight: 600;
      color: var(--ink);
    }
    .section-head .section-extra {
      margin-top: 1rem;
      color: var(--muted);
    }
    .why-grid--5 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    @media (min-width: 1100px) {
      .why-grid--5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }
    }

    .svc-stage {
      position: relative;
      margin-top: 0.5rem;
    }
    .svc-carousel {
      position: relative;
      overflow-x: auto;
      padding: 0.25rem 0 1rem;
      cursor: grab;
      touch-action: pan-x;
      overscroll-behavior-x: contain;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      -webkit-user-select: none;
      user-select: none;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .svc-carousel::-webkit-scrollbar {
      display: none;
      width: 0;
      height: 0;
    }
    .svc-carousel.is-dragging {
      cursor: grabbing;
      scroll-snap-type: none;
    }
    .svc-track {
      display: flex;
      gap: 1rem;
      width: max-content;
    }
    .svc-nav {
      position: absolute;
      top: 50%;
      z-index: 3;
      transform: translateY(-60%);
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: 1px solid rgba(30, 58, 138, 0.16);
      background: #fff;
      color: var(--primary);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }
    .svc-nav svg { width: 20px; height: 20px; display: block; }
    .svc-nav:hover {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }
    .svc-nav:active { transform: translateY(-60%) scale(0.96); }
    .svc-nav:focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }
    .svc-nav--prev { left: -0.35rem; }
    .svc-nav--next { right: -0.35rem; }
    .svc-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      margin-top: 0.35rem;
    }
    .svc-nav--sm {
      position: static;
      transform: none;
      width: 40px;
      height: 40px;
      display: none;
    }
    .svc-nav--sm:active { transform: scale(0.96); }
    .svc-dots {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.55rem;
      margin-top: 0;
      padding: 0;
    }
    .svc-dot {
      width: 36px;
      height: 6px;
      border-radius: 999px;
      border: none;
      padding: 0;
      background: rgba(30, 58, 138, 0.2);
      cursor: pointer;
      transition: background 0.2s ease, width 0.2s ease, opacity 0.2s ease;
    }
    .svc-dot.is-active {
      width: 52px;
      background: var(--primary);
      opacity: 1;
    }
    .svc-dot:not(.is-active):hover {
      background: rgba(30, 58, 138, 0.4);
      width: 40px;
    }
    .svc-dot:focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 3px;
    }
    @media (max-width: 900px) {
      .svc-nav--prev,
      .svc-nav--next { display: none; }
      .svc-nav--sm { display: inline-flex; }
      .svc-stage { padding: 0; }
    }
    .svc-card {
      flex: 0 0 min(300px, 85vw);
      scroll-snap-align: start;
      background: #fff;
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      box-shadow: 0 4px 24px rgba(30, 58, 138, 0.08);
      border: 1px solid rgba(30, 58, 138, 0.06);
      transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
      display: flex;
      flex-direction: column;
    }
    .svc-card .n {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--paper);
      color: var(--primary);
      font-weight: 800;
      font-size: 0.85rem;
      display: grid;
      place-items: center;
      margin-bottom: 1rem;
    }
    .svc-card:hover {
      background: var(--primary);
      color: #fff;
      border-color: transparent;
      box-shadow: 0 14px 36px rgba(30, 58, 138, 0.28);
    }
    .svc-card:hover .n {
      background: rgba(255, 255, 255, 0.15);
      color: #fff;
    }
    .svc-card:hover p { color: rgba(255, 255, 255, 0.85); }
    .svc-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
    .svc-card p { margin: 0 0 1rem; font-size: 0.9rem; color: var(--muted); }
    .svc-card p strong { font-weight: 600; color: var(--ink, #0f172a); }
    .svc-card:hover p strong { color: #fff; }
    .svc-card-link {
      display: block;
      text-decoration: none;
      color: inherit;
      flex: 1 1 auto;
    }
    .svc-card-link:focus-visible {
      outline: 2px solid var(--primary-light);
      outline-offset: 3px;
    }
    .svc-card h3 {
      color: var(--ink);
      transition: color 0.25s ease;
    }
    .svc-card:hover h3 { color: #fff; }
    .svc-card-cta {
      display: inline-block;
      align-self: flex-start;
      width: fit-content;
      max-width: 100%;
      margin-top: auto;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--primary);
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: color 0.25s ease, border-color 0.25s ease;
      position: relative;
      z-index: 2;
    }
    .svc-card:hover .svc-card-cta {
      color: #fff;
      border-bottom-color: rgba(255, 255, 255, 0.65);
    }
    .svc-card-cta:focus-visible {
      outline: 2px solid var(--primary-light);
      outline-offset: 3px;
    }
    a.svc-card {
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
      cursor: pointer;
    }
    a.svc-card h3 {
      color: var(--ink);
      transition: color 0.25s ease;
    }
    a.svc-card:hover h3 { color: #fff; }
    a.svc-card .svc-card-cta {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--primary);
      align-self: flex-start;
      width: fit-content;
      border-bottom: 1px solid transparent;
      transition: color 0.25s ease, border-color 0.25s ease;
    }
    a.svc-card:hover .svc-card-cta {
      color: #fff;
      border-bottom-color: rgba(255, 255, 255, 0.65);
    }
    .svc-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.25rem;
    }
    @media (max-width: 900px) {
      .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 520px) {
      .svc-grid { grid-template-columns: 1fr; }
    }

    .why-section { background: var(--paper); }

    .about-decade {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(720px 420px at 92% 12%, rgba(147, 197, 253, 0.22), transparent 55%),
        radial-gradient(640px 380px at 0% 88%, rgba(30, 58, 138, 0.06), transparent 50%),
        var(--paper);
    }
    .about-decade-grid {
      display: grid;
      grid-template-columns: 1.08fr 0.92fr;
      gap: clamp(2rem, 5vw, 3.5rem);
      align-items: center;
    }
    .about-decade-copy .section-kicker {
      margin-bottom: 0.85rem;
      color: var(--primary);
    }
    .about-decade-title-row {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 0.85rem 1.1rem;
      align-items: start;
      margin-bottom: 1.25rem;
    }
    .about-decade-years {
      font-family: "DM Serif Display", Georgia, serif;
      font-size: clamp(4.5rem, 10vw, 6.5rem);
      line-height: 0.8;
      letter-spacing: -0.04em;
      color: var(--primary);
      padding-top: 0.05rem;
    }
    .about-decade-copy h2 {
      margin: 0;
      font-size: clamp(1.35rem, 2.6vw, 1.85rem);
      line-height: 1.25;
      letter-spacing: -0.02em;
      color: var(--ink);
      text-wrap: balance;
      max-width: 18ch;
    }
    .about-decade-copy p {
      margin: 0 0 0.95rem;
      color: var(--muted);
      font-size: 1.02rem;
      line-height: 1.7;
      max-width: 36rem;
    }
    .about-decade-copy p strong {
      color: var(--ink);
      font-weight: 600;
    }
    .about-decade-copy .section-extra { margin-bottom: 1.35rem; }
    .about-decade-link {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--primary);
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: border-color 0.2s ease, gap 0.2s ease;
    }
    .about-decade-link:hover {
      border-bottom-color: rgba(30, 58, 138, 0.35);
      gap: 0.55rem;
    }
    .about-decade-media {
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .about-decade-media-frame {
      position: relative;
      border-radius: var(--radius-lg, 1.25rem);
      overflow: hidden;
      border: 1px solid var(--line-light);
      box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
      background: #f1f5f9;
      line-height: 0;
    }
    .about-decade-media-frame::after {
      content: none;
    }
    .about-decade-media img {
      display: block;
      width: 100%;
      height: auto;
      max-width: 100%;
      object-fit: contain;
      object-position: center;
    }
    .about-decade-media figcaption {
      margin: 0;
      padding: 0 0.15rem;
      font-size: 0.82rem;
      line-height: 1.45;
      color: var(--muted);
      letter-spacing: 0.01em;
    }
    @media (max-width: 860px) {
      .about-decade-grid {
        grid-template-columns: 1fr;
      }
      .about-decade-title-row {
        grid-template-columns: auto minmax(0, 1fr);
      }
      .about-decade-years {
        font-size: clamp(3rem, 18vw, 4.5rem);
      }
      .about-decade-copy h2 { max-width: none; }
      .about-decade-media-frame {
        aspect-ratio: auto;
        max-height: none;
      }
    }
    .why-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1.25rem;
    }
    .why-grid--five {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .why-grid--four {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .why-grid--3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .why-item {
      padding: 1.25rem;
      border-radius: var(--radius);
      background: #fff;
      border: 1px solid var(--line-light);
      box-shadow: 0 4px 24px rgba(30, 58, 138, 0.06);
      transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    }
    .why-item .n {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--paper);
      color: var(--primary);
      font-weight: 800;
      font-size: 0.85rem;
      display: grid;
      place-items: center;
      margin-bottom: 1rem;
    }
    .why-item h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
    .why-item p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
    .why-item:hover {
      background: var(--primary);
      color: #fff;
      border-color: transparent;
      box-shadow: 0 14px 36px rgba(30, 58, 138, 0.28);
    }
    .why-item:hover .n {
      background: rgba(255, 255, 255, 0.15);
      color: #fff;
    }
    .why-item:hover h3 { color: #fff; }
    .why-item:hover p { color: rgba(255, 255, 255, 0.85); }
    @media (max-width: 900px) {
      .why-grid,
      .why-grid--five,
      .why-grid--four,
      .why-grid--3 { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 520px) {
      .why-grid,
      .why-grid--five,
      .why-grid--four,
      .why-grid--3 { grid-template-columns: 1fr; }
    }

    /* Carrusel diferencial (legacy, por si se reutiliza) */
    .why-carousel {
      position: relative;
      overflow-x: auto;
      padding: 0.25rem 0 0.5rem;
      cursor: grab;
      touch-action: pan-x;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      -webkit-user-select: none;
      user-select: none;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .why-carousel::-webkit-scrollbar { display: none; }
    .why-carousel.is-dragging {
      cursor: grabbing;
      scroll-snap-type: none;
    }
    .why-track {
      display: flex;
      gap: 1rem;
      width: max-content;
    }
    .why-slide {
      flex: 0 0 min(320px, 84vw);
      scroll-snap-align: start;
      min-height: 220px;
      display: flex;
      flex-direction: column;
    }
    #diferencial .section-head {
      max-width: none;
    }
    #diferencial .section-head h2 {
      white-space: normal;
      font-size: clamp(1.25rem, 2.4vw, 2.15rem);
      text-wrap: balance;
    }
    #diferencial .svc-dots { margin-top: 0.75rem; }

    .band-dark {
      background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
      color: #e8edf7;
      padding: clamp(3rem, 7vw, 4.5rem) 0;
    }
    .band-dark .section-kicker { color: var(--primary-light); }
    .band-dark .section-head p { color: rgba(232, 237, 247, 0.72); }
    .band-dark .section-head h2 { color: #fff; }
    .band-split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      align-items: center;
    }
    .quote-card {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 1.75rem;
    }
    .quote-card blockquote {
      margin: 0;
      font-family: "DM Serif Display", Georgia, serif;
      font-size: 1.2rem;
      line-height: 1.45;
      color: #fff;
    }
    .quote-meta {
      margin-top: 1.25rem;
      font-size: 0.92rem;
      color: rgba(232, 237, 247, 0.72);
    }
    .quote-meta strong { color: #fff; display: block; }
    @media (max-width: 800px) {
      .band-split { grid-template-columns: 1fr; }
    }

    .testimonials-band {
      position: relative;
      color: var(--ink);
      padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(2.75rem, 6vw, 4.25rem);
      overflow: hidden;
      background:
        radial-gradient(ellipse 90% 60% at 0% 0%, rgba(147, 197, 253, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(30, 58, 138, 0.08), transparent 50%),
        linear-gradient(180deg, #eef4fb 0%, #f7fafc 45%, #e8eef7 100%);
    }
    .testimonials-band::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0.45;
      background-image:
        linear-gradient(rgba(30, 58, 138, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.035) 1px, transparent 1px);
      background-size: 28px 28px;
      mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 20%, transparent 75%);
    }
    .testimonials-band > .wrap { position: relative; z-index: 1; }
    .testimonials-head {
      max-width: 38rem;
      margin-inline: auto;
      text-align: center;
      margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
    }
    .testimonials-head .section-kicker { color: var(--primary); }
    .testimonials-head h2 {
      color: var(--ink);
      margin: 0 0 0.65rem;
      text-wrap: balance;
    }
    .testimonials-head p {
      margin: 0;
      color: var(--muted);
    }
    .testimonials-stage {
      position: relative;
      max-width: 52rem;
      margin-inline: auto;
    }
    .testimonials-carousel {
      overflow: hidden;
      position: relative;
      border-radius: calc(var(--radius-lg) + 4px);
      transition: height 0.35s ease;
    }
    .testimonials-track {
      display: flex;
      align-items: flex-start;
      transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .testimonial-slide {
      flex: 0 0 100%;
      max-width: 100%;
      padding: 0.35rem;
      box-sizing: border-box;
      align-self: flex-start;
    }
    .testimonial-card {
      position: relative;
      display: flex;
      flex-direction: column;
      height: auto;
      margin: 0 auto;
      padding: clamp(1.5rem, 3.5vw, 2.15rem) clamp(1.25rem, 3vw, 2.1rem) clamp(1.25rem, 2.8vw, 1.75rem);
      border-radius: var(--radius-lg);
      background: #fff;
      border: 1px solid rgba(30, 58, 138, 0.1);
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 18px 44px rgba(15, 23, 42, 0.08);
      text-align: left;
      overflow: hidden;
    }
    .testimonial-mark {
      position: absolute;
      top: 0.2rem;
      left: 1rem;
      font-family: "DM Serif Display", Georgia, serif;
      font-size: clamp(4.5rem, 10vw, 6.5rem);
      line-height: 1;
      color: rgba(30, 58, 138, 0.12);
      pointer-events: none;
      user-select: none;
    }
    .testimonial-slide blockquote {
      position: relative;
      z-index: 1;
      margin: 0.85rem 0 1.15rem;
      font-family: "DM Serif Display", Georgia, serif;
      font-size: clamp(1.08rem, 2.2vw, 1.35rem);
      line-height: 1.5;
      color: var(--ink);
      font-weight: 400;
      text-wrap: pretty;
    }
    .testimonial-author {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      gap: 0.95rem;
      margin-top: 0;
      padding-top: 1.05rem;
      border-top: 1px solid rgba(30, 58, 138, 0.1);
    }
    .testimonial-avatar {
      width: 64px;
      height: 64px;
      flex-shrink: 0;
      border-radius: 50%;
      object-fit: cover;
      margin: 0;
      border: 2px solid #fff;
      box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.22), 0 8px 18px rgba(15, 23, 42, 0.12);
      display: block;
    }
    .testimonial-name {
      margin: 0 0 0.2rem;
      font-size: 1.02rem;
      font-weight: 700;
      color: var(--primary);
    }
    .testimonial-role {
      margin: 0;
      font-size: 0.86rem;
      line-height: 1.4;
      color: var(--muted);
    }
    .testimonials-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.85rem;
      margin-top: 1.35rem;
    }
    .testimonials-nav {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 1px solid rgba(30, 58, 138, 0.18);
      background: #fff;
      color: var(--primary);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
      transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    }
    .testimonials-nav:hover {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }
    .testimonials-nav:active { transform: scale(0.96); }
    .testimonials-nav:focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }
    .testimonials-nav svg {
      width: 18px;
      height: 18px;
      display: block;
    }
    .testimonials-dots {
      margin: 0;
      justify-content: center;
    }
    .testimonials-dots .svc-dot {
      background: rgba(30, 58, 138, 0.2);
    }
    .testimonials-dots .svc-dot.is-active {
      background: var(--primary);
      width: 48px;
    }
    @media (max-width: 640px) {
      .testimonial-card { text-align: center; }
      .testimonial-author {
        flex-direction: column;
        text-align: center;
      }
      .testimonial-avatar { margin-inline: auto; }
      .testimonial-mark { left: 50%; transform: translateX(-50%); }
    }

    .case-card {
      overflow: hidden;
      padding: 0;
      border-radius: var(--radius);
      border: 1px solid var(--line-light);
      background: #fff;
    }
    .case-card .thumb {
      aspect-ratio: 16/10;
      object-fit: cover;
      width: 100%;
    }
    .case-card .body { padding: 1.2rem 1.25rem 1.35rem; }
    .case-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
    .case-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }
    .case-card .more {
      font-weight: 600;
      font-size: 0.9rem;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      color: var(--bg-deep);
      margin-top: 0.75rem;
    }
    .case-card .more::after { content: "→"; transition: transform 0.2s; }
    .case-card .more:hover::after { transform: translateX(4px); }

    .testimonial-big {
      text-align: center;
      max-width: 720px;
      margin: 0 auto;
    }
    .testimonial-big blockquote {
      margin: 0;
      font-family: "DM Serif Display", Georgia, serif;
      font-size: clamp(1.25rem, 2.5vw, 1.6rem);
      line-height: 1.45;
      color: var(--ink);
    }
    .testimonial-big cite {
      display: block;
      margin-top: 1.25rem;
      font-style: normal;
      font-size: 0.95rem;
      color: var(--muted);
    }
    .testimonial-big cite strong { color: var(--primary); }

    .post-card { padding: 0; overflow: hidden; border: 1px solid var(--line-light); border-radius: var(--radius); }
    .post-card .thumb { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
    .post-card .body { padding: 1.1rem 1.2rem 1.3rem; }
    .post-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.35rem; }

    .contact-panel {
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      gap: 2rem;
      background: linear-gradient(145deg, var(--bg-elevated), var(--bg-deep));
      color: #e8edf7;
      border-radius: var(--radius-lg);
      padding: clamp(1.75rem, 4vw, 2.75rem);
      border: 1px solid var(--line);
      box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
      position: relative;
      overflow: hidden;
    }
    .contact-panel::before,
    .cta-form-panel::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(640px 380px at 8% 15%, rgba(96, 165, 250, 0.24), transparent 52%),
        radial-gradient(520px 340px at 92% 85%, rgba(30, 58, 138, 0.45), transparent 50%);
      pointer-events: none;
      z-index: 0;
    }
    .contact-panel > *,
    .cta-form-panel > * {
      position: relative;
      z-index: 1;
    }
    /* Panel formulario en páginas internas (mismo degradado que #contacto del index) */
    .cta-form-panel {
      background: linear-gradient(145deg, var(--bg-elevated), var(--bg-deep));
      color: #e8edf7;
      border-radius: 2rem;
      border: 1px solid var(--line);
      box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
      position: relative;
      overflow: hidden;
    }
    .contact-panel h2 {
      margin: 0 0 0.75rem;
      font-size: clamp(1.45rem, 2.5vw, 1.85rem);
      letter-spacing: -0.02em;
      color: #fff;
    }
    .contact-panel .lead { margin: 0 0 1.25rem; color: rgba(232, 237, 247, 0.72); }
    .contact-list { list-style: none; padding: 0; margin: 0; }
    .contact-list li {
      margin-bottom: 0.65rem;
      padding-left: 1.5rem;
      position: relative;
      font-size: 0.95rem;
    }
    .contact-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.55em;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--primary-light);
    }
    .contact-list a { color: #fff; text-decoration: underline; text-underline-offset: 0.15em; }

    .form-card {
      background: #fff;
      color: var(--ink);
      border-radius: var(--radius);
      padding: 1.35rem;
    }
    .form-row { display: grid; gap: 0.85rem; margin-bottom: 0.85rem; }
    @media (min-width: 520px) {
      .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
    }
    label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--muted); }
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    textarea {
      width: 100%;
      padding: 0.65rem 0.75rem;
      border-radius: 10px;
      border: 1px solid var(--line-light);
      font: inherit;
    }
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):focus,
    textarea:focus {
      outline: 2px solid rgba(30, 58, 138, 0.35);
      border-color: var(--primary);
    }
    textarea { min-height: 120px; resize: vertical; }
    .form-card .btn-primary {
      width: 100%;
      margin-top: 0.25rem;
      background: var(--primary);
      color: #fff;
    }
    .form-card .btn-primary:hover { filter: brightness(1.06); }

    @media (max-width: 800px) {
      .contact-panel { grid-template-columns: 1fr; }
    }

    .footer {
      background: #050810;
      color: rgba(232, 237, 247, 0.72);
      padding: 3rem 0 2.5rem;
      font-size: 0.92rem;
      margin-top: 0;
      overflow: visible;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
      gap: 2rem 2.5rem;
      margin-bottom: 2rem;
      align-items: start;
    }
    .footer-grid > div:first-child {
      max-width: 22rem;
    }
    .footer h4 {
      margin: 0 0 0.85rem;
      padding: 0;
      color: #fff;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      line-height: 1.3;
    }
    .footer ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .footer li { margin-bottom: 0.5rem; }
    .footer a {
      text-decoration: none;
      color: inherit;
      transition: color 0.2s ease;
    }
    .footer a:hover { color: #fff; }
    .footer .brand {
      display: inline-flex;
      margin-bottom: 0.15rem;
    }
    .footer-tagline {
      margin: 0.85rem 0 0;
      line-height: 1.55;
      max-width: 20rem;
    }
    .footer-social {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      margin-top: 1.25rem;
    }
    .footer-social a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid rgba(232, 237, 247, 0.45);
      color: rgba(232, 237, 247, 0.75);
      transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }
    .footer-social a:hover {
      color: #fff;
      border-color: rgba(232, 237, 247, 0.85);
      background: rgba(255, 255, 255, 0.06);
    }
    .footer-bar {
      border-top: 1px solid var(--line);
      padding-top: 1.25rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem 1.5rem;
      justify-content: space-between;
      font-size: 0.85rem;
    }
    .footer-note {
      margin-top: 0.75rem;
      font-size: 0.82rem;
      opacity: 0.85;
    }
    .footer-note a { color: var(--primary-light); text-decoration: underline; }
    @media (max-width: 900px) {
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 520px) {
      .footer-grid { grid-template-columns: 1fr; }
    }

    /* Animaciones al scroll */
    @media (prefers-reduced-motion: no-preference) {
      .header-enter {
        animation: headerIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
      }
      @keyframes headerIn {
        from { opacity: 0; transform: translateY(-16px); }
        to { opacity: 1; transform: translateY(0); }
      }
      .reveal {
        opacity: 0;
        transition:
          opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
          transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        transition-delay: var(--reveal-delay, 0ms);
      }
      .reveal-up { transform: translateY(28px); }
      .reveal-down { transform: translateY(-20px); }
      .reveal-left { transform: translateX(-32px); }
      .reveal-right { transform: translateX(32px); }
      .reveal-scale { transform: scale(0.94); }
      .reveal-fade { transform: translateY(12px); }
      .reveal.is-visible {
        opacity: 1;
        transform: none;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1; transform: none; }
    }

    /* Footer siempre visible (sin recorte por transform de reveal) */
    .footer .reveal,
    .footer .reveal-up,
    .footer .reveal-down,
    .footer .reveal-left,
    .footer .reveal-right,
    .footer .reveal-scale,
    .footer .reveal-fade {
      opacity: 1;
      transform: none;
      transition: none;
    }

    /* WhatsApp flotante */
    .wa-float {
      position: fixed;
      right: 1.15rem;
      bottom: 1.15rem;
      z-index: 90;
      width: 56px;
      height: 56px;
      border-radius: 999px;
      background: #25d366;
      color: #fff;
      display: grid;
      place-items: center;
      box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .wa-float:hover {
      transform: translateY(-2px) scale(1.04);
      box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
      color: #fff;
    }

    .contact-social-icon {
      display: inline-grid;
      place-items: center;
      width: 40px;
      height: 40px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
      transition: background 0.2s ease;
    }
    .contact-social-icon:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

    .svc-geo-feature {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: clamp(1.5rem, 4vw, 2.5rem);
      align-items: center;
      margin-top: 1.5rem;
    }
    .svc-geo-feature img {
      width: 100%;
      border-radius: var(--radius-lg);
      aspect-ratio: 16 / 10;
      object-fit: cover;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }
    .svc-geo-benefits {
      margin: 1rem 0 1.35rem;
      padding-left: 1.1rem;
      color: var(--muted);
      line-height: 1.55;
    }
    .svc-card-img {
      width: calc(100% + 3rem);
      max-width: none !important;
      height: auto;
      aspect-ratio: 16 / 10;
      object-fit: cover;
      object-position: center;
      border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 10px 10px;
      margin: -1.5rem -1.5rem 1.1rem;
      display: block;
    }
    .svc-grid--visual .svc-card,
    .svc-grid--visual a.svc-card {
      overflow: hidden;
      height: auto;
      min-height: 0;
      align-self: stretch;
      display: flex;
      flex-direction: column;
      padding-top: 1.5rem;
    }
    .svc-grid--visual .svc-card-img {
      margin-top: -1.5rem;
    }
    .svc-grid--visual .svc-card-cta,
    .svc-grid--visual a.svc-card .svc-card-cta {
      margin-top: auto;
    }
    .svc-grid--visual .svc-card p {
      flex: 0 0 auto;
      overflow: visible;
      display: block;
      -webkit-line-clamp: unset;
    }
    a.svc-card .svc-card-img { display: block; }
    @media (max-width: 860px) {
      .svc-geo-feature { grid-template-columns: 1fr; }
      .svc-card-img {
        width: 100%;
        max-width: 100%;
        margin: 0 0 1rem;
        aspect-ratio: 16 / 11;
        border-radius: 12px;
      }
      .svc-grid--visual .svc-card,
      .svc-grid--visual a.svc-card {
        padding-top: 1.1rem;
      }
      .svc-grid--visual .svc-card-img {
        margin-top: 0;
      }
    }

    /* Popup GEO (también en home) */
    .geo-popup {
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.25rem;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.28s ease, visibility 0.28s ease;
    }
    .geo-popup[hidden] {
      display: none !important;
    }
    .geo-popup.is-open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
    .geo-popup__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(5, 8, 16, 0.72);
      backdrop-filter: blur(6px);
    }
    .geo-popup__panel {
      position: relative;
      z-index: 1;
      width: min(520px, 100%);
      max-height: min(90vh, 640px);
      overflow-y: auto;
      padding: 2rem 1.75rem 1.75rem;
      border-radius: 1.5rem;
      background: linear-gradient(145deg, var(--bg-elevated, #1e3a8a), var(--bg-deep, #0c1222));
      color: #e8edf7;
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
      transform: translateY(12px) scale(0.98);
      transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .geo-popup.is-open .geo-popup__panel {
      transform: none;
    }
    .geo-popup__close {
      position: absolute;
      top: 0.75rem;
      right: 0.85rem;
      width: 40px;
      height: 40px;
      border: none;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
      font-size: 1.5rem;
      line-height: 1;
      cursor: pointer;
    }
    .geo-popup__close:hover {
      background: rgba(255, 255, 255, 0.22);
    }
    .geo-popup__kicker {
      margin: 0 0 0.65rem;
      padding-right: 2.5rem;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(147, 197, 253, 0.95);
    }
    .geo-popup__panel h2 {
      margin: 0 0 0.85rem;
      font-size: clamp(1.25rem, 3vw, 1.55rem);
      line-height: 1.25;
      color: #fff;
      text-wrap: balance;
    }
    .geo-popup__text {
      margin: 0 0 1.5rem;
      font-size: 0.95rem;
      line-height: 1.55;
      color: rgba(232, 237, 247, 0.78);
    }
    .geo-popup__text strong { color: #fff; }
    .geo-popup__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem;
    }
    .geo-popup__ghost {
      color: #fff !important;
      border-color: rgba(255, 255, 255, 0.35) !important;
    }
    body.geo-popup-open {
      overflow: hidden;
    }
