/* =========================================================================
   Catalweb — hoja de estilo única
   Tipografía: Bunny Fonts (Space Grotesk + Inter)
   ========================================================================= */

:root {
  --rojo:        #E30613;
  --rojo-osc:    #B2050F;
  --rojo-claro:  #FF4B55;
  --negro:       #141414;
  --negro-2:     #1E1E1E;
  --negro-3:     #2A2A2A;
  --gris-900:    #3A3A3A;
  --gris-600:    #6B6B6B;
  --gris-400:    #A8A8A8;
  --gris-200:    #E4E4E4;
  --gris-100:    #F4F4F3;
  --blanco:      #FFFFFF;

  --fondo:       var(--blanco);
  --texto:       #23221F;
  --texto-suave: #5C5A55;
  --borde:       var(--gris-200);
  --tarjeta:     var(--blanco);

  --f-titulo: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-texto:  "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --ancho: 1180px;
  --gutter: 20px;
  --radio: 14px;
  --radio-s: 8px;

  --sombra:   0 1px 2px rgba(20,20,20,.05), 0 8px 24px -12px rgba(20,20,20,.16);
  --sombra-f: 0 2px 4px rgba(20,20,20,.07), 0 18px 44px -16px rgba(20,20,20,.26);

  --trans: 180ms cubic-bezier(.2,.7,.3,1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo:       #121211;
    --texto:       #ECEAE6;
    --texto-suave: #A8A49C;
    --borde:       #302F2C;
    --tarjeta:     #1A1A18;
    --gris-100:    #1A1A18;
    --gris-200:    #302F2C;
  }
}
:root[data-theme="dark"] {
  --fondo: #121211; --texto: #ECEAE6; --texto-suave: #A8A49C;
  --borde: #302F2C; --tarjeta: #1A1A18; --gris-100: #1A1A18; --gris-200: #302F2C;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--f-titulo); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }

img, svg { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; border-radius: 3px; }

.svisual {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saltar {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--rojo); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radio-s) 0;
  font-weight: 600; text-decoration: none;
}
.saltar:focus { left: 0; }

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- marca ---------- */
.marca { height: 30px; width: auto; color: var(--rojo); }
.cab--oscura .marca, .pie .marca { color: #fff; }
.marca--pie { height: 34px; }

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-titulo); font-weight: 700; font-size: .95rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background var(--trans), color var(--trans), transform var(--trans);
}
.boton--primario { background: var(--rojo); color: #fff; }
.boton--primario:hover { background: var(--rojo-osc); transform: translateY(-1px); }
.boton--fantasma { border-color: currentColor; color: inherit; }
.boton--fantasma:hover { background: currentColor; }
.boton--fantasma:hover { color: var(--negro); }
.boton--grande { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

/* ---------- cabecera ---------- */
.cab {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--fondo) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--borde);
}
.cab__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.cab__logo { display: inline-flex; flex: none; }

.cab__boton {
  display: none; background: none; border: 0; cursor: pointer; padding: .6rem; margin-right: -.6rem;
}
.cab__barras, .cab__barras::before, .cab__barras::after {
  display: block; width: 24px; height: 2px; background: var(--texto); border-radius: 2px; transition: transform var(--trans);
}
.cab__barras::before, .cab__barras::after { content: ""; position: relative; }
.cab__barras::before { top: -7px; }
.cab__barras::after  { top: 5px; }

.nav__lista { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__enlace {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .92rem; font-weight: 500; padding: .55rem .7rem; border-radius: var(--radio-s);
  background: none; border: 0; color: inherit; cursor: pointer; font-family: inherit; text-decoration: none;
  white-space: nowrap;
}
.nav__enlace:hover { background: var(--gris-100); }
.nav__enlace[aria-current="page"] { color: var(--rojo); font-weight: 600; }
.nav__flecha { width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); opacity: .55; transition: transform var(--trans); }
.nav__disparador[aria-expanded="true"] .nav__flecha { transform: rotate(-135deg) translate(-2px,-2px); }

.nav__sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 330px;
  background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio);
  box-shadow: var(--sombra-f); padding: .5rem; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all var(--trans);
}
.nav__disparador[aria-expanded="true"] + .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: .6rem .7rem; border-radius: var(--radio-s); text-decoration: none; }
.nav__sub a:hover { background: var(--gris-100); }
.nav__sub-titulo { display: block; font-weight: 600; font-size: .94rem; }
.nav__sub-desc   { display: block; font-size: .82rem; color: var(--texto-suave); line-height: 1.45; margin-top: .1rem; }

@media (max-width: 1040px) {
  .cab__boton { display: block; }
  .nav { position: absolute; inset: 68px 0 auto; background: var(--fondo); border-bottom: 1px solid var(--borde);
         max-height: 0; overflow: hidden; transition: max-height var(--trans); }
  .nav--abierta { max-height: 80vh; overflow-y: auto; }
  .nav__lista { flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.5rem; gap: .2rem; }
  .nav__enlace { width: 100%; justify-content: space-between; padding: .8rem .2rem; font-size: 1rem; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
              border: 0; border-left: 2px solid var(--borde); border-radius: 0; margin-left: .2rem;
              display: none; min-width: 0; }
  .nav__disparador[aria-expanded="true"] + .nav__sub { display: block; }
  .nav__item--cta { margin-top: .8rem; }
  .nav__item--cta .boton { width: 100%; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--negro); color: #fff;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(1100px 520px at 12% -10%, rgba(227,6,19,.22), transparent 60%);
}
.hero__b {
  position: absolute; z-index: -1; right: -4%; top: 50%; transform: translateY(-50%);
  height: 128%; width: auto; color: var(--rojo); opacity: .17; pointer-events: none;
}
.hero__caja { max-width: 48rem; }
.hero__sello {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-titulo); font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.26); border-radius: 999px;
  padding: .42rem .9rem; margin-bottom: 1.5rem; color: rgba(255,255,255,.9);
}
.hero__sello::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rojo); }
.hero h1 { margin-bottom: .55rem; }
.hero h1 em { font-style: normal; color: var(--rojo-claro); }
.hero__sub { font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: rgba(255,255,255,.76); max-width: 40rem; margin-bottom: 2rem; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__acciones .boton--fantasma { color: #fff; }
.hero__acciones .boton--fantasma:hover { background: #fff; color: var(--negro); }
.hero__pie { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-size: .86rem; color: rgba(255,255,255,.55); }
.hero__pie strong { color: #fff; font-weight: 600; }

/* ---------- secciones ---------- */
.seccion { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.seccion--gris { background: var(--gris-100); }
.seccion__cabeza { max-width: 44rem; margin-bottom: 2.5rem; }
.seccion__rotulo {
  font-family: var(--f-titulo); font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--rojo); margin-bottom: .7rem;
}
.seccion__intro { font-size: 1.1rem; color: var(--texto-suave); }

/* ---------- rejilla de servicios ---------- */
.servicios { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.tarjeta {
  display: flex; flex-direction: column; position: relative;
  background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 1.6rem; transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
}
.tarjeta:hover { border-color: color-mix(in srgb, var(--rojo) 45%, var(--borde)); box-shadow: var(--sombra-f); transform: translateY(-2px); }
.tarjeta__num { font-family: var(--f-titulo); font-size: .8rem; font-weight: 700; color: var(--rojo); margin-bottom: .8rem; letter-spacing: .06em; }
.tarjeta h3 { margin-bottom: .45rem; }
.tarjeta h3 a { text-decoration: none; }
.tarjeta h3 a::after { content: ""; position: absolute; inset: 0; }
.tarjeta p { color: var(--texto-suave); font-size: .96rem; }
.tarjeta__mas { margin-top: auto; padding-top: 1.1rem; font-family: var(--f-titulo); font-weight: 700; font-size: .88rem; color: var(--rojo); }
.tarjeta__mas::after { content: " →"; }

/* ---------- banda de foto ---------- */
.banda { position: relative; min-height: 340px; display: grid; place-items: center; background: var(--negro); overflow: hidden; }
.banda img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.banda__texto { position: relative; text-align: center; color: #fff; max-width: 42rem; padding: 3.5rem var(--gutter); }
.banda__texto h2 { color: #fff; }
.banda__texto p { color: rgba(255,255,255,.78); margin-bottom: 0; }

/* ---------- proyectos ---------- */
.proyectos { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.proyecto { border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; background: var(--tarjeta); display: flex; flex-direction: column; }
.proyecto__img { aspect-ratio: 16/10; background: var(--gris-100); overflow: hidden; }
.proyecto__img img { width: 100%; height: 100%; object-fit: cover; }
.proyecto__cuerpo { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.proyecto__rotulo { font-family: var(--f-titulo); font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--rojo); margin-bottom: .6rem; }
.proyecto h3 { margin-bottom: .4rem; }
.proyecto p { font-size: .95rem; color: var(--texto-suave); }
.proyecto__hitos { list-style: none; margin: 1rem 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.proyecto__hitos li { font-size: .78rem; border: 1px solid var(--borde); border-radius: 999px; padding: .25rem .65rem; color: var(--texto-suave); }
.proyecto__enlace { margin-top: auto; font-family: var(--f-titulo); font-weight: 700; font-size: .9rem; color: var(--rojo); }
.proyecto__enlace::after { content: " ↗"; }

/* ---------- pagina de servicio ---------- */
.migas { font-size: .84rem; color: var(--texto-suave); padding: 1.2rem 0 0; }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.migas li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }

.ficha { padding: 2rem 0 clamp(3rem, 6vw, 4.5rem); }
.ficha__cabeza { max-width: 48rem; margin-bottom: 2.8rem; }
.ficha__gancho { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--texto-suave); }

.ficha__cuerpo { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .ficha__cuerpo { grid-template-columns: 1fr; } }
.ficha__texto p { font-size: 1.06rem; }
.ficha__texto img { border-radius: var(--radio); margin: 1.8rem 0; }

.incluye { position: sticky; top: 90px; background: var(--gris-100); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.6rem; }
.incluye h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.incluye ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.incluye li { position: relative; padding-left: 1.6rem; font-size: .93rem; line-height: 1.5; }
.incluye li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 9px; height: 5px;
  border-left: 2px solid var(--rojo); border-bottom: 2px solid var(--rojo); transform: rotate(-45deg);
}
.incluye .boton { margin-top: 1.4rem; width: 100%; }

.externo { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem; font-weight: 600; color: var(--rojo); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; max-width: 48rem; }
.faq details { border: 1px solid var(--borde); border-radius: var(--radio-s); background: var(--tarjeta); }
.faq summary { cursor: pointer; padding: 1.05rem 1.2rem; font-weight: 600; font-family: var(--f-titulo); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rojo); font-size: 1.3rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 1.2rem 1.15rem; color: var(--texto-suave); margin: 0; font-size: .97rem; }

/* ---------- otros servicios ---------- */
.otros { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.otros a { display: block; padding: .9rem 1.1rem; border: 1px solid var(--borde); border-radius: var(--radio-s);
           background: var(--tarjeta); text-decoration: none; font-weight: 600; font-size: .93rem; transition: all var(--trans); }
.otros a:hover { border-color: var(--rojo); color: var(--rojo); }

/* ---------- contacto ---------- */
.contacto { display: grid; gap: 2.5rem; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); }
@media (max-width: 800px) { .contacto { grid-template-columns: 1fr; } }
.campo { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.campo label { font-weight: 600; font-size: .9rem; }
.campo input, .campo select, .campo textarea {
  font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid var(--borde);
  border-radius: var(--radio-s); background: var(--tarjeta); color: var(--texto); width: 100%;
}
.campo textarea { min-height: 140px; resize: vertical; }
.campo__ayuda { font-size: .82rem; color: var(--texto-suave); }
.consentimiento { display: flex; gap: .65rem; align-items: start; font-size: .88rem; color: var(--texto-suave); margin-bottom: 1.3rem; }
.consentimiento input { margin-top: .25rem; flex: none; }
.datos { display: grid; gap: 1.2rem; }
.datos__bloque { border-left: 3px solid var(--rojo); padding-left: 1rem; }
.datos__bloque h3 { font-size: 1rem; margin-bottom: .2rem; }
.datos__bloque p { color: var(--texto-suave); font-size: .95rem; }

/* ---------- cierre ---------- */
.cierre { background: var(--negro); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cierre__caja { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cierre__titulo { color: #fff; margin-bottom: .4rem; }
.cierre__texto { color: rgba(255,255,255,.72); max-width: 34rem; margin: 0; }
.cierre__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.cierre__tel { font-family: var(--f-titulo); font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none; white-space: nowrap; }
.cierre__tel:hover { color: var(--rojo-claro); }

/* ---------- pie ---------- */
.pie { background: var(--negro-2); color: rgba(255,255,255,.72); padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.pie__rejilla { display: grid; gap: 2rem; grid-template-columns: 1.6fr repeat(auto-fit, minmax(150px, 1fr)); }
.pie a { color: rgba(255,255,255,.72); text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie__titulo { font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pie__claim { color: #fff; font-weight: 600; margin: 1rem 0 .3rem; }
.pie__desde { font-size: .86rem; color: rgba(255,255,255,.5); }
.pie__partners { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.etiqueta { font-size: .73rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .22rem .65rem; color: rgba(255,255,255,.62); }
.pie__legal { margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.1);
              display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between; font-size: .84rem; }
.pie__legal p { margin: 0; color: rgba(255,255,255,.48); }
.pie__legal ul { display: flex; flex-wrap: wrap; gap: 1.1rem; }

/* ---------- utilidades ---------- */
.prosa { max-width: 44rem; }
.prosa h2 { margin-top: 2.2rem; }
.prosa h2:first-child { margin-top: 0; }
.prosa ul { padding-left: 1.2rem; display: grid; gap: .5rem; margin-bottom: 1.2rem; }
