/* ============================================================
   TORTOSA — v3
   Maquetación amplia de "estudio": navegación flotante en píldora,
   mucho aire entre secciones, rejillas de tarjetas y titulares
   grandes. Colores y tipografía de marca de Tortosa.
   ============================================================ */

:root {
  --ink:        #16120F;
  --ink-2:      #231D19;
  --mocca:      #9B7B65;
  --mocca-dark: #7C5E49;
  --mocca-soft: #C9AE97;
  --cream:      #F4EEE7;
  --cream-2:    #ECE3D8;
  --paper:      #FBF8F4;
  --muted:      #6E655D;
  --muted-2:    #A39A91;
  --line:       rgba(22,18,15,.10);
  --line-2:     rgba(22,18,15,.18);
  --line-light: rgba(244,238,231,.14);

  --font:      'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-disp: 'DM Serif Display', Georgia, 'Times New Roman', serif;

  --wrap: 1280px;
  --gutter: clamp(24px, 5vw, 40px);
  --space: clamp(96px, 13vw, 176px);   /* aire entre secciones */
  --r-sm: 12px;
  --r:    20px;
  --r-lg: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.55; letter-spacing: -0.005em;
  color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
/* <picture> solo elige el formato (WebP o JPG): no participa en el diseño */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mocca); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-disp); font-weight: 400; line-height: 1.04; letter-spacing: -0.025em; }
h1 em, h2 em { font-style: italic; color: var(--mocca-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0 0; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip-link:focus { left: 0; }

/* ---------- Etiquetas ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.label.muted { color: var(--muted); }
.label-light { color: var(--paper); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mocca); display: inline-block; }
.label-light .dot { background: var(--mocca-soft); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 8px 8px 8px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .3s var(--ease);
}
.btn-arrow {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-size: .95rem; transition: transform .35s var(--ease);
}
.btn:hover .btn-arrow { transform: rotate(45deg); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary .btn-arrow { background: var(--mocca); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light .btn-arrow { background: var(--ink); color: var(--paper); }
.btn-light:hover { background: var(--cream-2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline .btn-arrow { background: var(--ink); color: var(--paper); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 5px 5px 5px 18px; font-size: .9rem; }
.btn-sm .btn-arrow { width: 32px; height: 32px; }
.btn:not(:has(.btn-arrow)) { padding: 8px 26px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; gap: 10px; margin-top: 36px; font-weight: 600; color: var(--mocca-dark); transition: gap .3s var(--ease); }
.link-arrow:hover { gap: 16px; }

/* ============================================================
   NAVEGACIÓN FLOTANTE
   ============================================================ */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 var(--gutter); }
.nav {
  max-width: calc(var(--wrap) - 2 * 40px); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 10px 17px 10px 28px; min-height: 78px;
  box-shadow: 0 12px 30px -16px rgba(22,18,15,.5);
}
.nav-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-iso { height: 40px; width: auto; }
.nav-logo { height: 30px; width: auto; }
.nav-links { margin-left: auto; display: flex; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: .94rem; font-weight: 500;
  color: rgba(251,248,244,.82); transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); background: rgba(251,248,244,.08); }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu-movil {
  max-width: calc(var(--wrap) - 2 * 40px); margin: 10px auto 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 22px 22px; display: flex; flex-direction: column;
  box-shadow: 0 24px 50px -24px rgba(22,18,15,.4);
}
.menu-movil a:not(.btn) { padding: 14px 0; font-family: var(--font-disp); font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1.1; border-bottom: 1px solid var(--line); }
.menu-movil .btn { margin-top: 20px; }

/* ============================================================
   HERO (texto + fachada con sello de 25 años) + MARCAS
   ============================================================ */
.hero { padding-top: clamp(148px, calc(13vw + 18px), 198px); }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: .98; letter-spacing: -0.04em;
  margin: 24px 0;
}
.hero-lead { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.14rem); line-height: 1.6; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 34px; }
/* Enlace a las reseñas de Google junto al botón */
.hero-reviews { display: inline-flex; flex-direction: column; gap: 2px; font-size: .9rem; color: var(--on-dark-muted); }
.hero-reviews strong { color: var(--on-dark); font-weight: 600; }
.hero-reviews-stars { color: var(--champagne); letter-spacing: 2px; font-size: .95rem; }
.hero-reviews:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.hero-visual { position: relative; }
.hero-media {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  aspect-ratio: 5 / 4; background: var(--cream-2);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Sello "25 años a tu lado" girando sobre la esquina de la foto */
.hero-badge {
  position: absolute; bottom: -46px; right: -42px; z-index: 3;
  width: 142px; height: 142px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--cream); text-align: center;
  filter: drop-shadow(0 20px 26px rgba(22,18,15,.36));
}
.hero-badge-ring {
  position: absolute; inset: 0; overflow: visible;
  transform-origin: 50% 50%; transform-box: fill-box;
  animation: badgeSpin 18s linear infinite;
}
.hero-badge-num {
  position: relative; z-index: 1;
  font-family: var(--font-disp); font-size: 4.4rem; font-weight: 400;
  line-height: 1; text-shadow: 0 3px 16px rgba(22,18,15,.42);
}
.hero-badge-text {
  fill: currentColor; font-family: var(--font); font-size: .78rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
}
@keyframes badgeSpin { to { transform: rotate(360deg); } }

.brands { padding-top: clamp(64px, 8vw, 104px); }
.label-row {
  display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 24px;
  padding-bottom: 24px;
}
.label-plus { color: var(--muted-2); font-size: 1.2rem; line-height: 1; }
.marquee {
  overflow: hidden; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track .marquee-dup { display: contents; }
.marquee-track a, .marquee-track span { display: block; padding: 6px; border-radius: var(--r-sm); }
.marquee-track img { height: 30px; width: auto; filter: brightness(0) invert(.9) sepia(.25); opacity: .65; transition: opacity .25s ease; }
.marquee-track a:hover img, .marquee-track a:focus-visible img { opacity: 1; }
/* Se para al pasar el ratón o al tabular, para poder pulsar el logo con calma */
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track i { font-style: normal; color: var(--mocca); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   CABECERAS DE SECCIÓN
   ============================================================ */
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-top: 20px; max-width: 16ch; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-sub { color: var(--muted); font-size: 1.06rem; max-width: 38ch; }

/* ============================================================
   TRABAJOS + SERVICIOS — paneles que se abren
   ============================================================ */
.svc-panels { display: flex; gap: 10px; height: clamp(480px, 46vw, 600px); }
.svc-panel {
  position: relative; flex: 1; min-width: 0; overflow: hidden; cursor: pointer;
  border-radius: var(--r); background: var(--brown-2, #1C1511);
  transition: flex .7s var(--ease);
}
.svc-panel > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(.8); transition: filter .6s ease; }
.svc-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,9,7,.97) 0%, rgba(13,9,7,.82) 34%, rgba(13,9,7,0) 72%); pointer-events: none; }
.svc-panel-v {
  position: absolute; left: 50%; bottom: 28px; z-index: 2;
  transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl;
  font-family: var(--font-disp); font-size: 1.6rem; white-space: nowrap; color: var(--on-dark, #E9DFCC);
  transition: opacity .3s ease;
}
.svc-panel-in {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(22px, 2.6vw, 32px);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .4s ease .15s, transform .6s var(--ease) .15s, visibility 0s .7s;
}
.svc-panel-no { font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: var(--champagne, #B7937B); }
.svc-panel-in h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 8px; color: var(--on-dark, #E9DFCC); }
.svc-panel-in p { color: var(--on-dark-muted, rgba(233,223,204,.62)); margin-top: 8px; max-width: 40ch; }
.svc-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font: 600 1rem var(--font); color: var(--champagne, #B7937B); transition: gap .3s var(--ease);
}
.svc-link:hover { gap: 16px; }
.svc-panel.is-open { flex: 5; cursor: default; }
.svc-panel.is-open > picture > img { filter: none; }
.svc-panel.is-open .svc-panel-v { opacity: 0; }
.svc-panel.is-open .svc-panel-in { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; }

/* ============================================================
   TRABAJOS REALES (trabajos.html): rejilla + visor
   ============================================================ */
/* Página trabajos.html: pantalla dedicada (cabecera fija + pestañas por servicio) */
.works-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20,15,11,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark, rgba(233,223,204,.10));
}
.works-head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 6px; }
.works-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 8px; }
.works-head p { font-size: .9rem; color: var(--on-dark-muted, rgba(233,223,204,.62)); margin-top: 4px; }
.works-tabs { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; margin-top: 10px; }
.works-tabs::-webkit-scrollbar { display: none; }
.works-tab {
  flex: none; display: inline-flex; align-items: baseline; gap: 8px; cursor: pointer;
  padding: 12px 14px 14px; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent;
  font: 500 .95rem var(--font); color: var(--on-dark-muted, rgba(233,223,204,.62));
  transition: color .25s ease, border-color .25s ease;
}
.works-tab small { font-size: .75rem; color: var(--champagne, #B7937B); }
.works-tab:hover { color: var(--on-dark, #E9DFCC); }
.works-tab[aria-selected="true"] { color: var(--on-dark, #E9DFCC); border-bottom-color: var(--champagne, #B7937B); }
.works-filters { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; padding: 14px 0 16px; scrollbar-width: none; border-top: 1px solid var(--line-dark, rgba(233,223,204,.10)); }
.works-filters::-webkit-scrollbar { display: none; }
.works-filters:empty { display: none; }
.works-body { padding-top: 28px; padding-bottom: 80px; }
a.icon-btn { color: var(--brown, #140F0B); }
.gal-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 0; background: transparent;
  font: 500 .9rem var(--font); color: var(--on-dark-muted, rgba(233,223,204,.62));
  box-shadow: inset 0 0 0 1px rgba(233,223,204,.18); transition: background-color .25s ease, color .25s ease;
}
.gal-chip small { font-size: .75rem; color: var(--champagne, #B7937B); }
.gal-chip:hover { color: var(--on-dark, #E9DFCC); }
.gal-chip[aria-pressed="true"] { background: var(--ivory, #E9DFCC); color: var(--brown, #140F0B); box-shadow: none; }
.gal-chip[aria-pressed="true"] small { color: var(--brown, #140F0B); }
.gal-grid { columns: 4 240px; column-gap: 14px; }
.gal-item {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; cursor: zoom-in;
  break-inside: avoid; position: relative; overflow: hidden; border-radius: var(--r-sm);
  background: var(--brown-2, #1C1511); opacity: 0; transform: translateY(14px);
  animation: gal-in .6s var(--ease) forwards;
}
.gal-item img { width: 100%; height: auto; min-height: 120px; display: block; transition: transform .8s var(--ease); }
.gal-item:hover img { transform: scale(1.04); }
.gal-tag {
  position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; background: rgba(239,231,216,.92); color: var(--brown, #140F0B);
  opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gal-item:hover .gal-tag, .gal-item:focus-visible .gal-tag { opacity: 1; transform: none; }
@keyframes gal-in { to { opacity: 1; transform: none; } }

.icon-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; border: 0;
  display: grid; place-items: center; background: var(--ivory, #E9DFCC); color: var(--brown, #140F0B);
  transition: transform .35s var(--ease);
}
.icon-btn:hover { transform: rotate(90deg); }

.lb {
  position: fixed; inset: 0; z-index: 90; background: rgba(13,9,7,.97); color: var(--on-dark, #E9DFCC);
  display: grid; grid-template-rows: auto 1fr auto;
}
.lb[hidden] { display: none !important; }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.lb-top span { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--champagne, #B7937B); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 76px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); object-fit: contain; border-radius: 8px; user-select: none; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: transparent; color: var(--on-dark, #E9DFCC);
  border: 0; box-shadow: inset 0 0 0 1px rgba(233,223,204,.22); transition: background-color .25s ease, color .25s ease;
}
.lb-nav:hover { background: var(--ivory, #E9DFCC); color: var(--brown, #140F0B); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-bottom { justify-content: center; font-size: .85rem; color: var(--on-dark-muted, rgba(233,223,204,.62)); }

.center-cta { display: flex; justify-content: center; margin-top: 56px; }


/* ============================================================
   NOSOTROS
   ============================================================ */
/* Texto a la izquierda (6 de 12 columnas) y foto vertical a la derecha (5 de 12) */
.about-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 32px); align-items: center;
}
.about-copy { grid-column: 1 / span 6; }
.about-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; margin-top: 20px;
}
.about-text { margin-top: 28px; max-width: 52ch; }
.about-text p { color: var(--muted); font-size: 1.04rem; line-height: 1.7; }
.about-text p + p { margin-top: 18px; }
.about-cta { margin-top: 36px; }
.about-photo {
  grid-column: 8 / span 5; position: relative; overflow: hidden; margin: 0;
  aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--cream-2);
}
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-photo figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(239,231,216,.92); color: var(--ink); backdrop-filter: blur(8px);
  padding: 7px 12px; border-radius: 999px; font-size: .8rem; font-weight: 500;
}

/* ============================================================
   PROCESO
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  background: var(--paper); border-radius: var(--r); padding: 30px 28px 34px;
  min-height: 300px; display: flex; flex-direction: column;
}
.step-no {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); font-size: .85rem; font-weight: 600;
}
.step h3 { font-size: 1.9rem; margin-top: auto; padding-top: 48px; }
.step p { color: var(--muted); margin-top: 10px; }

/* ============================================================
   SERVICIOS (bloque oscuro)
   ============================================================ */
.services { padding-bottom: var(--space); background: var(--ink); color: var(--paper); margin-top: var(--space); }
.services .section-head h2 { color: var(--paper); }
.service-list { border-top: 1px solid var(--line-light); }
.service-row {
  position: relative; display: grid; grid-template-columns: 90px 1fr 180px; gap: 32px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line-light);
}
.service-no { font-size: .9rem; color: var(--mocca-soft); font-weight: 500; }
.service-text h3 { font-size: clamp(1.9rem, 3.6vw, 3rem); transition: transform .4s var(--ease), color .3s ease; }
.service-text p { color: rgba(251,248,244,.62); margin-top: 6px; max-width: 52ch; }
.service-row img {
  width: 180px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm);
  opacity: 0; transform: scale(.92) rotate(-2deg);
  transition: opacity .4s ease, transform .5s var(--ease);
}
.service-row:hover img { opacity: 1; transform: none; }
.service-row:hover h3 { transform: translateX(10px); color: var(--mocca-soft); }

/* ============================================================
   CATÁLOGOS
   ============================================================ */
.cat-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-group { background: var(--paper); border-radius: var(--r); padding: 28px 26px 18px; }
.cat-group h3 { font-size: 1.55rem; margin-bottom: 18px; min-height: 2.1em; }
.cat-group a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 13px 0; border-top: 1px solid var(--line); font-weight: 500; font-size: .96rem;
  transition: color .2s ease, padding .3s var(--ease);
}
.cat-group a span { color: var(--mocca); }
.cat-group a:hover { color: var(--mocca-dark); padding-left: 6px; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { padding-bottom: var(--space); }
/* Dos tarjetas: marfil con titular y datos + oscura con el formulario integrado */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; align-items: stretch; }
.contact-copy {
  background: var(--ivory); color: var(--brown); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column;
}
.contact-copy .label { color: var(--brown); }
.contact-copy .dot { background: var(--brown); }
.contact-copy h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 20px 0 16px; color: var(--brown); }
.contact-copy h2 em { color: #8A6A44; }
.contact-copy > p { color: rgba(20,15,11,.7); font-size: 1.06rem; max-width: 42ch; }
.contact-list { margin-top: auto; padding-top: 36px; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(20,15,11,.12); font-size: .98rem; }
.contact-list li > span:first-child { color: rgba(20,15,11,.55); }
.contact-list li > :last-child { text-align: right; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  background: var(--brown-2); box-shadow: inset 0 0 0 1px var(--line-dark); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
}
.contact-form .field { margin-bottom: 26px; }
.contact-form .flabel, .contact-form .field > label { display: block; margin-bottom: 10px; color: var(--on-dark-muted); font-size: .9rem; font-weight: 500; }
.contact-form input:not([type=checkbox]), .contact-form textarea {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--ivory); background: transparent;
  border: 0; border-bottom: 1px solid rgba(233,223,204,.22); border-radius: 0; padding: 10px 0 12px; resize: vertical;
  transition: border-color .25s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--champagne); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--on-dark-faint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 999px; font-size: .92rem; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(233,223,204,.22); transition: .2s; }
.chips label:hover span { box-shadow: inset 0 0 0 1px var(--on-dark-muted); }
.chips input:checked + span { background: var(--ivory); color: var(--brown); box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--champagne); outline-offset: 2px; }
.contact-form .btn { margin-top: 6px; }
.form-note { margin-top: 14px; font-size: .92rem; min-height: 1.2em; }
.form-note.ok { color: #9CCBA6; font-weight: 600; }
.form-note.err { color: #c13515; font-weight: 600; }
.form-legal { margin-top: 18px; font-size: .78rem; line-height: 1.55; color: var(--on-dark-muted); max-width: 70ch; }
.form-legal a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 2px; }
.form-legal a:hover { color: var(--champagne); }

/* ============================================================
   PIE
   ============================================================ */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 104px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1fr; gap: 40px; }
.footer-logo { width: min(220px, 60vw); height: auto; }
.footer-brand p { color: var(--muted); margin-top: 18px; max-width: 32ch; }
.footer h3 { font-family: var(--font); font-size: .88rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 16px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a:hover { color: var(--mocca-dark); }
.footer-word {
  /* Logo real (assets/brand/logo.svg) como máscara para poder teñirlo */
  width: 100%; aspect-ratio: 1188 / 207; margin: clamp(48px, 6vw, 80px) 0 clamp(20px, 2.5vw, 32px);
  background-color: var(--cream-2);
  -webkit-mask: url("assets/brand/logo.svg") center / contain no-repeat;
          mask: url("assets/brand/logo.svg") center / contain no-repeat;
  user-select: none;
}
/* Tres columnas: copyright · crédito centrado de verdad · volver arriba */
.footer-bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 16px;
  padding: 22px 0 28px; font-size: .88rem; color: var(--muted);
}
.footer-bottom > :last-child { justify-self: end; }
.footer-bottom a:hover { color: var(--ink); }
.footer-credit span { font-family: 'Funnel Display', var(--font); font-weight: 600; letter-spacing: -0.01em; }

/* ============================================================
   APARICIÓN AL HACER SCROLL
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cat-groups { grid-template-columns: 1fr 1fr; }
  .cat-group:last-child:nth-child(odd) { grid-column: span 2; }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  /* Sin sitio para centrar: copyright arriba; crédito y "volver arriba" debajo */
  .footer-bottom { grid-template-columns: 1fr auto; }
  .footer-bottom p { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .about-copy, .about-photo { grid-column: 1 / -1; }
  .about-photo { aspect-ratio: 4 / 3; margin-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .svc-panels { flex-direction: column; height: auto; }
  .svc-panel { flex: none; height: 84px; transition: height .6s var(--ease); }
  .svc-panel.is-open { flex: none; height: 440px; }
  .svc-panel-v { writing-mode: horizontal-tb; transform: translateX(-50%); bottom: 26px; font-size: 1.4rem; }
  .service-row { grid-template-columns: 56px 1fr; }
  .service-row img { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { min-height: 68px; padding: 10px 12px 10px 20px; }
  .nav-iso { height: 34px; }
  .nav-logo { height: 25px; }
  .nav-brand { gap: 12px; }
  .hero-media { aspect-ratio: 4 / 5; }
  .hero-media img { object-position: 25% 30%; }
  .hero-badge { width: 112px; height: 112px; right: -12px; bottom: -36px; }
  .hero-badge-num { font-size: 3.35rem; }
  .hero-badge-text { font-size: .82rem; letter-spacing: .12em; }
  .gal-grid { columns: 2; column-gap: 8px; }
  .gal-item { margin-bottom: 8px; border-radius: 10px; }
  .gal-tag { display: none; }
  .lb-stage { padding: 0 8px; }
  .lb-nav { top: auto; bottom: -62px; transform: none; width: 46px; height: 46px; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
  .label-row { grid-template-columns: 1fr auto; }
  .label-row > :nth-child(n+3) { display: none; }
  .steps, .cat-groups { grid-template-columns: 1fr; }
  .cat-group:last-child:nth-child(odd) { grid-column: auto; }
  .step { min-height: 0; }
  .step h3 { padding-top: 32px; }
  .cat-group h3 { min-height: 0; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge-ring, .marquee-track, .gal-item { animation: none; }
  .gal-item { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}


/* ============================================================
   TEMA OSCURO ELEGANTE
   Fondo marrón casi negro + crema marfil (sin tono rosado).
   Acentos en champán, líneas finas y tarjetas con borde sutil
   para transmitir calidad y confianza.
   Para volver al tema claro, borra este bloque completo.
   ============================================================ */
:root {
  /* Fondos */
  --brown:   #140F0B;   /* fondo principal: marrón casi negro */
  --brown-2: #1C1511;   /* tarjetas */
  --brown-3: #272019;   /* chips y detalles sobre tarjeta */
  --deep:    #0D0907;   /* bandas de contraste (servicios, contacto, pie) */

  /* Crema marfil: más sobrio que el crema rosado anterior */
  --ivory:   #E9DFCC;
  --on-dark: #E9DFCC;
  --on-dark-muted: rgba(233,223,204,.62);
  --on-dark-faint: rgba(233,223,204,.30);
  --line-dark: rgba(233,223,204,.10);

  /* Color principal de la marca (el del logo): todos los acentos */
  --champagne: #B7937B;

  /* Superficies claras (formulario, menú móvil, etiquetas sobre foto) */
  --paper:   #EFE7D8;
  --cream:   #E4D9C5;
  --cream-2: #D9CCB4;
}

body { background: var(--brown); color: var(--on-dark); }
h1 em, h2 em { color: var(--champagne); }
.label { color: var(--on-dark); letter-spacing: .01em; }
.dot { background: var(--champagne); }
.label.muted, .section-sub, .hero-lead { color: var(--on-dark-muted); }
.label-plus { color: var(--on-dark-faint); }
.hero-media, .about-photo { background: var(--brown-2); }
.link-arrow { color: var(--champagne); }

/* Botones: el principal en marfil con flecha oscura, sobrio */
.btn-primary { background: var(--ivory); color: var(--brown); }
.btn-primary:hover { background: #F3EBDD; }
.btn-primary .btn-arrow { background: var(--brown); color: var(--ivory); }
.btn-outline { color: var(--on-dark); border-color: rgba(233,223,204,.22); }
.btn-outline:hover { border-color: var(--on-dark); }
.btn-outline .btn-arrow { background: var(--ivory); color: var(--brown); }
.btn-light { background: var(--ivory); color: var(--brown); }
.btn-light .btn-arrow { background: var(--brown); color: var(--ivory); }
.btn-light:hover { background: #F3EBDD; }

/* Navegación */
.nav { background: rgba(13,9,7,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
       box-shadow: 0 14px 34px -18px rgba(0,0,0,.8), inset 0 0 0 1px var(--line-dark); }
.nav-links a { color: var(--on-dark-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--on-dark); background: rgba(233,223,204,.07); }
.nav-toggle { background: var(--ivory); }
.nav-toggle span { background: var(--brown); }
.menu-movil { color: var(--brown); }

/* Tarjetas: superficie un punto más clara + borde muy fino */
.step, .cat-group {
  background: var(--brown-2); box-shadow: inset 0 0 0 1px var(--line-dark);
}
.marquee { border-color: var(--line-dark); }
.marquee-track i { color: var(--champagne); }
.hero-badge { color: var(--on-dark); }

.step p, .about-text p { color: var(--on-dark-muted); }
.step-no { border-color: rgba(233,223,204,.2); color: var(--champagne); }
.cat-group a { border-top-color: var(--line-dark); }
.cat-group a span { color: var(--champagne); }
.cat-group a:hover { color: var(--champagne); }

/* Bandas de contraste */
.services { background: var(--deep); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.service-list, .service-row { border-color: var(--line-dark); }
.service-no { color: var(--champagne); }
.service-text p { color: var(--on-dark-muted); }
.service-row:hover h3 { color: var(--champagne); }

/* Pie */
.footer { background: var(--deep); border-top-color: var(--line-dark); color: var(--on-dark); }
.footer h3, .footer-brand p, .footer-bottom { color: var(--on-dark-muted); }
.footer ul a:hover, .footer-bottom a:hover { color: var(--champagne); }
.footer-word { background-color: #1A1410; }
/* Aviso de IA: muy discreto, bajo la línea del pie */
.footer-ai { margin: -14px 0 0; padding-bottom: 22px; font-size: .7rem; text-align: center; color: var(--on-dark-faint); }

::selection { background: var(--champagne); color: var(--brown); }

/* ============================================================
   FACHADAS — texto a la izquierda y, a la derecha, tres columnas
   de fotos que suben y bajan sin parar dentro de un arco
   ============================================================ */
.fachadas-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.fachadas-copy h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-top: 20px; max-width: 12ch; }
.fachadas-lead { color: var(--on-dark-muted); font-size: 1.08rem; margin-top: 22px; max-width: 46ch; }
.fachadas-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 32px 0 40px; }
.fachadas-checks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.fachadas-checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(183,147,123,.45);
  background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.5 2.4L10 3.3' fill='none' stroke='%23B7937B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.fachadas-arch {
  position: relative; height: clamp(460px, 46vw, 600px); margin: 0 6%; padding: 0 12px; overflow: hidden;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  background: var(--brown-2); box-shadow: inset 0 0 0 1px var(--line-dark);
}
.fachadas-cols { --fg: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fg); height: 100%; }
.fachadas-col { display: flex; flex-direction: column; gap: var(--fg); animation: fachadas-up 36s linear infinite; }
.fachadas-col.down { animation-name: fachadas-down; animation-duration: 30s; }
.fachadas-col:nth-child(3) { animation-duration: 40s; }
.fachadas-col img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm); flex: none; background: var(--brown-3); }
.fachadas-arch:hover .fachadas-col { animation-play-state: paused; }
@keyframes fachadas-up { to { transform: translateY(calc(-50% - var(--fg) / 2)); } }
@keyframes fachadas-down { from { transform: translateY(calc(-50% - var(--fg) / 2)); } to { transform: none; } }

@media (max-width: 900px) {
  .fachadas-grid { grid-template-columns: 1fr; }
  .fachadas-arch { height: 520px; margin: 0; }
}
@media (max-width: 640px) {
  .fachadas-checks { grid-template-columns: 1fr; }
  .fachadas-arch { height: 440px; padding: 0 8px; }
  .fachadas-cols { --fg: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .fachadas-col { animation: none; }
}

/* ============================================================
   OSCURO MÁS SUAVE · PANELES FLOTANTES
   Fondo marrón tostado (menos negro) y algunas secciones convertidas
   en grandes paneles redondeados más claros para dar ritmo.
   ============================================================ */
:root {
  --brown:   #2A211B;
  --brown-2: #352A22;
  --brown-3: #42352B;
  --deep:    #201914;
  --line-dark: rgba(233,223,204,.13);
}
.footer-word { background-color: #2F251E; }
.hero-media, .about-photo { box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }

/* Secciones-panel */
.fachadas, .process, .catalogs {
  margin: var(--space) max(12px, calc((100% - var(--wrap) - 80px) / 2)) 0;
  padding: clamp(56px, 8vw, 104px) 0; border-radius: clamp(28px, 4vw, 48px);
  background: var(--brown-2); box-shadow: inset 0 0 0 1px var(--line-dark);
}
.fachadas-arch { background: var(--brown-3); }
.process .step { background: var(--brown-3); }

/* Catálogos en marfil: el panel claro de la página */
.catalogs { background: var(--ivory); color: var(--brown); box-shadow: none; }
.catalogs .label { color: #8A6A44; }
.catalogs h2 em { color: #8A6A44; }
.catalogs .section-sub { color: rgba(20,15,11,.65); }
.catalogs .cat-group { background: #F6F0E4; box-shadow: none; }
.catalogs .cat-group a { border-top-color: rgba(20,15,11,.10); }
.catalogs .cat-group a span { color: var(--champagne); }
.catalogs .cat-group a:hover { color: #8A6A44; }

/* Contacto: las tarjetas ocupan el mismo ancho que los paneles */
.contact .wrap { max-width: none; padding-inline: max(12px, calc((100% - var(--wrap) - 80px) / 2)); }

@media (max-width: 640px) {
  .fachadas, .process, .catalogs { margin-inline: 12px; }
  .fachadas .wrap, .process .wrap, .catalogs .wrap { padding-inline: 20px; }
  .contact .wrap { padding-inline: 12px; }
  .step, .cat-group { padding-inline: 24px; }
}

/* Etiquetas: sin punto, en mayúsculas espaciadas y en el color de la marca */
.label { color: var(--champagne); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; }
/* Sobre la tarjeta marfil de contacto el color de marca apenas se ve: allí, marrón */
.contact-copy .label { color: var(--brown); }
:focus-visible { outline-color: var(--champagne); }

/* ============================================================
   PÁGINAS LEGALES (privacidad.html, aviso-legal.html, cookies.html)
   Columna de lectura estrecha, pestañas para saltar entre las tres
   y los datos del titular en filas, como en la tarjeta de contacto.
   ============================================================ */
.legal { padding: clamp(148px, calc(13vw + 18px), 198px) 0 var(--space); }
.legal .wrap { max-width: 840px; }
.legal-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: clamp(40px, 5vw, 56px); }
.legal-tabs::-webkit-scrollbar { display: none; }
.legal-tabs a {
  flex: none; padding: 9px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  color: var(--on-dark-muted); box-shadow: inset 0 0 0 1px rgba(233,223,204,.18);
  transition: background-color .25s ease, color .25s ease;
}
.legal-tabs a:hover { color: var(--on-dark); }
.legal-tabs a[aria-current="page"] { background: var(--ivory); color: var(--brown); box-shadow: none; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-top: 20px; }
.legal-updated { color: var(--on-dark-muted); font-size: .9rem; margin-top: 16px; }
.legal-body { margin-top: clamp(40px, 5vw, 56px); }
.legal-body h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 52px 0 16px; }
.legal-body > :first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--on-dark-muted); line-height: 1.7; }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 14px; }
.legal-body ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-body li::marker { color: var(--champagne); }
.legal-body strong { color: var(--on-dark); font-weight: 600; }
.legal-body a { color: var(--champagne); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-data { border-bottom: 1px solid var(--line-dark); }
.legal-data div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.legal-data dt { color: var(--on-dark-muted); }
.legal-data dd { text-align: right; }

@media (max-width: 640px) {
  .legal-data div { flex-direction: column; gap: 2px; }
  .legal-data dd { text-align: left; }
}
