/* Lo propio de NARANJA&co.: la marca y las secciones que se suman a la maqueta
   (barra flotante, manifiesto, las dos tarjetas dibujadas en CSS y «Trabajar
   con nosotros»). Los colores salen de las variables del tema, así que valen
   en claro, en oscuro y cuando se apaga la luz. */

/* ── La marca ─────────────────────────────────────────────────────────── */
/* «&co.» va siempre en minúscula y en naranja, también dentro de un titular. */
.co { text-transform: none; color: var(--naranja); }
/* El logotipo es un dibujo (símbolo SVG): toma el color del texto de donde esté. */
.seg.marca .logotipo { display: block; height: 2.5rem; width: auto; }
.seg.marca { padding: 0 1rem 0 0.9rem !important; }
.telon use { color: #0b0b0c; }
html.claro:not(.noche) .telon use { color: #f4f1ea; }
.caja-marca { margin-top: auto; align-self: flex-start; height: 1.7rem; width: auto; color: #f4f1ea; }
/* El logo del pie lo escriben los puntos; este solo guarda su hueco. */
.logo-gigante { visibility: hidden; display: block; width: 100%; height: auto; margin: clamp(1.5rem, 5vh, 3rem) 0 0; color: var(--hueso); background: none; -webkit-background-clip: border-box; background-clip: border-box; }

/* Cabecera: el logo a un lado y el contacto al otro; los apartados van abajo. */
.cab nav.barra-nav { display: flex; justify-content: space-between; width: 100%; margin: 0; }
.seg.marca { gap: 0.55rem; margin: 0; }
.seg.marca .nombre { font-weight: inherit; }
.seg.marca .iso { flex: none; }
@media (max-width: 760px) { .seg.marca { flex: 0 1 auto; font-size: 1.25rem; } }

/* ── Barra flotante ───────────────────────────────────────────────────── */
.flotante {
  position: fixed; left: 50%; bottom: clamp(0.9rem, 2.4vh, 1.6rem); translate: -50% 0; z-index: 30;
  display: grid; justify-items: stretch; gap: 0.5rem; width: min(21rem, calc(100vw - 2rem));
  font-family: var(--f-titulo); color: var(--negro);
}
.flotante-barra, .flotante-menu {
  background: var(--hueso); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  transition: background-color 0.9s ease, color 0.9s ease;
}
.flotante-barra { display: flex; align-items: center; gap: 0.9rem; height: 3.4rem; padding: 0 0.5rem 0 1.1rem; border-radius: 999px; }
.flotante-logo { display: grid; place-items: center; }
.flotante-avance { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.flotante-boton {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 0.55rem;
  height: 2.4rem; padding: 0 1rem 0 1.1rem; border-left: 1px solid color-mix(in srgb, var(--negro) 28%, transparent);
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.flotante-boton:focus-visible, .flotante-menu a:focus-visible { outline: 2px solid var(--naranja); outline-offset: 2px; border-radius: 999px; }
.flotante-boton i { width: 15px; height: 7px; border-top: 2px solid; border-bottom: 2px solid; transition: height 0.25s ease; }
.flotante-boton[aria-expanded="true"] i { height: 0; border-bottom: 0; }
.flotante-menu { display: grid; padding: 0.5rem; border-radius: 1.5rem; animation: sube-menu 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.flotante-menu[hidden] { display: none; }
.flotante-menu a { padding: 0.75rem 1rem; border-radius: 1rem; font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; text-transform: uppercase; }
.flotante-menu a:hover { background: color-mix(in srgb, var(--negro) 14%, transparent); }
@keyframes sube-menu { from { opacity: 0; transform: translateY(0.8rem) scale(0.96); } }
@media (prefers-reduced-motion: reduce) { .flotante-menu { animation: none; } }

/* ── Manifiesto ───────────────────────────────────────────────────────── */
.manifiesto { position: relative; z-index: 2; height: 230vh; background: var(--negro); }
.manifiesto-fijo { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 0 var(--x); overflow: hidden; }
.manifiesto-texto {
  max-width: 21em; text-align: center; text-wrap: balance;
  font-family: "Inter Tight", var(--f); font-weight: 500; font-size: clamp(1.55rem, 3.5vw, 3.5rem); line-height: 1.22; letter-spacing: -0.02em;
}
.manifiesto-texto span { opacity: 0.16; transition: opacity 0.35s ease; }
.manifiesto-texto span.encendida { opacity: 1; }
/* Las pastillas: grandes, de color y ladeadas. marca.js las sube de debajo del
   borde inferior a encima del superior según se baja, una tras otra. La
   inclinación de cada una va en --g; el script le suma el giro del viaje. */
.manifiesto-texto { position: relative; z-index: 1; }
.pegatinas { position: absolute; inset: 0; pointer-events: none; }
.pegatinas.delante { z-index: 2; }
.pegatina {
  position: absolute; left: var(--x); top: 0; translate: 0 120vh; rotate: var(--g);
  padding: 0.62em 1.05em; border-radius: 999px; white-space: nowrap; pointer-events: auto;
  font-family: "Inter Tight", var(--f); font-weight: 600; font-size: clamp(1.3rem, 2.7vw, 2.7rem); line-height: 1; letter-spacing: -0.02em;
  color: #121110; box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
  transition: scale 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: translate;
}
.pegatina:hover { scale: 1.06; }
.pegatina.p1 { --x: 20%; --g: -5deg; background: #c0ec78; }
.pegatina.p2 { --x: 36%; --g: 8deg; background: #bbbbd3; }
.pegatina.p3 { --x: 60%; --g: 11deg; background: var(--naranja); }
.pegatina.p4 { --x: 26%; --g: 10deg; background: #3d55e2; color: #fff; }
.pegatina.p5 { --x: 50%; --g: -5deg; background: #d0d9d8; }
@media (max-width: 760px) {
  .pegatina.p1 { --x: 6%; } .pegatina.p2 { --x: 34%; } .pegatina.p3 { --x: 40%; } .pegatina.p4 { --x: 10%; } .pegatina.p5 { --x: 30%; }
}
/* Sin movimiento, la sección no se fija y las pastillas quedan en fila bajo el texto. */
@media (prefers-reduced-motion: reduce) {
  .manifiesto { height: auto; }
  .manifiesto-fijo { position: static; height: auto; padding-block: 16vh; gap: 1rem; }
  .manifiesto-texto span { transition: none; }
  .pegatinas { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
  .pegatina { position: static; translate: none; font-size: clamp(1rem, 1.6vw, 1.5rem); }
}

/* ── Servicios ────────────────────────────────────────────────────────── */
.acto.lateral { height: 460vh; }

/* ── Trabajar con nosotros ────────────────────────────────────────────── */
.nosotros { position: relative; z-index: 2; background: var(--negro); padding: clamp(5rem, 14vh, 9rem) calc(var(--x) + 1.6rem) clamp(3rem, 8vh, 5rem); }
.nosotros h2 { text-align: center; font-size: clamp(2.4rem, 6vw, 6rem); margin-bottom: clamp(2rem, 6vh, 4rem); }
.nosotros-rejilla { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 0.9rem; }
.caja { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6rem; min-height: clamp(18rem, 44vh, 26rem); padding: clamp(1.3rem, 2.2vw, 2rem); border-radius: 1.8rem; overflow: hidden; color: #0b0b0c; }
.caja h3 { font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 0.95; }
.caja p { font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.4; max-width: 22rem; }
.caja .boton { align-self: flex-start; margin-top: 0.8rem; }
.caja-etiqueta { position: absolute; left: clamp(1.3rem, 2.2vw, 2rem); top: clamp(1.3rem, 2.2vw, 2rem); padding: 0.35rem 0.9rem; border-radius: 999px; background: #0b0b0c; color: #fff; font-family: var(--f-titulo); font-weight: 600; font-size: 0.85rem !important; text-transform: uppercase; letter-spacing: 0.04em; }
.c-arena { background: #efdcc3; }
.c-gris { background: #eceae6; }
.c-noche { background: #11201b radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.16) 1px, transparent 1.6px) 0 0 / 12px 12px; color: #f4f1ea; justify-content: flex-start; }
@media (max-width: 900px) { .nosotros { padding-inline: var(--x); } .nosotros-rejilla { grid-template-columns: 1fr; } .caja { min-height: 15rem; } }

/* Que la barra flotante no tape el final del pie ni el botón de la sección de IA. */
.pie { padding-bottom: 5.5rem; }
.ia-boton { bottom: clamp(5.4rem, 13vh, 7rem); }


/* ── Textura de papel, solo en algunas secciones ──────────────────────── */
/* Un grano fino y fijo por encima del fondo (no del contenido): le quita el
   aspecto de color plano. En claro oscurece un pelo; en oscuro, aclara. */
.con-textura { isolation: isolate; }
.con-textura::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 240px 240px,
    radial-gradient(120% 80% at 20% 0%, rgba(242, 101, 34, 0.07), transparent 60%);
  mix-blend-mode: soft-light; opacity: 0.55;
}
html.claro:not(.noche) .con-textura::before { mix-blend-mode: multiply; opacity: 0.38; }
/* En el manifiesto la textura se queda fija con el texto. «inset» va antes que
   «top»: al revés lo anula y la textura se iba con el scroll, dejando un corte. */
.manifiesto.con-textura::before { position: sticky; inset: auto; top: 0; display: block; height: 100vh; margin-bottom: -100vh; }

/* ── El lema del hero ─────────────────────────────────────────────────────
   Tres filas con dos flechas finas y una palabra subrayada a rotulador, que se
   traza sola cuando las filas ya han frenado. */
.lema .flecha { width: 0.56em; height: 0.56em; margin: 0 0.04em; vertical-align: 0.03em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; }
.lema .flecha.abajo { rotate: 180deg; }
.rayada { position: relative; display: inline-block; isolation: isolate; }
.rayada svg { position: absolute; z-index: -1; left: -6%; bottom: -0.15em; width: 112%; height: 0.34em; overflow: visible; }
.rayada path { fill: none; stroke: var(--naranja, #f26522); stroke-width: 0.045em; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s cubic-bezier(0.65, 0, 0.2, 1) 1.7s; }
.portal.abierto .rayada path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .rayada path { transition: none; } }
/* El lema es más largo que el titular de antes: en pantallas estrechas baja un
   punto para que la fila de en medio quepa entera. */
@media (max-width: 900px), (orientation: portrait) { .titular-lineas.lema { font-size: min(13.4vw, 7rem); } }

/* Las gotas de «jugo»: se forman bajo el subrayado, cuelgan un momento y caen.
   Cada una lleva su ritmo para que no goteen a la vez. */
.gota {
  position: absolute;
  z-index: -1;
  top: calc(100% + 0.06em);
  left: var(--x, 20%);
  width: 0.085em;
  height: 0.085em;
  background: var(--naranja, #f26522);
  border-radius: 0 50% 50% 50%;
  rotate: 45deg;
  scale: 0;
  transform-origin: 0 0;
  opacity: 0;
}
.gota:nth-of-type(1) { --x: 16%; --cae: 0.86em; }
.gota:nth-of-type(2) { --x: 55%; --cae: 1.02em; width: 0.105em; height: 0.105em; }
.gota:nth-of-type(3) { --x: 86%; --cae: 0.74em; width: 0.07em; height: 0.07em; }
.portal.abierto .gota { animation: gotear 3.6s 2.9s infinite; }
.portal.abierto .gota:nth-of-type(2) { animation-duration: 4.4s; animation-delay: 3.7s; }
.portal.abierto .gota:nth-of-type(3) { animation-duration: 3.9s; animation-delay: 4.6s; }
/* «translate» va en los ejes de la pantalla, así la gota cae recta aunque esté girada. */
@keyframes gotear {
  0% { scale: 0; translate: 0 0; opacity: 1; animation-timing-function: cubic-bezier(0.3, 0, 0.3, 1); }
  34% { scale: 1; translate: 0 0; opacity: 1; }
  42% { scale: 1.06; translate: 0 0.03em; opacity: 1; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.6); }
  68% { scale: 0.94; translate: 0 var(--cae); opacity: 1; }
  72%, 100% { scale: 0.94; translate: 0 var(--cae); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .portal.abierto .gota { animation: none; } }

/* Lema de cierre del pie: dos frases, una por línea, la segunda en naranja. */
.pie .lema { max-width: none; }
.pie .lema span { display: block; }
.pie .lema span + span { color: var(--naranja); }
