/* ============================================================
   Art Vertical BCN — Trabajos verticales en Barcelona
   Hoja de estilos principal
   ============================================================ */

:root {
  --brand: #f01d91;
  --brand-dark: #c90e74;
  --brand-soft: #fde7f4;
  --ink: #15151a;
  --ink-2: #3d3d46;
  --muted: #67676f;
  --line: #ebebf0;
  --bg: #ffffff;
  --bg-soft: #faf8fb;
  --dark: #131318;
  --dark-2: #1c1c23;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(19, 19, 24, 0.10);
  --shadow-sm: 0 4px 16px rgba(19, 19, 24, 0.07);
  --container: 1160px;
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #f3f3f6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 760px;
}

.text-muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn svg { flex: 0 0 auto; }
.btn-primary {
  background: var(--brand);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(240, 29, 145, 0.35);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--ink);
  color: var(--ink) !important;
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: #fff !important; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--ink) !important; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.25); }
.btn-ghost-light {
  border: 2px solid rgba(255,255,255,0.55);
  color: #fff !important;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(19, 19, 24, 0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
  flex: 0 0 auto;
}
.brand-mark { width: 40px; height: 40px; border-radius: 11px; display: block; }
.brand-logo { height: 46px; width: auto; border-radius: 11px; display: block; }
.cert-badges { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cert-badges img {
  height: 84px;
  width: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
}
.brand-text {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.brand-text strong { color: var(--brand); font-weight: 800; display: block; font-size: 0.86rem; letter-spacing: 0.22em; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.nav-cta { display: none; }
.main-nav a {
  display: block;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
  text-decoration: none !important;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.main-nav a[aria-current="page"] { color: var(--brand); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  font-weight: 800;
  color: var(--ink) !important;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none !important;
}
.header-phone:hover { color: var(--brand) !important; }
.header-phone svg { color: var(--brand); }
.header-cta .btn { padding: 12px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 80px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(240, 29, 145, 0.12), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(240, 29, 145, 0.08), transparent 60%),
    var(--bg-soft);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero h1 .hl { color: var(--brand); }
.hero-lead {
  font-size: 1.18rem;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  max-width: 560px;
}
.hero-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.check-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--brand);
}

.hero-media { position: relative; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 26px -22px -22px 26px;
  border-radius: 26px;
  border: 3px solid var(--brand);
  z-index: 0;
}
.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute;
  z-index: 2;
  left: -26px;
  bottom: 34px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}
.hero-badge .check-ico { width: 26px; height: 26px; margin: 0; }

/* ---------- Franja de confianza ---------- */
.trust-strip {
  background: var(--dark);
  color: #f3f3f6;
  padding: 20px 0;
}
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}
.trust-strip .check-ico { color: var(--brand); }

/* ---------- Bloques de contenido ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  width: 100%;
}
.split-body p + p { margin-top: 16px; }
.split-body .section-lead { margin-bottom: 6px; }

/* ---------- Tarjetas de servicios ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(240, 29, 145, 0.4);
}
.card img { aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.01em; }
.card-body p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none !important;
  margin-top: 4px;
}
.card-link svg { transition: transform 0.18s ease; }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Listas de servicios ---------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px 28px;
  margin-top: 36px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px 18px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-2);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-list li:hover { border-color: rgba(240, 29, 145, 0.45); transform: translateY(-2px); }
.service-list .check-ico { color: var(--brand); margin-top: 1px; }

.section-dark .service-list li {
  background: var(--dark-2);
  border-color: rgba(255, 255, 255, 0.09);
  color: #e8e8ee;
}

/* ---------- Ventajas ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 42px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.feature-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.06rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Galería ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 42px;
}
.gallery-grid figure {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 3.6;
}
.gallery-grid img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  transition: transform 0.35s ease;
}
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(240, 29, 145, 0.35), transparent 60%),
    var(--dark);
  color: #fff;
  border-radius: 28px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.75); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; flex: 0 0 auto; }

/* ---------- Cabecera de página interior ---------- */
.page-hero { padding: calc(var(--header-h) + 40px) 0 60px; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.page-hero .section-lead { margin-bottom: 26px; }
.page-hero-media img {
  border-radius: 24px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  width: 100%;
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none !important;
  color: var(--ink);
}
.contact-card:hover { border-color: rgba(240, 29, 145, 0.45); transform: translateY(-2px); }
.contact-card .feature-ico { margin: 0; flex: 0 0 auto; }
.contact-card small { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card strong { font-size: 1.12rem; letter-spacing: -0.01em; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px;
  box-shadow: var(--shadow-sm);
}
.contact-form h2 { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.contact-form > p { color: var(--muted); margin-bottom: 26px; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.form-consent input { margin-top: 4px; accent-color: var(--brand); }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  margin-top: 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-success.visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(640px 280px at 10% 0%, rgba(240, 29, 145, 0.16), transparent 68%),
    #08080c;
  color: #f1f1f5;
  border-top: 4px solid var(--brand);
  margin-top: 90px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 46px;
  padding: 66px 22px 46px;
}
.footer-brand .brand-text { color: #fff; }
.footer-tagline { margin-top: 16px; font-size: 0.94rem; max-width: 340px; color: #d6d6de; }
.footer-cert {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid rgba(240, 29, 145, 0.45);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}
.footer-grid-compact { grid-template-columns: 1fr; }
.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #f1f1f5; font-size: 0.95rem; text-decoration: none !important; }
.footer-links a:hover { color: var(--brand); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.95rem; align-items: flex-start; }
.footer-contact svg { color: var(--brand); flex: 0 0 auto; margin-top: 3px; }
.footer-contact a { color: #fff; font-weight: 600; text-decoration: none !important; }
.footer-contact a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: #bdbdc8;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Animaciones de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Página 404 ---------- */
.error-page { text-align: center; padding: calc(var(--header-h) + 90px) 0 110px; }
.error-page .error-code {
  font-size: clamp(4.5rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand);
  line-height: 1;
}
.error-page h1 { font-size: 1.7rem; margin: 12px 0 14px; }
.error-page p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-cta .btn { display: none; }
}

@media (max-width: 1020px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .header-phone span { display: none; }
}

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .hero { padding-top: calc(var(--header-h) + 42px); }
  .hero-grid, .split, .page-hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .split-media { order: -1; }
  .split-media img, .page-hero-media img { aspect-ratio: 4 / 3; }
  .hero-media img { aspect-ratio: 4 / 3.2; }
  .hero-badge { left: 14px; bottom: -16px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 46px 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(19, 19, 24, 0.12);
    padding: 14px 22px 22px;
    transform: translateY(-130%);
    transition: transform 0.28s ease;
    margin: 0;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 13px 14px; font-size: 1rem; }
  .main-nav .nav-cta { display: list-item; margin-top: 10px; }
  .main-nav .nav-cta .btn { width: 100%; display: inline-flex; }
}

@media (max-width: 620px) {
  .cards-grid, .service-list, .form-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-checks { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .contact-form { padding: 26px 20px; }
  .trust-strip ul { gap: 10px 22px; justify-content: flex-start; }
}
