/* ============================================================
   Mudança Catalá — Estilos compartidos
   Paleta basada en la senyera catalana del logo
   ============================================================ */

:root {
  --rojo: #C8102E;
  --rojo-osc: #9c0a22;
  --oro: #F2A900;
  --amarillo: #FFCD00;
  --negro: #141414;
  --gris-osc: #1f2024;
  --gris: #5b5f66;
  --gris-claro: #f4f5f7;
  --blanco: #ffffff;
  --sombra: 0 10px 30px rgba(20, 20, 20, .08);
  --sombra-fuerte: 0 18px 48px rgba(20, 20, 20, .16);
  --radio: 14px;
  --radio-sm: 9px;
  --maxw: 1180px;
  --trans: .25s ease;
  --ff-titulo: "Poppins", "Segoe UI", system-ui, sans-serif;
  --ff-texto: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-texto);
  color: var(--negro);
  line-height: 1.65;
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--ff-titulo); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section--gris { background: var(--gris-claro); }
.section--negro { background: var(--negro); color: var(--blanco); }
.text-center { text-align: center; }

/* ---------- Encabezado de sección ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-titulo);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--rojo);
  margin-bottom: 12px;
}
.section--negro .eyebrow { color: var(--oro); }
.section-head { max-width: 720px; margin: 0 auto 54px; }
.section-head.left { margin-inline: 0; }
.section-head p { color: var(--gris); margin-top: 14px; font-size: 1.05rem; }
.section--negro .section-head p { color: #c9cbd1; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-titulo); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: var(--trans); white-space: nowrap;
}
.btn--primary { background: var(--rojo); color: #fff; }
.btn--primary:hover { background: var(--rojo-osc); transform: translateY(-2px); box-shadow: var(--sombra-fuerte); }
.btn--gold { background: var(--oro); color: var(--negro); }
.btn--gold:hover { background: var(--amarillo); transform: translateY(-2px); box-shadow: var(--sombra-fuerte); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--negro); }
.btn--outline { background: transparent; color: var(--negro); border-color: var(--negro); }
.btn--outline:hover { background: var(--negro); color: #fff; }

/* ============================================================
   Cabecera
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,20,20,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--ff-titulo); font-weight: 700; }
.brand img { height: 50px; width: auto; }
/* Cabecera oscura: el logo (texto blanco) se ve directamente, sin fondo propio */
.header .brand img { height: 56px; }
.header .brand__txt strong { color: #fff; }
.header .brand__txt span { color: var(--oro); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__txt strong { font-size: 1.12rem; letter-spacing: .01em; }
.brand__txt span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rojo); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; gap: 28px; }
.nav__list a { font-family: var(--ff-titulo); font-weight: 500; font-size: .97rem; position: relative; padding: 6px 0; color: #f1f2f4; }
.nav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--oro); transition: var(--trans); }
.nav__list a:hover::after, .nav__list a.active::after { width: 100%; }
.nav__list a:hover, .nav__list a.active { color: var(--oro); }

/* Selector d'idioma */
.lang { display: inline-flex; align-items: center; gap: 2px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 3px; }
.lang a { font-family: var(--ff-titulo); font-weight: 600; font-size: .8rem; letter-spacing: .02em; color: #f1f2f4; padding: 4px 9px; border-radius: 999px; line-height: 1; }
.lang a.active { background: var(--oro); color: var(--negro); }
.lang a:hover:not(.active) { color: var(--oro); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: var(--trans); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(125deg, #141414 0%, #2a2b2f 55%, #3a1417 100%);
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(242,169,0,.10) 0 24px, rgba(200,16,46,.10) 24px 48px);
  opacity: .5; pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 90px 0; }
.hero__content h1 span { color: var(--oro); }
.hero__content p { margin: 20px 0 32px; font-size: 1.12rem; color: #d9dbe0; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero__badge { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: #e7e8ec; }
.hero__badge svg { flex: none; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radio); box-shadow: var(--sombra-fuerte); }
.hero__media .placeholder { aspect-ratio: 4/3; }
.hero__pill {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--oro); color: var(--negro); font-family: var(--ff-titulo); font-weight: 700;
  padding: 14px 20px; border-radius: var(--radio-sm); box-shadow: var(--sombra-fuerte); line-height: 1.1;
}
.hero__pill small { display: block; font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }

/* franja senyera */
.senyera-bar { height: 8px; background: repeating-linear-gradient(90deg, var(--oro) 0 38px, var(--rojo) 38px 76px); }

/* ============================================================
   Imágenes placeholder (hasta subir las reales)
   ============================================================ */
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, #ececec, #dfe1e5);
  color: #8b8f96; font-family: var(--ff-titulo); font-weight: 600; font-size: .85rem;
  border-radius: var(--radio); padding: 18px; min-height: 180px;
  border: 2px dashed #c2c5cb;
}

/* ============================================================
   Tarjetas de valor
   ============================================================ */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card {
  background: #fff; border: 1px solid #ececec; border-radius: var(--radio);
  padding: 34px 28px; text-align: center; transition: var(--trans);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--sombra); border-color: transparent; }
.value-card .icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(200,16,46,.10); color: var(--rojo);
}
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--gris); font-size: .97rem; }

/* ============================================================
   Bloque "Por qué" (intro)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img, .split__media .placeholder { border-radius: var(--radio); box-shadow: var(--sombra); }
.split__media .placeholder { aspect-ratio: 4/3; }
.split__body h2 { margin-bottom: 18px; }
.split__body p { color: var(--gris); margin-bottom: 14px; }
.split__body .btn { margin-top: 12px; }
.section--negro .split__body p { color: #c9cbd1; }

/* ============================================================
   Servicios (rejilla)
   ============================================================ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border-radius: var(--radio); overflow: hidden;
  border: 1px solid #ececec; transition: var(--trans); display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--sombra-fuerte); border-color: transparent; }
.service-card__media { aspect-ratio: 16/11; background: #e7e8ec; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__media .placeholder { border-radius: 0; height: 100%; border: 0; }
.service-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card__body h3 { color: var(--negro); }
.service-card__body p { color: var(--gris); font-size: .96rem; }
.service-card__body .link { margin-top: auto; font-family: var(--ff-titulo); font-weight: 600; color: var(--rojo); display: inline-flex; align-items: center; gap: 6px; }
.service-card__body .link:hover { gap: 11px; }

/* ============================================================
   Modalidades (Estándar / Completo)
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 1px solid #e6e6e6; border-radius: var(--radio);
  padding: 38px 34px; box-shadow: var(--sombra);
}
.plan--featured { border: 2px solid var(--rojo); }
.plan__tag {
  position: absolute; top: -14px; left: 34px; background: var(--rojo); color: #fff;
  font-family: var(--ff-titulo); font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
}
.plan h3 { font-size: 1.5rem; margin-bottom: 8px; }
.plan .plan__sub { color: var(--rojo); font-weight: 600; font-family: var(--ff-titulo); margin-bottom: 18px; }
.plan p { color: var(--gris); margin-bottom: 18px; }
.plan ul { display: grid; gap: 12px; margin-bottom: 26px; }
.plan ul li { display: flex; gap: 11px; align-items: flex-start; font-size: .97rem; }
.plan ul li svg { flex: none; margin-top: 3px; color: var(--oro); }

/* ============================================================
   Bloques de servicio detallados (alternando)
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature + .feature { margin-top: 70px; }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media img, .feature__media .placeholder { border-radius: var(--radio); box-shadow: var(--sombra); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.feature__body h3 { font-size: 1.6rem; margin-bottom: 14px; }
.feature__body p { color: var(--gris); }
.feature__tag { color: var(--rojo); font-weight: 600; font-family: var(--ff-titulo); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 8px; }

/* ============================================================
   Timeline (proceso)
   ============================================================ */
.timeline { max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--oro), var(--rojo)); }
.tl-step { position: relative; padding: 0 0 38px 78px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step__num {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 3px solid var(--rojo); color: var(--rojo);
  font-family: var(--ff-titulo); font-weight: 700; font-size: 1.25rem;
  display: grid; place-items: center; z-index: 1;
}
.tl-step:last-child .tl-step__num { background: var(--rojo); color: #fff; }
.tl-step h3 { margin-bottom: 6px; }
.tl-step p { color: var(--gris); }

/* ============================================================
   Proceso resumido (banda)
   ============================================================ */
.steps-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-mini { text-align: center; }
.step-mini .num {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--oro); color: var(--negro); font-family: var(--ff-titulo); font-weight: 700; font-size: 1.15rem;
  display: grid; place-items: center;
}
.step-mini h4 { font-family: var(--ff-titulo); margin-bottom: 6px; }
.step-mini p { color: var(--gris); font-size: .9rem; }
.section--negro .step-mini p { color: #c9cbd1; }

/* ============================================================
   Lema
   ============================================================ */
.slogan { text-align: center; }
.slogan h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.slogan h2 .dot { color: var(--oro); }

/* ============================================================
   Reseñas
   ============================================================ */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: #fff; border: 1px solid #ececec; border-radius: var(--radio); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.review__stars { color: var(--oro); letter-spacing: 2px; font-size: 1.05rem; }
.review p { color: #3a3d43; font-size: .98rem; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--rojo); color: #fff; display: grid; place-items: center; font-family: var(--ff-titulo); font-weight: 700; }
.review__author strong { font-family: var(--ff-titulo); font-size: .95rem; display: block; }
.review__author span { color: var(--gris); font-size: .82rem; }

/* ============================================================
   CTA final
   ============================================================ */
.cta-band { background: linear-gradient(120deg, var(--rojo), var(--rojo-osc)); color: #fff; text-align: center; border-radius: 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffd9de; margin: 14px auto 28px; max-width: 560px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid #e6e6e6; border-radius: var(--radio-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; font-family: var(--ff-titulo); font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--negro); }
.faq-q .chev { transition: var(--trans); flex: none; color: var(--rojo); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--gris); }

/* ============================================================
   Contacto
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-info__item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info__item .ic { width: 48px; height: 48px; flex: none; border-radius: 12px; background: rgba(200,16,46,.10); color: var(--rojo); display: grid; place-items: center; }
.contact-info__item h4 { font-family: var(--ff-titulo); margin-bottom: 3px; }
.contact-info__item p, .contact-info__item a { color: var(--gris); font-size: .97rem; }
.contact-info__item a:hover { color: var(--rojo); }

.form { background: #fff; border: 1px solid #ececec; border-radius: var(--radio); padding: 32px; box-shadow: var(--sombra); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--ff-titulo); font-weight: 500; font-size: .9rem; }
.field input, .field textarea {
  font-family: var(--ff-texto); font-size: .97rem; padding: 12px 14px;
  border: 1px solid #d8dadf; border-radius: var(--radio-sm); background: #fafbfc; transition: var(--trans);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rojo); background: #fff; box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.field .error { color: var(--rojo); font-size: .82rem; display: none; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--rojo); }
.form__note { font-size: .82rem; color: var(--gris); margin-top: 8px; }
.form__status { margin-top: 14px; font-weight: 600; font-family: var(--ff-titulo); display: none; }
.form__status.ok { display: block; color: #1c8a4a; }
.form__status.err { display: block; color: var(--rojo); }

.map-embed { margin-top: 50px; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.map-embed iframe, .map-embed .placeholder { width: 100%; height: 360px; border: 0; display: block; }

/* ============================================================
   Pie de página
   ============================================================ */
.footer { background: var(--negro); color: #c9cbd1; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-family: var(--ff-titulo); margin-bottom: 18px; font-size: 1.05rem; }
.footer a { color: #c9cbd1; font-size: .95rem; }
.footer a:hover { color: var(--oro); }
.footer ul { display: grid; gap: 11px; }
.footer__brand p { margin: 16px 0; font-size: .95rem; max-width: 320px; }
.footer__brand .brand__txt strong { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { flex: none; margin-top: 3px; color: var(--oro); }
.footer__bottom { border-top: 1px solid #2c2d31; padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem; }
.footer__bottom a { font-size: .86rem; }
.footer__bottom a:hover { color: var(--oro); }

/* ============================================================
   Páginas legales
   ============================================================ */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 1.45rem; margin: 38px 0 14px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.12rem; margin: 24px 0 10px; }
.legal p { color: #3a3d43; margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 18px; color: #3a3d43; }
.legal ul li { margin-bottom: 8px; }
.legal a { color: var(--rojo); text-decoration: underline; }
.legal a:hover { color: var(--rojo-osc); }
.legal .ph { background: #fff3cd; padding: 1px 6px; border-radius: 4px; font-weight: 600; color: #7a5b00; }
.legal__updated { margin-top: 34px; font-size: .9rem; color: var(--gris); font-style: italic; }
.legal__intro { color: var(--gris); margin-bottom: 30px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .values, .services, .reviews { grid-template-columns: repeat(2, 1fr); }
  .steps-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 76px 0 auto 0; background: rgba(20,20,20,.98); flex-direction: column; align-items: stretch;
    gap: 0; padding: 10px 22px 24px; border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: var(--sombra-fuerte);
    transform: translateY(-130%); transition: transform .3s ease; }
  .nav.open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav .lang { margin-top: 14px; align-self: flex-start; }
  .nav-toggle { display: flex; }
  .hero__inner, .split, .feature, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__inner { padding: 60px 0; }
  .split--reverse .split__media, .feature:nth-child(even) .feature__media { order: 0; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .values, .services, .reviews, .steps-strip { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
}
