/* T de Team Building · estilos propios (los de utilidades están en tailwind.css) */
  :root {
    --accent: #D6327E; --accent-ink: #FFFFFF;
    /* Colores del logo */
    --turq: #57BECB; --turq-dark: #177C8A; --rosa-logo: #E43F8C;
    /* Texto en color sobre fondos claros: misma familia, contraste AA para texto grande */
    --accent-text: color-mix(in srgb, var(--accent) 80%, #0B1628);
    /* Titulares grandes (≥24 px): basta 3:1 */
    --accent-display: var(--accent);
    /* Curvas (Emil Kowalski): salida rápida y movimiento en pantalla */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  }
  /* Superficies del navegador con la marca */
  ::selection { background: var(--accent); color: var(--accent-ink); }
  html { caret-color: var(--accent-text); scrollbar-color: #57BECB #EFF8F9; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
  a { text-underline-offset: 3px; }
  /* Respuesta al pulsar en todo lo pulsable */
  a.rounded-full, button { transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
  a.rounded-full:active, button:active { transform: scale(0.97); }
  /* Formularios: error visible junto al campo, solo tras interactuar */
  #form input:user-invalid, #form textarea:user-invalid { border-color: #B42318; box-shadow: 0 0 0 1px #B42318; }
  /* Sombras teñidas del azul de la marca, nunca negras */
  .shadow-tint { box-shadow: 0 24px 48px -24px rgba(19,35,63,.45), 0 8px 16px -12px rgba(19,35,63,.25); }
  html, body { overflow-x: hidden; }
  /* Clases del <body> (Tailwind va con el prefijo .tdtb, que no alcanza al propio body) */
  body.tdtb { background-color: #EFF8F9; color: #13233F; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  body { font-family: 'Familjen Grotesk', sans-serif; font-optical-sizing: auto; }
  /* Titulares en negrita y apretados */
  .font-serif { font-weight: 600; letter-spacing: -0.01em; }
  .font-serif em, .font-serif.italic, .font-serif .italic { font-style: normal; }
  [hidden] { display: none !important; }
  .wmask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
  .w { display: inline-block; }
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }
  #progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 70; }
  /* Clientes: dos cintas en sentidos contrarios; el nombre se colorea al pasar el ratón */
  .cli { font-family: 'Familjen Grotesk', sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; color: rgba(19,35,63,.4); white-space: nowrap; transition: color 200ms ease; }
  .cli-track { animation: cliMove 40s linear infinite; }
  .cli-fade { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
  .cli-rev .cli-track { animation-direction: reverse; animation-duration: 52s; }
  .cli-row:hover .cli-track { animation-play-state: paused; }
  @media (hover: hover) and (pointer: fine) { .cli:hover { color: #13233F; } }
  @keyframes cliMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .cli-track { animation: none; flex-wrap: wrap; width: auto; } }
  .hero-title { font-weight: 600; letter-spacing: -0.02em; }
  .hero-sub { font-weight: 500; letter-spacing: -0.02em; }
  .text-accent { color: var(--accent-text); transition: color .5s; }
  em.text-accent, h1 .text-accent, h2 .text-accent, .text-5xl.text-accent, .text-6xl.text-accent, .text-7xl.text-accent { color: var(--accent-display); }
  /* En fondos oscuros el acento va puro */
  .bg-navy .text-accent, .bg-ink .text-accent, #navidad .text-accent, #grow .text-accent, #presupuesto > div .text-accent, footer .text-accent, .brand-dot { color: var(--turq); }
  #presupuesto form .text-accent { color: var(--accent-text); }
  .bg-accent { background-color: var(--accent); color: var(--accent-ink); transition: background-color .5s, color .5s; }
  .ring-accent { --tw-ring-color: var(--accent); }
  .fill-accent { fill: var(--accent); transition: fill .5s ease; }
  .underline-accent { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% .16em; background-position: 0 92%; background-repeat: no-repeat; }

  /* Preloader */
  #loader { position: fixed; inset: 0; z-index: 100; background: #FFFFFF; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  #loaderLogo { width: min(78vw, 720px); height: auto; overflow: visible; }
  #loaderBurst { position: absolute; width: 60px; height: 60px; border-radius: 50%; background: var(--rosa-logo); transform: scale(0); }
  #loader .curtain { position: absolute; inset: 0; background: var(--accent); transform: translateY(100%); }

  /* Split text */
  .split .ch { display: inline-block; will-change: transform; }
  .split .w, .split-scroll .w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: .08em; }

  /* Marquee */
  .marquee-track { display: flex; width: max-content; will-change: transform; }

  /* Statement words */
  .reveal-words .word { opacity: .15; transition: none; }

  /* Imagen con revelado */
  .clip { clip-path: inset(100% 0 0 0); }


  details > summary { list-style: none; cursor: pointer; }
  details > summary::-webkit-details-marker { display: none; }
  details[open] .chev { transform: rotate(45deg); }
  .chev { transition: transform .3s ease; }
  .swatch[aria-pressed="true"] { outline: 3px solid #13233F; outline-offset: 3px; }


  /* Vista explosionada */
  /* La torre se ajusta a la altura de la pantalla para que siempre se vean todas las capas y sus textos. */
  #anatomia { --tw: 190px; --gap: clamp(40px, calc((100svh - 340px - var(--tw) * 0.64) / 5), 74px); --compact: calc(var(--tw) * 0.135); }
  @media (min-width: 640px) { #anatomia { --tw: 240px; --gap: clamp(44px, calc((100svh - 330px - var(--tw) * 0.64) / 5), 84px); } }
  @media (min-width: 1024px) { #anatomia { --tw: clamp(210px, 36svh, 300px); --gap: clamp(46px, calc((100svh - 300px - var(--tw) * 0.64) / 5), 92px); } }
  #exGapProbe { position: absolute; left: 0; top: 0; width: 1px; height: var(--gap); visibility: hidden; pointer-events: none; }
  .ex-layer { transform: translateY(calc(var(--i) * -1 * var(--gap))); will-change: transform; }
  @media (prefers-reduced-motion: reduce) {
    #loader { display: none; }
    .clip { clip-path: none; }
    .reveal-words .word { opacity: 1; }
    .underline-accent { background-size: 100% .16em; }
  }

  /* Logo como elemento de marca (v16) */
  .badge-ring { animation: ringSpin 18s linear infinite; }
  @keyframes ringSpin { to { transform: rotate(360deg); } }
  .badge-ic .ic-bola, .ok-ic .ic-bola { transform-box: fill-box; transform-origin: 50% 100%; }
  .badge-ic .ic-bola { animation: bolaBote 3.2s cubic-bezier(.3,0,.3,1) infinite; }
  @keyframes bolaBote { 0%,62%,100% { transform: translateY(0) scale(1,1); } 72% { transform: translateY(-70%) scale(.95,1.05); } 82% { transform: translateY(0) scale(1.15,.85); } 88% { transform: translateY(-14%); } 94% { transform: translateY(0); } }
  .ok-ic .ic-fig { transform-box: fill-box; transform-origin: 50% 100%; }
  #formOk.play .ok-ic .ic-fig { animation: figUp .6s cubic-bezier(.34,1.56,.64,1) both; }
  #formOk.play .ok-ic .ic-bola { animation: bolaDrop .9s .35s cubic-bezier(.3,0,.3,1) both; }
  @keyframes figUp { from { transform: scale(.3,0); } to { transform: scale(1,1); } }
  @keyframes bolaDrop { 0% { transform: translateY(-260%); opacity: 0; } 15% { opacity: 1; } 55% { transform: translateY(0) scale(1.15,.85); } 70% { transform: translateY(-25%) scale(1); } 85%,100% { transform: translateY(0); } }
  /* Ventana tras enviar el formulario */
  .aviso-envio { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 1rem; }
  .aviso-fondo { position: absolute; inset: 0; background: rgba(19,35,63,.55); backdrop-filter: blur(4px); animation: avisoFade .3s ease both; }
  .aviso-caja { position: relative; width: 100%; max-width: 26rem; background: #FFFFFF; color: #13233F; border-radius: 2rem; padding: 2.5rem 2rem 2rem; text-align: center; box-shadow: 0 30px 80px -20px rgba(19,35,63,.45); animation: avisoPop .55s cubic-bezier(.34,1.56,.64,1) both; }
  .aviso-x { position: absolute; top: .75rem; right: .9rem; width: 2.5rem; height: 2.5rem; border-radius: 999px; font-size: 1.75rem; line-height: 1; color: #13233F; opacity: .55; }
  .aviso-x:hover { opacity: 1; background: rgba(19,35,63,.06); }
  .aviso-ic { width: 5.5rem; margin: 0 auto 1.25rem; }
  .aviso-ic .ic-fig { animation: figUp .6s .2s cubic-bezier(.34,1.56,.64,1) both; }
  .aviso-ic .ic-bola { animation: bolaDrop .9s .55s cubic-bezier(.3,0,.3,1) both; }
  .aviso-ic-error { width: 4.5rem; height: 4.5rem; border-radius: 999px; background: #FDE8E7; color: #B42318; font: 700 2.4rem/4.5rem 'Fredoka', sans-serif; }
  .aviso-titulo { font-family: 'Fredoka', 'Familjen Grotesk', sans-serif; font-weight: 600; font-size: 1.9rem; line-height: 1.1; }
  .aviso-texto { margin-top: .75rem; font-size: 1.05rem; line-height: 1.5; color: #4A5872; }
  .aviso-boton { margin-top: 1.75rem; display: inline-flex; align-items: center; justify-content: center; height: 3.25rem; padding: 0 2rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
  .aviso-error .aviso-boton { background: #13233F; color: #FFFFFF; }
  .aviso-envio.cerrando .aviso-fondo, .aviso-envio.cerrando .aviso-caja { animation: avisoOut .25s ease both; }
  @keyframes avisoFade { from { opacity: 0; } }
  @keyframes avisoPop { from { opacity: 0; transform: translateY(24px) scale(.9); } }
  @keyframes avisoOut { to { opacity: 0; transform: scale(.96); } }
  @media (prefers-reduced-motion: reduce) { .aviso-fondo, .aviso-caja, .aviso-ic .ic-fig, .aviso-ic .ic-bola { animation: none; } }
  .mq-ic { overflow: visible; }
  @media (prefers-reduced-motion: reduce) { .badge-ring, .badge-ic .ic-bola, #formOk.play .ok-ic .ic-fig, #formOk.play .ok-ic .ic-bola { animation: none; } }

  /* Clientes con logo (cuando se suben en Escritorio › Clientes) */
  .cli-logo { display: inline-flex; align-items: center; }
  .cli-logo img { height: clamp(1.8rem, 3.2vw, 2.8rem); width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .55; transition: filter 200ms ease, opacity 200ms ease; }
  @media (hover: hover) and (pointer: fine) { .cli-logo:hover img { filter: none; opacity: 1; } }

  /* Barra de administración de WordPress: que no tape el menú */
  .admin-bar #top { top: 32px; }
  @media (max-width: 782px) { .admin-bar #top { top: 46px; } }
  .admin-bar #progress { top: 32px; }

  /* ---------- Blog: texto de los artículos ---------- */
  .tdtb-prosa { font-size: 1.125rem; line-height: 1.75; color: #13233F; }
  .tdtb-prosa > * + * { margin-top: 1.25em; }
  .tdtb-prosa h2 { font-family: 'Fredoka', 'Familjen Grotesk', sans-serif; font-weight: 600; letter-spacing: -0.01em; font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1.12; margin-top: 2em; }
  .tdtb-prosa h3 { font-family: 'Fredoka', 'Familjen Grotesk', sans-serif; font-weight: 600; font-size: 1.5rem; line-height: 1.2; margin-top: 1.8em; }
  .tdtb-prosa mark.pendiente { background: #FFF3B0; color: #13233F; padding: 0 .25em; border-radius: .25em; }
  .tdtb-prosa table { width: 100%; border-collapse: collapse; font-size: 1rem; }
  .tdtb-prosa th, .tdtb-prosa td { text-align: left; vertical-align: top; padding: .6em .75em; border-bottom: 1px solid rgba(19,35,63,.15); }
  .tdtb-prosa th { font-weight: 700; }
  .tdtb-prosa h4 { font-weight: 700; font-size: 1.15rem; margin-top: 1.6em; }
  .tdtb-prosa a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; }
  .tdtb-prosa a:hover { color: #13233F; }
  .tdtb-prosa strong { font-weight: 700; }
  .tdtb-prosa ul, .tdtb-prosa ol { padding-left: 1.4em; }
  .tdtb-prosa ul { list-style: none; }
  .tdtb-prosa ul > li { position: relative; }
  .tdtb-prosa ul > li::before { content: ''; position: absolute; left: -1.1em; top: .62em; width: .5em; height: .5em; border-radius: 50%; background: var(--rosa-logo); }
  .tdtb-prosa ol { list-style: decimal; }
  .tdtb-prosa ol > li::marker { font-weight: 700; color: #177C8A; }
  .tdtb-prosa li + li { margin-top: .5em; }
  .tdtb-prosa blockquote { border-left: 4px solid var(--turq); padding: .2em 0 .2em 1.2em; font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 1.4rem; line-height: 1.35; }
  .tdtb-prosa img, .tdtb-prosa figure img { border-radius: 1.5rem; height: auto; max-width: 100%; }
  .tdtb-prosa figcaption { margin-top: .6em; font-size: .9rem; color: #5A6478; text-align: center; }
  .tdtb-prosa hr { border: 0; border-top: 1px solid rgba(19,35,63,.15); margin: 2.5em 0; }
  .tdtb-prosa table { width: 100%; border-collapse: collapse; font-size: 1rem; }
  .tdtb-prosa th, .tdtb-prosa td { border-bottom: 1px solid rgba(19,35,63,.12); padding: .7em .5em; text-align: left; }
  .tdtb-prosa code { background: #E3F4F6; border-radius: .35em; padding: .1em .35em; font-size: .9em; }
  .tdtb-prosa .wp-block-button__link { display: inline-flex; align-items: center; height: 3.5rem; padding: 0 2rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
  .tdtb-prosa .alignwide { max-width: none; }
  .tdtb .post-tags a, .tdtb [rel="tag"] { display: inline-flex; align-items: center; height: 2.25rem; padding: 0 1rem; border-radius: 999px; border: 1px solid rgba(19,35,63,.2); font-weight: 600; }
  /* Paginación del blog */
  .tdtb-paginas .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; padding: 0 1rem; border-radius: 999px; border: 1px solid rgba(19,35,63,.2); font-weight: 700; font-size: .9rem; }
  .tdtb-paginas .page-numbers.current { background: #13233F; color: #EFF8F9; border-color: #13233F; }
  .tdtb-paginas a.page-numbers:hover { border-color: #13233F; }
  .tdtb .post h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }

  /* Frase de la imagen que crece: las «t» con la pelota rosa del logo encima */
  .t-palabra { white-space: nowrap; }
  .t-fun { position: relative; display: inline-block; color: var(--turq); }
  #grow .text-accent .t-fun { color: var(--rosa-logo); }
  .t-fun::after { content: ''; position: absolute; left: 50%; top: .02em; width: .18em; height: .18em; margin-left: -.09em; border-radius: 50%; background: var(--rosa-logo); box-shadow: 0 0 0 .035em rgba(255,255,255,.9); animation: tBote 2.6s cubic-bezier(.3,0,.3,1) infinite; animation-delay: calc(var(--i, 0) * .18s); }
  #grow .text-accent .t-fun::after { background: var(--turq); }
  @keyframes tBote { 0%, 55%, 100% { transform: translateY(0) scale(1, 1); } 68% { transform: translateY(-.32em) scale(.95, 1.05); } 80% { transform: translateY(0) scale(1.2, .8); } 88% { transform: translateY(-.08em); } 94% { transform: translateY(0); } }
  @media (prefers-reduced-motion: reduce) { .t-fun::after { animation: none; } }

