  @font-face {
    font-family: 'Renamor';
    src: url('../fonts/RenamorRegular.woff2') format('woff2'),
        url('../fonts/RenamorRegular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


  :root{
    /* Official palette */
    --petroleum:#56cfe1;
    --turquoise:#54EDDE;
    --purple:#A172AF;
    --white:#FFFFFF;

    /* Derived tones */
    --purple-deep:#2C1747;
    --purple-dark:#590591;
    --purple-medium:#7345A3;
    --purple-soft:#C39DCD;
    --petroleum-deep:#031B23;
    --petroleum-soft:#0D4B59;
    --turquoise-soft:#A7E1EB;
    --off-white:#F8F7FA;

    /* Gradients */
    --grad-hero-main: linear-gradient(118deg, #590591 0%, #7345A3 45%, #A172AF 100%);
    --grad-hero-deep: linear-gradient(125deg, #590591 0%, #45226F 46%, #7345A3 100%);
    --grad-headline-accent: linear-gradient(90deg, #56cfe1 0%, #A7E1EB 42%, #FFFFFF 120%);
    --grad-purple-button: linear-gradient(105deg, #590591 0%, #7345A3 45%, #A172AF 100%);
    --grad-dark-transition: linear-gradient(135deg, #590591 0%, #062F3C 100%);
    --grad-final-cta: linear-gradient(105deg, #6CC6D9 0%, #8D80BC 40%, #7345A3 70%, #45226F 100%);

    --font: 'Poppins', Arial, sans-serif;
    --fontdos: 'Renamor', Arial, sans-serif;

    --max-w: 1440px;
    --content-w: 1280px;
    --pad-desktop: 64px;
    --pad-tablet: 32px;
    --pad-mobile: 20px;

    --section-space: 128px;


    --color-uno: #590591;
    --color-dos: #6430b8;
    --color-tres: #5a5cd5;
    --color-cuatro: #56cfe1;
    --color-cinco: #54edde;

  }

  *{ margin:0; padding:0; box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    font-family: var(--font);
    color: var(--petroleum);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  body {
  cursor: url('../img/cursor.png'), auto;
}
  img{ max-width:100%; display:block; }
  a{ color:inherit; text-decoration:none; }
  button{ font-family: var(--font); cursor:pointer; border:none; background:none; }
  ul{ list-style:none; }

  .wrap{
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-desktop);
  }
  @media (max-width: 1279px){ .wrap{ padding: 0 var(--pad-tablet); } }
  @media (max-width: 767px){ .wrap{ padding: 0 var(--pad-mobile); } }

  .eyebrow{
    font-weight:600;
    letter-spacing:0.16em;
    text-transform:uppercase;
    font-size:20px;
  }

  /* ---------- Reveal animation ---------- */
  .reveal{
    opacity:0;
    transform: translateY(28px);
    transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  }
  .reveal.in{ opacity:1; transform:none; }
  @media (prefers-reduced-motion: reduce){
    .reveal{ opacity:1; transform:none; transition:none; }
    html{ scroll-behavior:auto; }
  }

  /* ================= NAV ================= */
  header.nav{
    position: fixed;
    top:0; left:0; right:0;
    z-index: 999;
    height: 86px;
    display:flex;
    align-items:center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  }
  header.nav.scrolled{
    background: rgba(89, 5, 145,0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  }
  .nav-inner{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  .nav-logo img{ width: 150px; height:auto; }
  .nav-menu{ display:flex; align-items:center; gap:38px; }
  .nav-menu a{
    font-size:14px;
    color:#fff;
    position:relative;
    padding: 6px 2px;
    transition: color 200ms ease;
  }
  .nav-menu a::before{
    content:"";
    position:absolute; left:50%; bottom:-2px;
    width:4px; height:4px; border-radius:50%;
    background: var(--turquoise);
    opacity:0; transform: translate(-50%,4px);
    transition: opacity 200ms ease, transform 200ms ease;
  }
  .nav-menu a:hover{ color: var(--turquoise); }
  .nav-menu a:hover::before{ opacity:1; transform: translate(-50%,0); }

  .nav-cta{
    display:inline-flex; align-items:center; gap:8px;
    color:#fff; font-size:13px; font-weight:600;
    border:1px solid rgba(255,255,255,0.55);
    border-radius:4px; padding:10px 18px;
    transition: background 200ms ease, transform 200ms ease;
  }
  .nav-cta:hover{ background: rgba(255,255,255,0.10); transform: translateY(-1px); }

  .burger{
    display:none;
    width:26px; height:18px;
    position:relative;
    z-index: 1001;
  }
  .burger span{
    position:absolute; left:0; right:0; height:2px; background:#fff; border-radius:2px;
    transition: transform 250ms ease, opacity 250ms ease, background 250ms ease;
  }
  .burger span:nth-child(1){ top:0; }
  .burger span:nth-child(2){ top:8px; }
  .burger span:nth-child(3){ top:16px; }
  /* Con el menú abierto manda la X del propio menú */
  .burger.open{ opacity:0; pointer-events:none; }

  .mobile-menu{
    position:fixed; inset:0;
    background: var(--purple-deep);
    z-index:1000;
    display:flex; flex-direction:column;
    align-items:flex-start; justify-content:center;
    gap:22px;
    padding: 0 32px;
    transform: translateY(-100%);
    transition: transform 380ms cubic-bezier(.2,.8,.2,1);
  }
  .mobile-menu.open{ transform: translateY(0); }
  .mobile-menu a{ color:#fff; font-size:30px; font-weight:600; letter-spacing:-0.02em; }
  .mobile-menu .m-eyebrow{ color: var(--turquoise-soft); margin-bottom: 8px; }

  .m-close{
    position:absolute;
    top:22px; right:32px;
    width:46px; height:46px;
    display:flex; align-items:center; justify-content:center;
    border-radius:50%;
    border:1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.06);
    color:#fff;
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
  }
  .m-close svg{ width:20px; height:20px; }
  .m-close:hover{ background: rgba(255,255,255,0.14); border-color: var(--turquoise); color: var(--turquoise); }
  .m-close:active{ transform: scale(0.94); }
  .m-close:focus-visible{ outline:2px solid var(--turquoise); outline-offset:3px; }
  @media (max-width: 767px){ .m-close{ right:20px; } }
  @media (prefers-reduced-motion: reduce){ .m-close:active{ transform:none; } }

  @media (max-width: 899px){
    .nav-menu, .nav-cta{ display:none; }
    .burger{ display:block; }
  }

  /* ================= HERO ================= */
  .fondo_gene{
    position:relative;
    background: var(--purple-dark);
    background-image:
      radial-gradient(circle at 82% 18%, rgba(195,157,205,0.30) 0%, transparent 48%),
      radial-gradient(circle at 15% 94%, rgba(108,198,217,0.68) 0%, rgba(108,198,217,0.18) 31%, transparent 58%),
      var(--grad-hero-main);
      overflow: hidden;
  }
  /* Fundido del morado de portada hacia el gris de la sección de servicios */
  .fondo_gene::after{
    content:"";
    position:absolute; left:0; right:0; bottom:0;
    height: clamp(56px, 7vw, 100px);
    background: linear-gradient(180deg,
      rgba(248,247,250,0) 0%,
      rgba(248,247,250,0.45) 42%,
      rgba(248,247,250,0.88) 78%,
      #F8F7FA 100%);
    pointer-events:none;
    z-index:0;
  }
.fondo_gene2{height: clamp(56px, 7vw, 100px);}
    .fondo_gene2::before{
    content:"";
    position:absolute; left:0; right:0; top:0;
    height: clamp(56px, 7vw, 100px);
    background: linear-gradient(180deg,
      rgba(248,247,250,0) 0%,
      rgba(248,247,250,0.45) 42%,
      rgba(248,247,250,0.88) 78%,
      #F8F7FA 100%);
    pointer-events:none;
    z-index:0;
  }
  .hero{
    position:relative;
    min-height: 780px;
    height: 92svh;
    display:flex;
    align-items:center;
    
    overflow:hidden;
    background: url(../img/s1.svg) no-repeat -160px -150px,  url(../img/s4.svg) no-repeat right 60px bottom 50px;
    background-size: 300px, 70px;

  }
  .hero::after{
    content:"";
    position:absolute; inset:0;
    opacity:0.025;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    pointer-events:none;
    mix-blend-mode: overlay;
  }
  .hero-y{
    position:absolute;
    left: 50%;top: 0;
  /*  top: 50%;
    transform: translateY(-50%) ;*/
    width: 52vw;
    max-width: 750px;
    opacity: 0.20;
    mix-blend-mode: screen;
    pointer-events:none;
    will-change: transform;
    z-index:1;
  }

  @media (max-width: 520px){ 
    .hero-y{left: inherit;right: 0;top: 50%}
   }
  .hero-inner{
    position:relative;
    z-index:2;
    width:100%;
    display:grid;
    grid-template-columns: 54% 46%;
    align-items:center;
  }
  .hero-content{ max-width: 780px; }
  .hero-eyebrow{
    color: var(--turquoise-soft);
    margin-bottom: 22px;
  }
  .hero-headline{
    font-weight:700;
    letter-spacing:-0.045em;
    line-height:0.98;
    font-size: clamp(64px, 6.2vw, 102px);
    color:#fff;
    max-width:780px;
    margin-bottom: 28px;
  }
  .hero-headline .accent{
    background: var(--grad-headline-accent);
    background-size: 220% 100%;
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    /* Barrido continuo del degradado sobre la línea de acento */
    /* 6s = dos ciclos exactos del titular, para que no se desfasen */
    animation: hlSheen 6s ease-in-out infinite;
  }
  @keyframes hlSheen{
    0%, 100%{ background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
  }

  /* Entrada por líneas: cada una entra desde detrás de su propia máscara.
     El padding/margin compensados dan aire a los descendentes. */
  .hl-line{
    display:block;
    overflow:hidden;
    padding-bottom:0.24em;
    margin-bottom:-0.24em;
  }
  .hl-line > span{
    display:block;
    transform: translateX(-108%);
    /* Ciclo de 3s de izquierda a derecha: entra por la izquierda, se queda
       quieto la mayor parte del tiempo y sale por la derecha. */
    animation: hlRise 3s cubic-bezier(.2,.8,.2,1) infinite both;
  }
  .hl-line span i{font-family: var(--fontdos);font-style: normal;}
  .hl-line:nth-child(1) > span{ animation-delay: 140ms; }
  .hl-line:nth-child(2) > span{ animation-delay: 280ms; }
  .hl-line:nth-child(3) > span{ animation-delay: 420ms; }
  @keyframes hlRise{
    0%       { transform: translateX(-108%); }
    20%, 85% { transform: translateX(0); }
    100%     { transform: translateX(108%); }
  }

  @media (prefers-reduced-motion: reduce){
    .hl-line > span{ transform:none; animation:none; }
    .hero-headline .accent{ animation:none; background-position: 0% 50%; }
  }
  .hero-desc{
    max-width:590px;
    font-size:18px;
    line-height:1.65;
    color: rgba(255,255,255,0.84);
    margin-bottom:40px;
  }
  .hero-actions{ display:flex; gap:18px; flex-wrap:wrap; }

  .btn{
    display:inline-flex; align-items:center; gap:10px;
    border-radius:4px;
    padding:15px 24px;
    font-weight:600;
    font-size:15px;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  }
  .btn-primary{
    background: var(--grad-purple-button);
    color:#fff;
  }
  .btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 34px rgba(44,23,71,0.28); }
  .btn-secondary{
    background:transparent;
    border:1px solid rgba(255,255,255,0.65);
    color:#fff;
  }
  .btn-secondary:hover{ background: rgba(255,255,255,0.10); }
  .btn svg{ width:16px; height:16px; transition: transform 200ms ease; }
  .btn-primary:hover svg{ transform: translateX(3px); }

  .scroll-cue{
    position:absolute; bottom:28px; left:50%; transform:translateX(-50%);
    width:1px; height:46px;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
    z-index:2;
  }
  .scroll-cue::after{
    content:""; position:absolute; left:50%; top:0; width:5px; height:5px; margin-left:-2.5px;
    border-radius:50%; background:#fff;
    animation: cueMove 1.8s ease-in-out infinite;
  }
  @keyframes cueMove{ 0%{ top:0; opacity:1;} 80%{ opacity:0.2;} 100%{ top:40px; opacity:0;} }

  /* ============ HERO: FORMULARIO POR PASOS ============ */
  .qz{
    position:relative;
    z-index:3;
    justify-self:end;
    width:100%;
    max-width: 580px;
    /* Deja libre el nav fijo (86px) más aire al saltar desde el botón flotante */
    scroll-margin-top: 112px;
    background: rgba(22,11,40,0.52);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.45);
  }

  /* --- Stepper --- */
  .qz-steps{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 28px;
  }
  .qz-step{ position:relative; display:flex; flex-direction:column; align-items:center; gap:9px; }
  .qz-step::before{
    content:"";
    position:absolute; top:18px; left:-50%; width:100%; height:1px;
    background: rgba(255,255,255,0.16);
    z-index:0;
  }
  .qz-step:first-child::before{ display:none; }
  .qz-step.done::before{ background: var(--turquoise); }
  .qz-dot{
    position:relative; z-index:1;
    width:36px; height:36px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:13px; font-weight:700;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.55);
    transition: background 260ms ease, border-color 260ms ease, color 260ms ease, box-shadow 260ms ease;
  }
  .qz-step.active .qz-dot{
    background: var(--turquoise);
    border-color: var(--turquoise);
    color: var(--purple-deep);
    box-shadow: 0 0 0 5px rgba(108,198,217,0.20);
  }
  .qz-step.done .qz-dot{
    background: rgba(108,198,217,0.22);
    border-color: var(--turquoise);
    color: var(--turquoise);
  }
  .qz-step-name{
    font-size:9px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase;
    color: rgba(255,255,255,0.42);
    transition: color 260ms ease;
    white-space:nowrap;
  }
  .qz-step.active .qz-step-name{ color: var(--turquoise); font-weight:800; }
  .qz-step.done .qz-step-name{ color: rgba(255,255,255,0.7); }

  /* --- Panel --- */
  .qz-panel[hidden]{ display:none; }
  .qz-panel{ animation: qzIn 340ms cubic-bezier(.2,.8,.2,1); }
  @keyframes qzIn{ from{ opacity:0; transform: translateX(14px);} to{ opacity:1; transform:none; } }

  .qz-count{
    font-size:10px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase;
    color: var(--turquoise);
    margin-bottom: 10px;
  }
  .qz-q{
    font-size:20px; font-weight:700; letter-spacing:-0.5px; line-height:1.25;
    color:#fff;
    margin-bottom: 20px;
  }

  /* --- Opciones --- */
  .qz-opts{ display:flex; flex-direction:column; gap:10px; }
  .qz-opt{
    display:flex; align-items:center; gap:14px;
    width:100%; min-height:56px;
    padding: 14px 22px;
    text-align:left;
    border-radius:14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.82);
    font-size:15px; font-weight:500; line-height:1.35;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
  }
  .qz-opt:hover{
    background: rgba(255,255,255,0.08);
    border-color: rgba(108,198,217,0.55);
    color:#fff;
    transform: translateY(-1px);
  }
  .qz-opt:focus-visible{ outline:2px solid var(--turquoise); outline-offset:2px; }
  .qz-opt::before{
    content:"";
    flex:0 0 auto;
    width:18px; height:18px; border-radius:50%;
    border:1px solid rgba(255,255,255,0.35);
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  }
  .qz-opt:hover::before{ border-color: var(--turquoise); }
  .qz-opt.picked{ border-color: var(--turquoise); background: rgba(108,198,217,0.12); color:#fff; }
  .qz-opt.picked::before{
    border-color: var(--turquoise);
    background: var(--turquoise);
    box-shadow: inset 0 0 0 3px rgba(22,11,40,0.9);
  }

  /* --- Campos de contacto --- */
  .qz-fields{ display:flex; flex-direction:column; gap:14px; }
  .qz-field{ position:relative; }
  .qz-label{
    display:block;
    font-size:11px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom:7px;
  }
  .qz-input{
    width:100%; height:54px;
    padding: 0 22px 0 50px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.16);
    color:#fff;
    font-family: var(--font);
    font-size:15px;
    transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  }
  .qz-input::placeholder{ color: rgba(255,255,255,0.66); }
  .qz-input:focus{
    outline:none;
    border-color: var(--turquoise);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 4px rgba(108,198,217,0.18);
  }
  .qz-input:user-invalid{ border-color:#F58A8A; }
  .qz-ico{
    position:absolute; left:19px; bottom:17px;
    width:19px; height:19px;
    color: rgba(255,255,255,0.62);
    pointer-events:none;
  }
  .qz-input:focus + .qz-ico{ color: var(--turquoise); }
  .qz-error{
    display:none;
    margin-top:12px;
    font-size:13px;
    color:#FFC2C2;
  }
  .qz-error.show{ display:block; }

  .qz-submit{
    width:100%; height:54px;
    margin-top:20px;
    border-radius:9999px;
    background: var(--turquoise);
    color: var(--petroleum);
    font-family: var(--font);
    font-size:15px; font-weight:700;
    display:flex; align-items:center; justify-content:center; gap:9px;
    transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  }
  .qz-submit:hover{ background: var(--turquoise-soft); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(108,198,217,0.28); }
  .qz-submit:active{ transform:none; box-shadow:none; }

  .qz-back{
    margin-top:18px;
    display:inline-flex; align-items:center; gap:7px;
    font-size:12px; font-weight:600;
    color: rgba(255,255,255,0.62);
    transition: color 200ms ease;
  }
  .qz-back:hover{ color:#fff; }
  .qz-back[hidden]{ display:none; }
  .qz-back svg{ width:13px; height:13px; }

  .qz-note{
    margin-top:16px;
    font-size:11.5px; line-height:1.5;
    color: rgba(255,255,255,0.62);
    text-align:center;
  }

  /* --- Pantalla de éxito --- */
  .qz-done{ text-align:center; padding: 22px 0 8px; }
  .qz-done-ico{
    width:58px; height:58px; margin:0 auto 20px;
    border-radius:50%;
    background: rgba(108,198,217,0.16);
    border:1px solid var(--turquoise);
    display:flex; align-items:center; justify-content:center;
    color: var(--turquoise);
  }
  .qz-done-ico svg{ width:26px; height:26px; }
  .qz-done h3{ font-size:21px; font-weight:700; color:#fff; letter-spacing:-0.5px; margin-bottom:10px; }
  .qz-done p{ font-size:14.5px; line-height:1.6; color: rgba(255,255,255,0.78); max-width:34ch; margin:0 auto; }

  @media (prefers-reduced-motion: reduce){
    .qz-panel{ animation:none; }
    .qz-opt:hover, .qz-submit:hover{ transform:none; }
  }

  @media (max-width: 1023px){
    .hero{ height:auto; min-height:0; padding: 130px 0 72px; }
    .hero-inner{ grid-template-columns: 1fr; gap: 48px; }
    .qz{ justify-self:start; max-width:none; }
    .scroll-cue{ display:none; }
  }
  @media (max-width: 560px){
    .hero{background-size: 250px, 70px;}
    .qz{ padding: 24px 20px; border-radius:20px; }
    .qz-step-name{ font-size:8px; letter-spacing:0.02em; }
    .qz-q{ font-size:18px; }
  }

  /* ============ TRUST STRIP ============ */
  /* El padding inferior reserva el espacio donde vive el fundido de .fondo_gene */
  .trust-wrap{ position:relative; z-index:5; margin-top:-48px; padding-bottom: clamp(64px, 8vw, 110px); }
  .trust-strip{
    background: rgba(255,255,255,0.09);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius:16px;
    color:#fff;
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px 12px;
  }
  .trust-item{
    position:relative;
    display:flex; flex-direction:column; gap:6px;
    padding: 6px 24px;
    border-right: 1px solid rgba(255,255,255,0.14);
    border-radius:12px;
    transition: transform 340ms cubic-bezier(.2,.8,.2,1), background 340ms ease;
  }
  .trust-item:last-child{ border-right:none; }
  /* Línea de acento que crece de izquierda a derecha */
  .trust-item::after{
    content:"";
    position:absolute; left:24px; right:24px; bottom:-4px;
    height:2px; border-radius:2px;
    background: var(--turquoise);
    transform: scaleX(0); transform-origin:left center;
    transition: transform 420ms cubic-bezier(.2,.8,.2,1);
  }
  .trust-item:hover{
    transform: translateY(-6px);
    background: rgba(255,255,255,0.09);
  }
  .trust-item:hover::after{ transform: scaleX(1); }

  .trust-label{
    font-size:14px; letter-spacing:0.12em; text-transform:uppercase;
    color: var(--turquoise-soft); font-weight:600;
    transition: color 300ms ease, letter-spacing 340ms cubic-bezier(.2,.8,.2,1);
  }
  .trust-value{
    font-size:21px; font-weight:500;
    transition: transform 340ms cubic-bezier(.2,.8,.2,1);
  }
  .trust-item:hover .trust-label{ color: var(--turquoise); letter-spacing:0.155em; }
  .trust-item:hover .trust-value{ transform: translateX(4px); }

  @media (max-width: 900px){
    .trust-strip{ grid-template-columns: repeat(2, 1fr); gap:20px 0; }
    .trust-item{ border-right:none; border-bottom:1px solid rgba(255,255,255,0.14); padding-bottom:16px; }
    .trust-item::after{ bottom:-1px; }
  }
  @media (prefers-reduced-motion: reduce){
    .trust-item, .trust-item::after, .trust-label, .trust-value{ transition:none; }
    .trust-item:hover{ transform:none; }
    .trust-item:hover .trust-value{ transform:none; }
    .trust-item:hover .trust-label{ letter-spacing:0.12em; }
  }

  @media (max-width: 580px){
    .trust-label{ font-size:12px;}
    .trust-value{ font-size:16px;}
  }

  /* ============ SECTION GENERIC ============ */
  section{ position:relative; }
  .section-pad{ padding: var(--section-space) 0; }
  .section-pad_2{padding: 80px 0 150px;}
  .section-pad_3{padding: 80px 0 200px;}
  .section-pad_4{padding: 40px 0 200px;}
  @media (max-width: 1279px){ .section-pad{ padding: 96px 0; } }
  @media (max-width: 767px){ .section-pad{ padding: 72px 0; }  .section-pad_2{padding: 40px 0 100px;} .section-pad_3{padding: 40px 0 120px;} .section-pad_4{padding: 30px 0 120px;} }

  .section-intro{ max-width: 640px; margin-bottom: 64px; }
  .section-eyebrow{ color: var(--color-dos); margin-bottom:16px; }
  .section-eyebrow.on-dark{ color: var(--turquoise-soft); }
  .section-title{
    font-weight:700;
    letter-spacing:-0.035em;
    line-height:1.02;
    font-size: clamp(32px, 3.6vw, 45px);
    margin-bottom: 18px;
  }
  .section-title span{color: var(--color-uno);}
  .section-title span i, .gene_letra{font-family: var(--fontdos);font-style: normal;font-weight: 400;}
  .section-title span i.rotatext, .gene_letra2{transform: rotate(338deg);    display: inline-block;font-size: clamp(40px, 3.6vw, 58px)}

  .section-title.gene_titublanco span {
    color: var(--color-cuatro);
}

  .section-desc{ font-size:17px; line-height:1.65; color: rgba(6,47,60,0.7); max-width:520px; }
  .section-desc.on-dark{ color: rgba(255,255,255,0.75); }

  /* ============ SERVICES ============ */
  .services{ position:relative; background:  url(../img/s1.svg) no-repeat -160px -150px, url(../img/s2.svg) no-repeat right -230px top -194px, url(../img/s3.svg) no-repeat right -100px bottom -100px;background-size: 300px, 500px, 200px;background-color: var(--off-white)}
  @media (max-width: 520px){ 
    .services{background-size: 250px, 360px, 200px;background-position: -160px -150px, right -230px top -194px, right -100px bottom -100px }
   }
  /* Fundido del gris hacia el blanco de la sección de marcas */
  .services::after{
    content:"";
    position:absolute; left:0; right:0; bottom:0;
    height: clamp(80px, 10vw, 140px);
    background: linear-gradient(180deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.45) 42%,
      rgba(255,255,255,0.88) 78%,
      #FFFFFF 100%);
    pointer-events:none;
    z-index:0;
  }
  .services > .wrap{ position:relative; z-index:1; }
  .services-grid{
    display:grid;
    grid-template-columns: 45% 55%;
    gap: 40px;
    align-items:stretch;
  }
  .service-list{ border-top: 1px solid rgba(6,47,60,0.15); }
  .service-item{
    border-bottom: 1px solid rgba(6,47,60,0.15);
    padding: 26px 6px;
    cursor:pointer;
    display:flex;
    gap:22px;
    align-items:flex-start;
    transition: padding 250ms ease, background 250ms ease;
  }
  /* El hover solo insinúa que se puede pulsar; el estado activo es más fuerte
     y solo lo da el clic. */
  .service-item:hover{ padding-left:10px; background: rgba(161,114,175,0.06); }
  .service-item.active{ padding-left:16px; background:transparent; }
  .service-item:focus-visible{ outline:2px solid var(--turquoise); outline-offset:2px; }
  .service-num{
    font-size:13px; font-weight:600; color: var(--purple);
    padding-top:4px; min-width:26px;
  }
  .service-body h3{
    font-size: 22px; font-weight:700; letter-spacing:-0.02em; margin-bottom:8px;
    color: var(--petroleum);
    transition: color 200ms ease;
  }
  .service-item:hover h3{ color: var(--purple); }
  .service-item.active h3{ color: var(--purple-dark); }
  .service-body p{
    font-size:14.5px; line-height:1.6; color: rgba(6,47,60,0.65);
    max-height:0; opacity:0; overflow:hidden;
    transition: max-height 350ms ease, opacity 300ms ease, margin 300ms ease;
  }
  .service-item.active .service-body p{ max-height:80px; opacity:1; margin-bottom:10px; }
  .service-tags{
    display:flex; flex-wrap:wrap; gap:8px;
    max-height:0; opacity:0; overflow:hidden;
    transition: max-height 350ms ease, opacity 300ms ease;
  }
  .service-item.active .service-tags{ max-height:60px; opacity:1; }
  .service-tags span{
    font-size:11.5px; font-weight:500;
    border:1px solid rgba(161,114,175,0.4);
    color: var(--purple-dark);
    padding:5px 11px; border-radius:20px;
  }
  .service-more{
    display:inline-flex; align-items:center; gap:8px;
    font-size:13px; font-weight:600; color: var(--purple-medium);
    max-height:0; opacity:0; overflow:hidden;
    transition: max-height 350ms ease, opacity 300ms ease, margin 300ms ease, gap 200ms ease;
  }
  .service-item.active .service-more{ max-height:40px; opacity:1; margin-top:14px; }
  .service-more:hover{ gap:12px; color: var(--purple-dark); }
  .service-more svg{ width:14px; height:14px; }

  .service-preview{
    position:relative;
    border-radius:18px;
    overflow:hidden;
    min-height: 420px;
    background: var(--purple-dark);
  }
  .preview-panel{
    position:absolute; inset:0;
    display:flex; align-items:flex-end;
    padding: 34px;
    opacity:0;
    /* Los paneles ocultos no deben capturar el ratón: están apilados unos
       sobre otros y el último taparía al visible (opacity:0 no desactiva
       el puntero), impidiendo pulsar el vídeo o sus controles. */
    pointer-events:none;
    transition: opacity 450ms ease;
  }
  .preview-panel.active{ opacity:1; pointer-events:auto; }
  /* Vídeo dentro del panel: cubre todo el área y queda recortado por el
     radio y el overflow de .service-preview, sin deformarse. */
  .preview-panel video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    background: var(--purple-deep);
  }
  /* En el panel con vídeo la etiqueta sube, para no solaparse con los
     controles nativos que el navegador dibuja abajo. */
  .preview-panel:has(video){ align-items:flex-start; }
  .preview-panel .preview-tag{ position:relative; z-index:2; }
  .preview-tag{
    color:#fff;
    font-size:13px; letter-spacing:0.1em; text-transform:uppercase; font-weight:600;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(6px);
    padding:10px 16px; border-radius:8px;
  }
  .preview-glyph{
    position:absolute;
    font-family: var(--font);
    font-weight:800;
    font-size: 260px;
    letter-spacing:-0.06em;
    color: rgba(255,255,255,0.10);
    top:50%; left:50%;
    transform: translate(-50%,-46%);
    white-space:nowrap;
    pointer-events:none;
  }

  @media (max-width: 900px){
    .services-grid{ grid-template-columns: 1fr; }
    /* El vídeo queda arriba de la lista; al elegir una opción hacemos scroll
       hasta aquí, así que necesita el mismo respiro que .qz bajo el nav fijo. */
    .service-preview{ order:-1; min-height:260px; scroll-margin-top: 112px; }
  }

  /* ============ BRANDS MARQUEE ============ */
  .brands{ position:relative;  overflow:hidden;background: url(../img/s4.svg) no-repeat right 60px top 70px;background-size: 80px; background-color:#fff; }

    @media (max-width: 520px){ 
    .brands{background-position: right 30px top 30px;
    background-size: 40px; }
   }
  /* Fundido del blanco hacia el morado con el que arranca .difference.
     Cierra en #2C1747 exacto, así la unión no deja línea.
     La altura se mantiene por debajo del padding inferior de la sección
     para no oscurecer el marquee ni sus máscaras blancas laterales. */
  .brands::after{
    content:"";
    position:absolute; left:0; right:0; bottom:0;
    height: clamp(64px, 7.5vw, 118px);
    background: linear-gradient(180deg,
      rgba(89,5,145,0) 0%,
      rgba(89,5,145,0.45) 42%,
      rgba(89,5,145,0.88) 78%,
      #590591 100%);
    pointer-events:none;
    z-index:0;
  }
  .brands > .wrap, .brands > .marquee-row{ position:relative; z-index:1; }
  .marquee-row{ overflow:hidden; position:relative; margin-top:34px; }
  .marquee-row::before, .marquee-row::after{
    content:""; position:absolute; top:0; bottom:0; width:80px; z-index:2;
  }
  .marquee-row::before{ left:0; background: linear-gradient(90deg,#fff,transparent); }
  .marquee-row::after{ right:0; background: linear-gradient(270deg,#fff,transparent); }
  .marquee-track{
    display:flex; gap:64px; width:max-content;
    animation: scrollLeft 28s linear infinite;
  }
  .marquee-track.rev{ animation: scrollRight 32s linear infinite; }
  .marquee-track span{
    font-size:26px; font-weight:700; letter-spacing:-0.01em;
    color: var(--petroleum);
    opacity:0.5;
    transition: color 200ms ease, opacity 200ms ease;
    white-space:nowrap;
  }
  .marquee-track span:hover{ color: var(--purple); opacity:1; }
  .marquee-track span img{filter: grayscale(100%);}
  .marquee-track span:hover img{filter: inherit;}
  @keyframes scrollLeft{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
  @keyframes scrollRight{ from{ transform:translateX(-50%);} to{ transform:translateX(0);} }

  /* ============ DIFFERENCE ============ */
  /* Degradado vertical con las uniones integradas: arranca en el blanco de
     .brands y cierra en el petróleo de .results, así no hacen falta capas
     superpuestas y los empalmes son exactos por construcción.
     Los extremos van en px (no en %) para que el fundido mida lo mismo
     aunque la sección cambie de alto entre escritorio y móvil. */
  .difference{
    position:relative;
    color:#fff;
    /* Más aire que el resto de secciones: el padding reserva el espacio
       que necesitan los dos ramales de fundido. */
    padding: clamp(60px, 13vw, 190px) 0;
    /*background: linear-gradient(180deg,
      #FFFFFF 0,
      #EADEF2 26px,
      #C2A5D6 56px,
      #8B5CAF 88px,
     
      #7345A3 48%,
      #45226F 76%,
      #2C1747 calc(100% - 150px),
      #16304A calc(100% - 62px),
      #062F3C 100%);*/
    /*  background: linear-gradient(180deg, #2C1747 0%, #45226F 46%, #7345A3 100%);;*/
    background: url(../img/s4.svg) no-repeat, url(../img/s1.svg) no-repeat, url(../img/s1.svg) no-repeat ;
    background-position: left 60px top 70px, right -220px top 30%, left -220px bottom -170px ;
    background-size: 100px, 360px, 380px;
    background-color: var(--color-uno);
  }

  @media (max-width: 520px){ 
    .difference{
        background-position: right 20px top 20px, right -70px top 61%, left -167px bottom -167px;
        background-size: 50px, 130px, 300px;
    }
   }

  /* Fundido del morado claro hacia el petróleo con el que arranca .results.
     Cabe dentro del padding inferior, así no oscurece las tarjetas. */

  .diff-grid{
    position:relative; z-index:1;
    display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:start;
  }
  .diff-headline{ font-size: clamp(30px, 3.2vw, 42px); font-weight:700; letter-spacing:-0.03em; line-height:1.1; margin-bottom:20px; }
  .diff-headline span{color: var(--color-cuatro);}
  .diff-desc{ color: rgba(255,255,255,0.72); font-size:17px; line-height:1.65; max-width:420px; }
  .pillars{ display:grid; grid-template-columns: 1fr 1fr; gap:22px; }
  .pillar{
    position:relative;
    padding: 26px 24px 24px;
    border:1px solid rgba(255,255,255,0.14);
    border-radius:14px;
    background: rgba(255,255,255,0.04);
    overflow:hidden;
    transition: transform 380ms cubic-bezier(.2,.8,.2,1), background 380ms ease,
                border-color 380ms ease, box-shadow 380ms ease;
  }
  /* Resplandor que aparece desde la esquina del icono */
  .pillar::before{
    content:"";
    position:absolute; inset:0; pointer-events:none;
    background: radial-gradient(circle at 14% 12%, rgba(108,198,217,0.30) 0%, transparent 58%);
    opacity:0;
    transition: opacity 420ms ease;
  }
  .pillar > *{ position:relative; z-index:1; }

  .pillar-ico{
    width:46px; height:46px;
    display:flex; align-items:center; justify-content:center;
    border-radius:12px;
    background: rgba(108,198,217,0.13);
    border:1px solid rgba(108,198,217,0.30);
    color: var(--turquoise);
    margin-bottom:18px;
    transition: background 380ms ease, color 380ms ease, border-color 380ms ease,
                transform 460ms cubic-bezier(.2,.8,.2,1);
  }
  .pillar-ico svg{ width:22px; height:22px; }

  .pillar-num{
    position:absolute; top:20px; right:22px;
    color: rgba(108,198,217,0.45);
    font-size:13px; font-weight:700; letter-spacing:0.08em;
    transition: color 380ms ease, transform 380ms cubic-bezier(.2,.8,.2,1);
  }
  .pillar-title{
    font-size:20px; font-weight:700; margin-bottom:8px;
    transition: color 300ms ease;
  }
  .pillar-desc{
    font-size:14.5px; color: rgba(255,255,255,0.65); line-height:1.55;
    transition: color 300ms ease;
  }

  .pillar:hover{
    transform: translateY(-7px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(108,198,217,0.55);
    box-shadow: 0 20px 44px rgba(0,0,0,0.28);
  }
  .pillar:hover::before{ opacity:1; }
  .pillar:hover .pillar-ico{
    background: var(--turquoise);
    border-color: var(--turquoise);
    color: var(--purple-deep);
    transform: rotate(-8deg) scale(1.1);
  }
  .pillar:hover .pillar-num{ color: var(--turquoise); transform: translateY(-2px); }
  .pillar:hover .pillar-title{ color: var(--turquoise-soft); }
  .pillar:hover .pillar-desc{ color: rgba(255,255,255,0.85); }

  @media (max-width: 900px){ .diff-grid{ grid-template-columns:1fr; } }
  @media (max-width: 520px){ .pillars{ grid-template-columns:1fr; } }
  @media (prefers-reduced-motion: reduce){
    .pillar, .pillar::before, .pillar-ico, .pillar-num, .pillar-title, .pillar-desc{ transition:none; }
    .pillar:hover{ transform:none; }
    .pillar:hover .pillar-ico{ transform:none; }
    .pillar:hover .pillar-num{ transform:none; }
  }

  /* ============ RESULTS ============ */
  .results{ position:relative;background:url(../img/s5.svg) no-repeat -160px -150px ; background-size: 350px;background-color: var(--petroleum); color:#fff; }

  @media (max-width: 520px){ 
    .results{    background-size: 250px; }
   }
  /* Fundido del petróleo hacia el gris de la sección de proyectos */
  .results::after{
    content:"";
    position:absolute; left:0; right:0; bottom:0;
    height: clamp(80px, 10vw, 140px);
    background: linear-gradient(180deg,
      rgba(248,247,250,0) 0%,
      rgba(248,247,250,0.45) 42%,
      rgba(248,247,250,0.88) 78%,
      #f8f7fa 100%);
    pointer-events:none;
    z-index:0;
  }
  .results > .wrap{ position:relative; z-index:1; }

.results > .wrap{background: url(../img/s3.svg) no-repeat right 300px bottom 270px; background-size:80px }

  .results .section-title .accent{ color: var(--turquoise); }
  .metrics{ display:grid; grid-template-columns: repeat(4,1fr); gap:1px; background: rgba(255,255,255,0.12); border-radius:16px; overflow:hidden; }
  .metric{ background: var(--color-tres); padding: 40px 28px; text-align:left; }
  .metric-value{ font-size: clamp(38px,4vw,54px); font-weight:700; letter-spacing:-0.03em; color: var(--turquoise-soft); margin-bottom:10px; }
  .metric-label{ font-size:18px; color: rgba(255,255,255,0.7); }
  .metrics-note{ margin-top:18px; font-size:12.5px; color: rgba(255,255,255,0.4); }
  @media (max-width: 900px){ .metrics{ grid-template-columns: repeat(2,1fr); } }

  /* ============ PROJECTS ============ */
  .projects{ position:relative;
    background: url(../img/s5.svg) no-repeat , url(../img/s2.svg) no-repeat ;
    background-position: right -160px top 150px, left -230px bottom -194px;
    background-size: 320px, 500px;
    background-color: var(--off-white); }

   @media (max-width: 520px){ 
    .projects{background-position: right -160px top -150px, left -230px bottom -194px;
    background-size: 260px, 400px;}
   }
  /* Fundido del gris hacia el morado oscuro de los testimonios */

  .projects > .wrap{ position:relative; z-index:1; }
  .projects-grid{
    display:grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 220px;
    gap:20px;
  }
  .project-card{
    position:relative; border-radius:14px; overflow:hidden;
    display:flex; align-items:flex-end;
    padding:26px;
    color:#fff;
    isolation:isolate;
  }
  .project-card::before{
    content:""; position:absolute; inset:0; z-index:-1;
  }
  .project-card::after{
    content:""; position:absolute; inset:0; z-index:-1;
    background: linear-gradient(0deg, rgba(6,47,60,0.55) 0%, rgba(6,47,60,0) 55%);
  }
  /* La foto del proyecto (si la hay) cubre toda la tarjeta como fondo:
     va detrás del degradado oscuro de ::after (para que el texto siga
     siendo legible) pero delante del color liso de ::before (que queda
     de respaldo si la tarjeta no lleva imagen). */
  .project-card img, .project-card video{
    position:absolute; inset:0; z-index:-1;
    width:100%; height:100%;
    object-fit:cover;
  }
  .p1{ grid-column: span 4; grid-row: span 2; }
  .p2{ grid-column: span 2; grid-row: span 2; }
  .p3{ grid-column: span 2; grid-row: span 1; }
  .p4{ grid-column: span 4; grid-row: span 1; }
  .p1::before{ background: linear-gradient(120deg, var(--purple-dark), var(--purple-medium)); }
  .p2::before{ background: linear-gradient(160deg, var(--petroleum), var(--petroleum-soft)); }
  .p3::before{ background: linear-gradient(160deg, var(--purple), var(--purple-soft)); }
  .p4::before{ background: linear-gradient(100deg, var(--purple-deep), var(--purple-dark)); }
  .project-cat{ font-size:12px; text-transform:uppercase; letter-spacing:0.12em; opacity:0.8; margin-bottom:6px; font-weight:600;}
  .project-name{ font-size:22px; font-weight:700; letter-spacing:-0.02em; }
  .project-result{ font-size:13px; opacity:0.75; margin-top:4px; }
  .project-card:hover .project-name{ transform: translateY(-2px); }
  .project-card{ transition: transform 400ms ease; }
  .project-card:hover{ transform: scale(1.015); }
  @media (max-width: 900px){
    .projects-grid{ grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .p1,.p2,.p3,.p4{ grid-column: span 1; grid-row: span 1; }
  }



  /* ============ TESTIMONIALS ============ */
  .testimonials{ position:relative; 
    background: url(../img/s1.svg) no-repeat, url(../img/s1.svg) no-repeat, url(../img/s4.svg) no-repeat, url(../img/s4.svg) no-repeat ;
    background-position: right -170px top -170px, left -220px top 30%,  left 55% top 70px,  left 62% top 110px ;
    background-size: 340px, 300px, 70px, 50px;
    background-color: var(--color-tres); color:#fff; }
    @media (max-width: 520px){ 
    .testimonials{
        background-position: right -130px top -110px, left -145px top 60%,  left 53% top 19px,  left 8% top 165px ;
        background-size: 240px, 220px, 40px, 30px;
    }
   }
  /* Fundido del morado oscuro hacia el blanco de la sección de blog */
  .testimonials::after{
    content:"";
    position:absolute; left:0; right:0; bottom:-1px;
    height: clamp(80px, 10vw, 140px);
    background: linear-gradient(180deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.45) 42%,
      rgba(255,255,255,0.88) 78%,
      #FFFFFF 100%);
    pointer-events:none;
    z-index:0;
  }
  .testimonials > .wrap{ position:relative; z-index:1; }
  .t-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
  .t-card{
    position:relative;
    overflow:hidden;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius:16px;
    padding:30px;
    transition: transform 380ms cubic-bezier(.2,.8,.2,1), background 380ms ease,
                border-color 380ms ease, box-shadow 380ms ease;
  }
  /* Comilla decorativa que se enciende al pasar el cursor */
  .t-card::before{
    content:"\201C";
    position:absolute; top:2px; right:22px; z-index:0;
    font-size:78px; line-height:1; font-weight:700;
    color: rgba(255,255,255,0.10);
    pointer-events:none;
    transform-origin: top right;
    transition: color 380ms ease, transform 460ms cubic-bezier(.2,.8,.2,1);
  }
  /* Línea de acento que recorre la base de la tarjeta */
  .t-card::after{
    content:"";
    position:absolute; left:0; right:0; bottom:0; z-index:0;
    height:3px;
    background: var(--turquoise);
    transform: scaleX(0); transform-origin: left center;
    transition: transform 420ms cubic-bezier(.2,.8,.2,1);
  }
  .t-card:hover{
    transform: translateY(-6px);
    background: rgba(255,255,255,0.11);
    border-color: rgba(108,198,217,0.50);
    box-shadow: 0 20px 44px rgba(0,0,0,0.30);
  }
  .t-card:hover::before{ color: rgba(108,198,217,0.42); transform: scale(1.12); }
  .t-card:hover::after{ transform: scaleX(1); }

  /* El texto siempre por encima de la comilla */
  .t-quote, .t-name, .t-role{ position:relative; z-index:1; }
  .t-quote{
    font-size:15.5px; line-height:1.65; color: rgba(255,255,255,0.88); margin-bottom:22px;
    transition: color 300ms ease;
  }
  .t-name{ font-weight:600; font-size:14px; transition: color 300ms ease; }
  .t-role{ font-size:12.5px; color: rgba(255,255,255,0.55); transition: color 300ms ease; }
  .t-card:hover .t-quote{ color:#fff; }
  .t-card:hover .t-name{ color: var(--turquoise); }
  .t-card:hover .t-role{ color: rgba(255,255,255,0.75); }

  @media (max-width: 900px){ .t-grid{ grid-template-columns:1fr; } }
  @media (prefers-reduced-motion: reduce){
    .t-card, .t-card::before, .t-card::after, .t-quote, .t-name, .t-role{ transition:none; }
    .t-card:hover{ transform:none; }
    .t-card:hover::before{ transform:none; }
  }


  /* ============ BLOG ============ */
  .blog{ 
    background: url(../img/s5.svg) no-repeat, url(../img/s6.svg) no-repeat ;
    background-position: left -220px bottom -170px, right -41px bottom -96px ;
    background-size: 380px, 480px;
    background-color:#fff; scroll-margin-top: 86px; }

    @media (max-width: 520px){ 
    .blog{
        background-position: left -220px bottom -170px, right -41px bottom -96px ;
        background-size: 120px, 252px;
    }
   }
   
  .blog-head{
    display:flex; align-items:flex-end; justify-content:space-between;
    gap:32px; flex-wrap:wrap; margin-bottom:56px;
  }
  .blog-head .section-intro{ margin-bottom:0; }
  .blog-all{
    display:inline-flex; align-items:center; gap:9px;
    font-size:14px; font-weight:600;
    color: var(--purple-medium);
    padding-bottom:4px;
    border-bottom:1px solid rgba(115,69,163,0.35);
    transition: color 200ms ease, border-color 200ms ease, gap 200ms ease;
    white-space:nowrap;
  }
  .blog-all svg{ width:15px; height:15px; }
  .blog-all:hover{ color: var(--purple-dark); border-color: var(--purple-dark); gap:13px; }

  .blog-grid{ display:grid; grid-template-columns: 1.35fr 1fr; gap:52px; align-items:start; }

  /* Artículo destacado */
  .post-lead{ display:block; }
  .post-lead-thumb{
    position:relative;
    aspect-ratio: 16 / 9;
    border-radius:14px;
    overflow:hidden;
    background: linear-gradient(120deg, var(--purple-dark), var(--purple-medium) 55%, var(--purple) 100%);
    margin-bottom:22px;
  }
  .post-lead-thumb::after{
    content:""; position:absolute; inset:0;
    background: radial-gradient(circle at 78% 22%, rgba(108,198,217,0.42) 0%, transparent 52%);
  }
  .post-chip{
    position:absolute; z-index:1; top:16px; left:16px;
    background: rgba(255,255,255,0.94);
    color: var(--purple-dark);
    font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
    padding:7px 14px; border-radius:999px;
  }
  /* Insignia de categoría "suelta" (no posicionada sobre una imagen),
     para usar dentro de una línea .post-meta como la del detalle del blog. */
  .meta-chip{
    display:inline-flex; align-items:center; flex-shrink:0;
    background: var(--off-white);
    color: var(--purple-dark);
    font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
    padding:5px 12px; border-radius:999px;
  }
  .post-meta{
    display:flex; align-items:center; gap:10px;
    font-size:12.5px; color: rgba(6,47,60,0.55);
    margin-bottom:10px;
  }
  .post-meta span{ display:inline-block; width:3px; height:3px; border-radius:50%; background: rgba(6,47,60,0.3); }
  .post-lead h3{
    font-size:28px; font-weight:700; letter-spacing:-0.03em; line-height:1.2;
    margin-bottom:12px;
    transition: color 200ms ease;
  }
  .post-lead p{ font-size:15.5px; line-height:1.65; color: rgba(6,47,60,0.7); max-width:52ch; margin-bottom:18px; }
  .post-more{
    display:inline-flex; align-items:center; gap:8px;
    font-size:14px; font-weight:600; color: var(--purple-medium);
    transition: gap 200ms ease;
  }
  .post-more svg{ width:14px; height:14px; }
  .post-lead:hover h3{ color: var(--purple-medium); }
  .post-lead:hover .post-more{ gap:12px; }

  /* Listado lateral */
  .post-list{ display:flex; flex-direction:column; }
  .post-row{
    display:grid; grid-template-columns: 92px 1fr; gap:18px; align-items:center;
    padding:22px 0;
    border-bottom:1px solid rgba(6,47,60,0.10);
  }
  .post-list .post-row:first-child{ padding-top:0; }
  .post-list .post-row:last-child{ border-bottom:none; padding-bottom:0; }
  .post-row-thumb{
    width:92px; height:78px;
    border-radius:11px;
    overflow:hidden;
    transition: transform 300ms ease;
  }
  .post-row:nth-child(1) .post-row-thumb{ background: linear-gradient(150deg, var(--petroleum), var(--petroleum-soft)); }
  .post-row:nth-child(2) .post-row-thumb{ background: linear-gradient(150deg, var(--purple), var(--purple-soft)); }
  .post-row:nth-child(3) .post-row-thumb{ background: linear-gradient(150deg, var(--purple-deep), var(--purple-medium)); }
  .post-row:hover .post-row-thumb{ transform: scale(1.05); }
  .post-row h3{
    font-size:16.5px; font-weight:600; letter-spacing:-0.015em; line-height:1.35;
    transition: color 200ms ease;
  }
  .post-row:hover h3{ color: var(--purple-medium); }
  .post-row .post-meta{ margin-bottom:7px; }

  @media (max-width: 1023px){
    .blog-grid{ grid-template-columns: 1fr; gap:44px; }
    .post-lead h3{ font-size:24px; }
  }
  @media (max-width: 560px){
    .post-row{ grid-template-columns: 72px 1fr; gap:14px; }
    .post-row-thumb{ width:72px; height:64px; }
    .post-lead h3{ font-size:21px; }
  }
  @media (prefers-reduced-motion: reduce){
    .post-row:hover .post-row-thumb{ transform:none; }
  }

  /* ============ BLOG PÚBLICO (listado y detalle) ============ */
  .blog-hero{
    position:relative;
    padding: 168px 0 64px;
    color:#fff;
    background: var(--grad-hero-main);
    background-image:
      radial-gradient(circle at 85% 12%, rgba(108,198,217,0.35) 0%, transparent 50%),
      radial-gradient(circle at 10% 90%, rgba(195,157,205,0.28) 0%, transparent 55%),
      var(--grad-hero-main);
    overflow:hidden;
  }
  .blog-hero > .wrap{ position:relative; z-index:1; }
  .blog-hero .eyebrow{ color: var(--turquoise-soft); margin-bottom:14px; }
  .blog-hero h1{
    font-weight:800; letter-spacing:-0.03em; line-height:1.05;
    font-size: clamp(34px, 5vw, 58px);
    margin-bottom:16px;
  }
  .blog-hero h1 span{ color: var(--turquoise); }
  .blog-hero p{ font-size:16.5px; line-height:1.65; color: rgba(255,255,255,0.78); max-width:560px; margin-bottom:40px; }

  .blog-toolbar{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; justify-content:space-between; }
  /* min-width:0 evita que el <input> desborde el contenedor flex: por
     defecto, los form controls ignoran su width:100% al calcular el
     tamaño mínimo dentro de un flex item. */
  .blog-search{ position:relative; flex:1 1 320px; max-width:460px; min-width:0; }
  .blog-search svg{ position:absolute; left:16px; top:50%; transform:translateY(-50%); width:18px; height:18px; color: rgba(255,255,255,0.55); pointer-events:none; }
  .blog-search input{
    width:100%; padding:13px 16px 13px 46px;
    border-radius:999px; border:1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
    color:#fff; font-family:inherit; font-size:14px;
    transition: background 200ms ease, border-color 200ms ease;
  }
  .blog-search input::placeholder{ color: rgba(255,255,255,0.5); }
  .blog-search input:focus{ outline:none; background: rgba(255,255,255,0.14); border-color: var(--turquoise); }

  .blog-filters{ display:flex; flex-wrap:wrap; gap:10px; }
  .blog-filter{
    padding:10px 18px; border-radius:999px;
    font-size:13px; font-weight:600;
    border:1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.85);
    background:transparent;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
    white-space:nowrap;
  }
  .blog-filter:hover{ border-color: rgba(255,255,255,0.5); }
  .blog-filter.active{ background: var(--turquoise); border-color: var(--turquoise); color: var(--purple-deep); }

  /* ---------- Listado ---------- */
  .blog-list{ background: var(--off-white); padding: 72px 0 96px; }
  .blog-grid-cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:28px; }
  .blog-card{
    display:flex; flex-direction:column;
    background:#fff; border-radius:16px; overflow:hidden;
    border:1px solid rgba(6,47,60,0.08);
    transition: transform 380ms cubic-bezier(.2,.8,.2,1), box-shadow 380ms ease;
  }
  .blog-card:hover{ transform: translateY(-4px); box-shadow: 0 22px 44px rgba(44,23,71,0.14); }
  .blog-card-thumb{
    position:relative; aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-medium) 55%, var(--purple) 100%);
  }
  .blog-card-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .blog-card-body{ padding:22px 22px 24px; display:flex; flex-direction:column; flex:1; }
  .blog-card .post-meta{ margin-bottom:10px; }
  .blog-card h3{
    font-size:18.5px; font-weight:700; letter-spacing:-0.02em; line-height:1.32;
    margin-bottom:10px;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    transition: color 200ms ease;
  }
  .blog-card:hover h3{ color: var(--purple-medium); }
  .blog-card p{
    font-size:14px; line-height:1.6; color: rgba(6,47,60,0.65);
    margin-bottom:18px;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  }
  .blog-card .post-more{ margin-top:auto; }

  .blog-empty{ text-align:center; padding:64px 20px; color: rgba(6,47,60,0.55); }

  .blog-pagination{ display:flex; gap:8px; justify-content:center; margin-top:52px; flex-wrap:wrap; }
  .blog-page-link{
    display:inline-flex; align-items:center; justify-content:center;
    min-width:40px; height:40px; padding:0 12px;
    border-radius:10px; border:1px solid rgba(6,47,60,0.14);
    font-size:14px; font-weight:600; color: var(--petroleum-deep);
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  }
  .blog-page-link:hover{ border-color: var(--purple-medium); color: var(--purple-medium); }
  .blog-page-link.active{ background: var(--purple-dark); border-color: var(--purple-dark); color:#fff; }

  @media (max-width: 1000px){ .blog-grid-cards{ grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px){
    .blog-hero{ padding:150px 0 48px; }
    .blog-grid-cards{ grid-template-columns: 1fr; }
    .blog-toolbar{ flex-direction:column; align-items:stretch; }
    /* En columna, flex-basis (320px, pensado como ancho en fila) pasa a
       leerse como ALTO y estira el formulario entero: se neutraliza junto
       con el ancho, que forzamos explícito en vez de depender del stretch. */
    .blog-search{ flex:0 0 auto; width:100%; max-width:none; }
    .blog-filters{ overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px; }
  }

  /* ---------- Detalle: portada oscura envolvente ---------- */
  .post-detail-wrap{ max-width:760px; margin:0 auto; }

  .post-hero{
    position:relative;
    min-height:440px;
    display:flex; align-items:flex-end;
    padding:168px 0 48px;
    background: var(--grad-hero-deep);
    overflow:hidden;
  }
  .post-hero-img{
    position:absolute; inset:0; z-index:0;
    width:100%; height:100%; object-fit:cover;
  }
  /* Degradado de legibilidad sobre la foto: solo hace falta cuando hay
     imagen real de portada (el gradiente de respaldo ya es oscuro). */
  .post-hero.has-image::after{
    content:""; position:absolute; inset:0; z-index:1;
    /* El piso de opacidad (0.5 arriba) no baja más para que el nav y el
       logo sigan siendo legibles sobre cualquier foto, aunque sea clara. */
    background: linear-gradient(0deg, rgba(19,8,36,0.95) 0%, rgba(19,8,36,0.75) 45%, rgba(19,8,36,0.5) 100%);
  }
  .post-hero > .wrap{ position:relative; z-index:2; }
  .post-hero .post-back{ color: rgba(255,255,255,0.8); }
  .post-hero .post-back:hover{ color:#fff; }
  .post-hero .post-meta{ color: rgba(255,255,255,0.65); margin-bottom:18px; }
  .post-hero .meta-chip{ background: var(--turquoise); color: var(--purple-deep); }
  .post-hero h1{
    font-size: clamp(28px, 4.4vw, 46px);
    font-weight:800; letter-spacing:-0.03em; line-height:1.14;
    color:#fff;
    max-width:820px;
  }

  .post-back{
    display:inline-flex; align-items:center; gap:8px;
    font-size:13.5px; font-weight:600; color: var(--purple-medium);
    margin-bottom:28px; transition: gap 200ms ease, color 200ms ease;
  }
  .post-back svg{ width:15px; height:15px; }
  .post-back:hover{ gap:12px; }

  /* El cuerpo continúa en oscuro: misma sensación de lectura envolvente
     que el hero, sin cortes bruscos de color. */
  .post-dark-body{ background: var(--purple-deep); padding:56px 0 64px; }
  .post-detail-body{ font-size:17px; line-height:1.85; color: rgba(255,255,255,0.76); }
  .post-detail-body p{ margin-bottom:1.3em; }
  .post-detail-body strong{ color:#fff; font-weight:700; }

  .post-detail-author{
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px;
    margin-top:48px; padding-top:28px; border-top:1px solid rgba(255,255,255,0.14);
  }
  .post-detail-author .who{ display:flex; align-items:center; gap:12px; }
  .post-detail-author .avatar{
    width:44px; height:44px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background: var(--grad-purple-button); color:#fff; font-weight:700; font-size:16px;
    flex-shrink:0;
  }
  .post-detail-author .name{ font-weight:700; font-size:14.5px; color:#fff; }
  .post-detail-author .role{ font-size:13px; color: rgba(255,255,255,0.5); }

  .post-share{ display:flex; align-items:center; gap:10px; }
  .post-share span{ font-size:12.5px; color: rgba(255,255,255,0.5); margin-right:2px; }
  .post-share a, .post-share button{
    width:38px; height:38px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    border:1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.75);
    background:transparent; cursor:pointer;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  }
  .post-share svg{ width:16px; height:16px; }
  .post-share a:hover, .post-share button:hover{ background: rgba(255,255,255,0.1); border-color: var(--turquoise); color: var(--turquoise); }

  .post-related{ background: var(--off-white); padding:72px 0 96px; }
  .post-related h2{ font-size:22px; font-weight:700; margin-bottom:32px; letter-spacing:-0.02em; }

  .blog-cta{
    position:relative; overflow:hidden;
    background: var(--grad-dark-transition);
    color:#fff; padding:72px 0; text-align:center;
  }
  .blog-cta h2{ font-size: clamp(24px, 3vw, 34px); font-weight:800; letter-spacing:-0.02em; margin-bottom:14px; }
  .blog-cta p{ font-size:15.5px; color: rgba(255,255,255,0.75); margin-bottom:28px; max-width:480px; margin-left:auto; margin-right:auto; }

  @media (max-width: 640px){
    .post-hero{ min-height:360px; padding:150px 0 40px; }
    .post-detail-author{ flex-direction:column; align-items:flex-start; }
  }

  /* ============ DETALLE DE SERVICIO ============ */
  .svc-hero{
    position:relative;
    min-height:560px;
    display:flex; align-items:flex-end;
    padding:168px 0 64px;
    overflow:hidden;
    color:#fff;
  }
  .svc-hero-video{
    position:absolute; inset:0; z-index:0;
    width:100%; height:100%; object-fit:cover;
  }
  .svc-hero::after{
    content:""; position:absolute; inset:0; z-index:1;
    background: linear-gradient(0deg, rgba(19,8,36,0.92) 0%, rgba(19,8,36,0.68) 45%, rgba(19,8,36,0.42) 100%);
  }
  .svc-hero > .wrap{ position:relative; z-index:2; }
  .svc-back{
    display:inline-flex; align-items:center; gap:8px;
    font-size:13.5px; font-weight:600; color: rgba(255,255,255,0.8);
    margin-bottom:28px; transition: gap 200ms ease, color 200ms ease;
  }
  .svc-back svg{ width:15px; height:15px; }
  .svc-back:hover{ gap:12px; color:#fff; }
  .svc-hero .eyebrow{ color: var(--turquoise-soft); margin-bottom:14px; display:flex; align-items:center; gap:10px; }
  .svc-hero .eyebrow .num{ color: rgba(255,255,255,0.4); }
  .svc-hero h1{
    font-size: clamp(32px, 4.6vw, 52px);
    font-weight:800; letter-spacing:-0.03em; line-height:1.1;
    max-width:760px; margin-bottom:18px;
  }
  .svc-hero p{ font-size:17px; line-height:1.6; color: rgba(255,255,255,0.8); max-width:600px; margin-bottom:26px; }
  .svc-hero .service-tags{ max-height:none; opacity:1; overflow:visible; margin-bottom:32px; }
  .svc-hero .service-tags span{ border-color: rgba(255,255,255,0.35); color:#fff; }
  .svc-hero-actions{ display:flex; flex-wrap:wrap; gap:14px; }

  .svc-intro{ background:#fff; padding:72px 0; }
  .svc-intro .wrap{ max-width:820px; margin:0 auto; text-align:center; }
  .svc-intro p{ font-size:18px; line-height:1.75; color: rgba(6,47,60,0.75); }

  .svc-benefits{ background: var(--off-white); padding:24px 0 88px; }
  .svc-benefits-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:24px; }
  .svc-card{
    background:#fff; border-radius:16px; padding:28px 24px;
    border:1px solid rgba(6,47,60,0.08);
  }
  .svc-card .ico{
    width:44px; height:44px; border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    background: rgba(115,69,163,0.10); color: var(--purple-medium);
    margin-bottom:18px;
  }
  .svc-card .ico svg{ width:22px; height:22px; }
  .svc-card h3{ font-size:16.5px; font-weight:700; letter-spacing:-0.01em; margin-bottom:8px; color: var(--petroleum-deep); }
  .svc-card p{ font-size:14px; line-height:1.6; color: rgba(6,47,60,0.65); }

  .svc-audience{ background:  url(../img/s1.svg) no-repeat, url(../img/s1.svg) no-repeat;
    background-position:  right -220px top 30%, left -220px bottom -170px;background-size:  360px, 380px;background-color: var(--color-uno); color:#fff; padding:88px 0; }
  .svc-audience .section-eyebrow{ color: var(--turquoise-soft); }
  .svc-audience .section-title{ color:#fff; }
  .svc-audience .section-title span{ color: var(--turquoise); }
  .svc-audience-list{ display:grid; grid-template-columns: repeat(2, 1fr); gap:18px 32px; margin-top:40px; }
  .svc-audience-list li{
    display:flex; align-items:flex-start; gap:14px;
    font-size:15.5px; line-height:1.55; color: rgba(255,255,255,0.85);
  }
  .svc-audience-list .check{
    flex-shrink:0; width:26px; height:26px; border-radius:50%;
    background: rgba(84,237,222,0.14); color: var(--turquoise);
    display:flex; align-items:center; justify-content:center;
    margin-top:1px;
  }
  .svc-audience-list .check svg{ width:14px; height:14px; }

  .svc-why{ background:#fff; padding:88px 0; }
  .svc-why-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:24px; margin-top:40px; }
  .svc-why-card{ text-align:left; }
  .svc-why-card .ico{
    width:48px; height:48px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background: var(--grad-purple-button); color:#fff;
    margin-bottom:16px;
  }
  .svc-why-card .ico svg{ width:22px; height:22px; }
  .svc-why-card h3{ font-size:16px; font-weight:700; margin-bottom:8px; color: var(--petroleum-deep); }
  .svc-why-card p{ font-size:14px; line-height:1.6; color: rgba(6,47,60,0.65); }

  .svc-cross{ background: url(../img/s1.svg) no-repeat, url(../img/s1.svg) no-repeat, url(../img/s4.svg) no-repeat, url(../img/s4.svg) no-repeat ;
    background-position: right -170px top -170px, left -220px top 30%,  left 55% top 70px,  left 62% top 110px ;
    background-size: 340px, 300px, 70px, 50px;background-color: var(--off-white); padding:88px 0; }

    @media (max-width: 520px){ 
    .svc-cross{
        background-position: right -130px top -110px, left -145px top 60%,  left 53% top 19px,  left 8% top 165px ;
        background-size: 240px, 220px, 40px, 30px;
    }
   }
  .svc-cross-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; margin-top:40px; }
  .svc-cross-card{
    display:block; background:#fff; border-radius:14px; padding:24px;
    border:1px solid rgba(6,47,60,0.08);
    transition: transform 300ms ease, box-shadow 300ms ease;
  }
  .svc-cross-card:hover{ transform: translateY(-3px); box-shadow: 0 16px 34px rgba(44,23,71,0.12); }
  .svc-cross-card .num{ font-size:12px; font-weight:700; color: var(--purple); margin-bottom:10px; display:block; }
  .svc-cross-card h3{ font-size:17px; font-weight:700; margin-bottom:6px; color: var(--petroleum-deep); transition: color 200ms ease; }
  .svc-cross-card:hover h3{ color: var(--purple-medium); }
  .svc-cross-card p{ font-size:13.5px; line-height:1.55; color: rgba(6,47,60,0.6); }

  @media (max-width: 900px){
    .svc-benefits-grid{ grid-template-columns: repeat(2, 1fr); }
    .svc-why-grid{ grid-template-columns: repeat(2, 1fr); }
    .svc-cross-grid{ grid-template-columns: repeat(2, 1fr); }
    .svc-audience-list{ grid-template-columns: 1fr; }
  }
  @media (max-width: 640px){
    .svc-hero{ min-height:460px; padding:150px 0 40px; }
    .svc-benefits-grid{ grid-template-columns: 1fr; }
    .svc-why-grid{ grid-template-columns: 1fr; }
    .svc-cross-grid{ grid-template-columns: 1fr; }
  }

  /* ============ DETALLE DE PROYECTO ============ */
  /* El hero, beneficios, "para quién", "ventajas" y "otros proyectos"
     reutilizan las clases .svc-* de servicio-detalle.php: son el mismo
     patrón visual, no hace falta duplicar CSS. Aquí solo lo que es propio
     del proyecto: reto/solución, resultados, testimonio y galería. */

  .proj-stats{ background:#fff; padding:56px 0 0; }
  .proj-stats-row{ display:grid; grid-template-columns: repeat(3, 1fr); gap:1px; background: rgba(6,47,60,0.08); border-radius:16px; overflow:hidden; }
  .proj-stat{ background: var(--off-white); padding:32px 24px; text-align:center; }
  .proj-stat .valor{ font-size: clamp(28px, 3.2vw, 40px); font-weight:800; letter-spacing:-0.02em; color: var(--purple-dark); margin-bottom:6px; }
  .proj-stat .etiqueta{ font-size:13.5px; color: rgba(6,47,60,0.6); }

  .proj-context{ background:#fff; padding:64px 0 24px; }
  .proj-context-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:32px; }
  .proj-context-card h3{
    display:flex; align-items:center; gap:10px;
    font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em;
    color: var(--purple-medium); margin-bottom:14px;
  }
  .proj-context-card h3 .dot{ width:8px; height:8px; border-radius:50%; background: var(--turquoise); flex-shrink:0; }
  .proj-context-card p{ font-size:16px; line-height:1.75; color: rgba(6,47,60,0.72); }

  .proj-testimonial{ position:relative; overflow:hidden; background: var(--grad-hero-deep); color:#fff; padding:88px 0; }
  .proj-testimonial-card{ max-width:720px; margin:0 auto; text-align:center; }
  .proj-testimonial-card svg{ width:34px; height:34px; color: var(--turquoise); margin:0 auto 22px; }
  .proj-testimonial-card p{ font-size: clamp(19px, 2.4vw, 26px); font-weight:600; line-height:1.5; letter-spacing:-0.01em; margin-bottom:24px; }
  .proj-testimonial-name{ font-weight:700; font-size:14.5px; }
  .proj-testimonial-role{ font-size:13px; color: rgba(255,255,255,0.6); }

  .proj-gallery{ background: var(--off-white); padding:88px 0; }
  .proj-gallery-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; margin-top:40px; }
  .proj-gallery-grid img{
    width:100%; aspect-ratio: 4/3; object-fit:cover;
    border-radius:14px; border:1px solid rgba(6,47,60,0.08);
    transition: transform 350ms ease;
  }
  .proj-gallery-grid a{ display:block; border-radius:14px; overflow:hidden; }
  .proj-gallery-grid a:hover img{ transform: scale(1.04); }

  @media (max-width: 900px){
    .proj-context-grid{ grid-template-columns: 1fr; }
  }
  @media (max-width: 640px){
    .proj-stats-row{ grid-template-columns: 1fr; }
    .proj-gallery-grid{ grid-template-columns: 1fr; }
  }

  /* ============ FOOTER ============ */
  footer{ position:relative; background: var(--color-uno); color:#fff; padding: 130px 0 32px; }
  @media (max-width: 520px){ 
    footer{padding: 60px 0 32px; }
    .footer-grid{margin-bottom: 35px}
   }
  /* Fundido desde el blanco de la sección de blog hacia el morado del footer.
     Se queda dentro del padding superior para no restar contraste al contenido. */

  footer > .wrap{ position:relative; z-index:1; }
  .footer-grid{ display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap:48px; margin-bottom:64px; }
  .footer-brand-name{ font-size:22px; font-weight:700; margin-bottom:10px; }
  .footer-brand-tagline{ color: var(--turquoise-soft); font-size:13px; margin-bottom:16px; }
  .footer-brand-desc{ font-size:14px; color: rgba(255,255,255,0.6); line-height:1.6; max-width:280px; }
  .footer-col h4{ font-size:12px; text-transform:uppercase; letter-spacing:0.1em; color: rgba(255,255,255,0.45); margin-bottom:18px; }
  .footer-col ul li{ margin-bottom:12px; }
  .footer-col ul li a{ font-size:14.5px; color: rgba(255,255,255,0.85); transition: color 200ms ease; }
  .footer-col ul li a:hover{ color: var(--turquoise); }
  .footer-social{ display:flex; gap:10px; margin-top:22px; }
  .footer-social a{
    width:40px; height:40px;
    display:flex; align-items:center; justify-content:center;
    border-radius:50%;
    border:1px solid rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.75);
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
  }
  .footer-social a svg{ width:17px; height:17px; }
  .footer-social a:hover{
    background: rgba(108,198,217,0.14);
    border-color: var(--turquoise);
    color: var(--turquoise);
    transform: translateY(-2px);
  }
  .footer-social a:focus-visible{ outline:2px solid var(--turquoise); outline-offset:3px; }
  @media (prefers-reduced-motion: reduce){ .footer-social a:hover{ transform:none; } }

  .footer-bottom{
    display:flex; justify-content:space-between; align-items:center;
    padding-top:28px; border-top:1px solid rgba(255,255,255,0.1);
    font-size:13px; color: rgba(255,255,255,0.5);
    flex-wrap:wrap; gap:12px;
  }
  .footer-bottom .links{ display:flex; gap:22px; }
  .footer-logo{ width:120px; margin-bottom:18px; }
  @media (max-width: 900px){ .footer-grid{ grid-template-columns: repeat(2,1fr); gap:36px; } }

  /* ============ BOTÓN FLOTANTE DE AGENDA ============ */
  /* Píldora que en reposo es un círculo del mismo tamaño que el de WhatsApp
     y al pasar el cursor se ensancha para descubrir el texto. */
  .cta-float{
    position:fixed;
    bottom:118px; right:20px;
    z-index:900;
    display:flex; align-items:center; justify-content:flex-start;
    height:80px; width:80px;
    padding-left:16px;
    border-radius:999px;
    background: var(--color-cuatro);
    color: var(--petroleum);
    border:1px solid rgba(255,255,255,0.18);
    box-shadow: 0 10px 30px rgba(108,198,217,0.40);
    overflow:hidden;
    white-space:nowrap;
    /* Oculto hasta llegar a la sección de servicios (lo activa el JS) */
    opacity:0;
    pointer-events:none;
    transform: translateY(14px) scale(0.9);
    transition: width 420ms cubic-bezier(.2,.8,.2,1), box-shadow 320ms ease, background 320ms ease,
                opacity 320ms ease, transform 420ms cubic-bezier(.2,.8,.2,1);
  }
  .cta-float.is-visible{
    opacity:1;
    pointer-events:auto;
    transform:none;
  }
  .cta-float:hover{ width:252px; box-shadow: 0 10px 45px rgba(108,198,217,0.60); }
  .cta-float:focus-visible{ outline:3px solid #fff; outline-offset:3px; }
  .cta-float-ico{
    flex:0 0 auto;
    width:48px; height:48px;
    display:flex; align-items:center; justify-content:center;
    animation: ctaWobble 2.4s ease-in-out infinite;
  }
  .cta-float-ico svg{ width:40px; height:40px; }
  @keyframes ctaWobble{
    0%, 55%, 100%{ transform: rotate(0deg); }
    20%, 40%     { transform: rotate(15deg); }
  }
  .cta-float-label{
    margin-left:12px;
    font-weight:700; font-size:14px; letter-spacing:0.01em;
    opacity:0; transform: translateX(-10px);
    transition: opacity 300ms ease, transform 300ms ease;color: var(--purple-dark);
  }
  .cta-float:hover .cta-float-label{ opacity:1; transform:none; }
  .mobile-menu.open ~ .cta-float{ opacity:0; pointer-events:none; }

  /* Realce breve del formulario al llegar desde el botón flotante */
  .qz.qz--flash{ animation: qzFlash 1.4s ease-out 1; }
  @keyframes qzFlash{
    0%   { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.45), 0 0 0 0 rgba(108,198,217,0.65); }
    35%  { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.45), 0 0 0 8px rgba(108,198,217,0.35); }
    100% { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.45), 0 0 0 0 rgba(108,198,217,0); }
  }
  @media (prefers-reduced-motion: reduce){
    .qz.qz--flash{ animation:none; }
  }
  @media (max-width: 767px){
    .cta-float{ bottom:82px; right:16px; height:54px; width:54px; padding-left:4px; }
    .cta-float:hover{ width:240px; }
  }
  @media (prefers-reduced-motion: reduce){
    .cta-float-ico{ animation:none; }
  }

  /* ============ BOTÓN FLOTANTE DE WHATSAPP ============ */
  .wsp-float{
    position:fixed;
    bottom:20px; right:20px;
    z-index:900;
    width:80px; height:80px;
    display:flex; align-items:center; justify-content:center;
    border-radius:50%;
    background:#25D366;
    color:#fff;
    animation: wspPulse 1.5s ease-out infinite;
    transition: transform 220ms ease, background 220ms ease;
  }
  .wsp-float svg{ width:40px; height:40px; }
  .wsp-float:hover{ background:#1EBE5A; transform: scale(1.07); }
  .wsp-float:active{ transform: scale(0.96); }
  .wsp-float:focus-visible{ outline:3px solid #fff; outline-offset:3px; }
  @keyframes wspPulse{
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
    70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
  }
  /* No debe tapar la X ni el menú a pantalla completa */
  .mobile-menu.open ~ .wsp-float{ opacity:0; pointer-events:none; }
  @media (max-width: 767px){
    .wsp-float{ width:54px; height:54px; bottom:16px; right:16px; }
    .wsp-float svg{ width:29px; height:29px; }
  }
  @media (prefers-reduced-motion: reduce){
    .wsp-float{ animation:none; }
    .wsp-float:hover, .wsp-float:active{ transform:none; }
  }

  ::selection{ background: var(--purple); color:#fff; }
  :focus-visible{ outline: 2px solid var(--turquoise); outline-offset:3px; }