/* ==========================================================================
   K'Foam Nautic — Design tokens
   ========================================================================== */

:root {
  /* Brand */
  --navy: #194C84;
  --navy-dark: #12385f;
  --navy-light: #2E67A6;
  --charcoal: #33332f;
  --ink: #232320;

  /* Neutrals (cool, not warm-paper) */
  --bg: #F5F7FA;
  --bg-alt: #EDF1F6;
  --surface: #FFFFFF;
  --line: rgba(35, 35, 32, 0.10);
  --line-strong: rgba(35, 35, 32, 0.18);

  /* Text */
  --text: var(--charcoal);
  --text-muted: rgba(51, 51, 47, 0.64);
  --text-on-dark: #F5F7FA;
  --text-on-dark-muted: rgba(245, 247, 250, 0.72);

  /* Radii — one system: pill for interactive, soft for containers */
  --r-pill: 999px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;

  /* Shadows — tinted to navy, not pure black */
  --shadow-sm: 0 2px 10px rgba(25, 76, 132, 0.08);
  --shadow-md: 0 12px 32px rgba(25, 76, 132, 0.14);
  --shadow-lg: 0 24px 64px rgba(18, 40, 66, 0.22);

  /* Type scale */
  --font-display: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1320px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.inline-link { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.inline-link:hover { opacity: 0.8; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

#servicios, #telas, #descanso, #moquetas, #proceso, #proyectos, #nosotros, #faq, #contacto {
  scroll-margin-top: 100px;
}

/* Skip link — keyboard accessibility */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  z-index: 1000;
  transition: top 200ms var(--ease-out);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.06;
  text-wrap: balance;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--navy);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-top: 14px;
}
.section-head p {
  margin-top: 18px;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 52ch;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.section-pad { padding: clamp(72px, 10vw, 128px) 0; }

/* ==========================================================================
   Buttons — pill radius, single accent
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out), box-shadow 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-dark); box-shadow: var(--shadow-md); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out), gap 200ms var(--ease-out);
}
.text-link:hover { color: var(--navy); border-color: var(--navy); gap: 12px; }
.text-link svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.text-link:hover svg { transform: translate(2px, -2px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 18px clamp(16px, 4vw, 40px);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 22px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(35, 35, 32, 0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-sm);
}

.nav-logo { display: flex; align-items: center; height: 42px; }
.nav-logo img { height: 100%; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color 220ms var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: currentColor;
  transition: right 240ms var(--ease-out);
}
.nav-links a:hover::after { right: 0; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  border: 1px solid transparent;
  color: var(--ink);
  font-size: 20px;
}

.nav-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px clamp(24px, 8vw, 64px) 32px;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  pointer-events: none;
  transition: clip-path 460ms var(--ease-in-out), opacity 300ms var(--ease-out);
}
.nav-mobile-panel.is-open {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-panel a:not(.btn) {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-mobile-panel .btn { margin-top: 28px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.12);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 30, 46, 0.55) 0%, rgba(18, 30, 46, 0.22) 28%, rgba(18, 30, 46, 0.38) 50%, rgba(14, 22, 35, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 18, 30, 0.42) 0%, rgba(10, 18, 30, 0.12) 45%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 64px) clamp(64px, 9vw, 108px);
  padding-top: 120px;
}
.hero-content-inner { max-width: 880px; }

.hero-eyebrow {
  color: var(--text-on-dark-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 500;
  overflow: hidden;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero h1 .line span {
  display: inline-block;
  will-change: transform;
}
.hero h1 .line:first-child > span {
  font-size: 0.74em;
}
.hero h1 .line:last-child > span {
  font-size: 1.3em;
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-weight: 500;
}

.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

/* ==========================================================================
   Intro / stats band
   ========================================================================== */

.intro-band {
  background: var(--surface);
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}
.intro-band .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.intro-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}
.intro-statement strong { color: var(--navy); font-weight: 500; }

.stat-row {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 4px 28px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}
.stat + .stat {
  border-top: 1px solid var(--line-strong);
}
.stat-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  color: var(--navy);
  line-height: 1.15;
}
.stat-label {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Services — bento grid
   ========================================================================== */

.services { background: var(--bg); }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 18px;
}

.bento-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
}
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.bento-card.span-2 { grid-column: span 2; }
.bento-card.row-2 { grid-row: span 2; }

.bento-card.photo { grid-column: span 2; grid-row: span 2; color: #fff; }
.bento-card.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 700ms var(--ease-out);
}
.bento-card.photo:hover img { transform: scale(1.06); }
.bento-card.photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(18, 30, 46, 0.05) 30%, rgba(15, 24, 38, 0.82) 100%);
}
.bento-card.photo .bento-icon,
.bento-card.photo h3,
.bento-card.photo p { position: relative; z-index: 3; }
.bento-card.photo .bento-icon { color: #fff; background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); }
.bento-card.photo h3 { color: #fff; }
.bento-card.photo p { color: var(--text-on-dark-muted); }

.bento-card.tint {
  background: var(--surface);
  border: 1px solid var(--line);
}

.bento-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 22px;
  margin-bottom: 16px;
}

.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
}
.bento-card p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 34ch;
}
.bento-card.photo p { color: rgba(255,255,255,0.78); }

/* ==========================================================================
   Materials — horizontal scroll-snap
   ========================================================================== */

.materials { background: var(--surface); }

.materials-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.materials-head .section-head { margin-bottom: 0; }

.marquee-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 20px;
  cursor: grab;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.marquee-viewport::-webkit-scrollbar { display: none; }
.marquee-viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.swatch-track {
  display: flex;
  gap: 18px;
  width: max-content;
}

.swatch-card {
  flex: 0 0 auto;
  width: 240px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.swatch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.swatch-fabric {
  height: 170px;
  position: relative;
}
.swatch-fabric::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.10) 0px, rgba(255,255,255,0.10) 2px, transparent 2px, transparent 7px),
    repeating-linear-gradient(25deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 1px, transparent 1px, transparent 6px);
}
.swatch-info { padding: 16px 18px 20px; }
.swatch-name { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.swatch-tag { margin-top: 4px; font-size: 0.8rem; color: var(--text-muted); }

.material-badges {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
}
.material-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.material-badge i { color: var(--navy); font-size: 18px; }

/* ==========================================================================
   Process — timeline
   ========================================================================== */

.process { background: var(--bg); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--line-strong);
}
.timeline-step { position: relative; }
.timeline-num {
  width: 54px;
  height: 54px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--navy);
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  transition: background 260ms var(--ease-out), color 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
.timeline-step.is-active .timeline-num {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.timeline-step h3 { font-size: 1.1875rem; font-weight: 500; }
.timeline-step p { margin-top: 8px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; max-width: 30ch; }

/* ==========================================================================
   Gallery — masonry
   ========================================================================== */

.gallery { background: var(--surface); }

.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.masonry-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  aspect-ratio: 4/3;
}
.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.masonry-item:hover img { transform: scale(1.05); }

.masonry-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.masonry-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 24, 38, 0.72) 100%);
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
}
.masonry-item:hover::after,
.masonry-item:hover .masonry-caption { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   About — split
   ========================================================================== */

.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.about-media-badge strong { font-family: var(--font-display); font-size: 1.375rem; color: var(--navy); display: block; }
.about-media-badge span { font-size: 0.75rem; color: var(--text-muted); }

.about-copy h2 {
  font-size: clamp(2rem, 3.6vw, 2.625rem);
}
.about-pull {
  margin: 26px 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: var(--navy);
  line-height: 1.4;
  padding-left: 22px;
  border-left: 2px solid var(--navy);
}
.about-copy p.body { color: var(--text-muted); max-width: 54ch; margin-bottom: 16px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials { background: var(--navy-dark); position: relative; overflow: hidden; }
.testimonials::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 65%);
  pointer-events: none;
}
.testimonials .section-head p { color: var(--text-on-dark-muted); }
.testimonials .eyebrow { color: #cfe0f2; }
.testimonials .eyebrow::before { background: #cfe0f2; }
.testimonials .section-head h2 { color: #fff; }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  backdrop-filter: blur(6px);
}
.quote-card p.quote {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
}
.quote-attrib { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--navy-light), var(--navy-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
}
.quote-attrib div strong { display: block; font-size: 0.875rem; color: #fff; }
.quote-attrib div span { font-size: 0.78rem; color: var(--text-on-dark-muted); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { background: var(--bg); }

.contact-panel {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}

.contact-info {
  background: var(--navy);
  color: #fff;
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.contact-info::after {
  content: '';
  position: absolute;
  right: -20%;
  bottom: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
}
.contact-info h3 { font-size: 1.625rem; color: #fff; position: relative; }
.contact-info > p { margin-top: 14px; color: rgba(255,255,255,0.78); font-size: 0.9375rem; max-width: 34ch; position: relative; }

.contact-list { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.contact-list a, .contact-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: #fff;
}
.contact-list i {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-social { margin-top: 32px; display: flex; gap: 10px; position: relative; }
.contact-social a {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.contact-social a:hover { background: rgba(255,255,255,0.24); transform: translateY(-2px); }

.contact-form { padding: clamp(32px, 4vw, 52px); }
.contact-form-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  height: 100%;
}
.contact-form-cta-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-pill);
  background: rgba(25, 76, 132, 0.10);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 10px;
}
.contact-form-cta h3 { margin-top: 0; }
.contact-form-cta p { margin-top: 8px; color: var(--text-muted); max-width: 34ch; }
.contact-form-cta .btn { margin-top: 24px; max-width: 320px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(25, 76, 132, 0.12);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #B23B3B; background: #FBF3F3; }
.form-error-msg {
  display: none;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #B23B3B;
}
.form-field.has-error .form-error-msg { display: block; }

.form-file {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  cursor: pointer;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.form-file:hover { border-color: var(--navy); }
.form-file input { display: none; }
.form-file-name { margin-top: 6px; font-weight: 600; color: var(--navy); }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 12px;
}
.form-success.is-visible { display: block; }
.contact-form.is-submitted form { display: none; }
.form-success-icon {
  width: 58px; height: 58px;
  border-radius: var(--r-pill);
  background: rgba(25, 76, 132, 0.10);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 18px;
}
.form-success h3 { font-size: 1.375rem; }
.form-success p { margin-top: 10px; color: var(--text-muted); font-size: 0.9375rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--navy-light), transparent);
}
.site-footer::after {
  content: '';
  position: absolute;
  left: -10%;
  top: -30%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(46, 103, 166, 0.16), transparent 70%);
  pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.footer-brand img { height: 34px; }
.footer-signature {
  margin-top: 18px;
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: 1.1875rem;
  color: #fff;
}
.footer-brand > p:not(.footer-signature) { margin-top: 10px; font-size: 0.875rem; max-width: 32ch; line-height: 1.6; }
.footer-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}
.footer-social { margin-top: 22px; display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.footer-social a:hover { background: var(--navy-light); transform: translateY(-2px); }
.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.44);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.9rem; transition: color 200ms var(--ease-out); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px 20px; }

/* ==========================================================================
   Accent word — Bodoni Moda italic, used sparingly for brand emphasis
   ========================================================================== */

.accent {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  padding-bottom: 0.05em;
}

/* ==========================================================================
   Detail split — full-bleed image + navy copy panel
   ========================================================================== */

.detail-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.detail-media { position: relative; overflow: hidden; min-height: 340px; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.detail-copy {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 96px);
}
.detail-copy-inner { max-width: 46ch; }
.detail-copy h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.375rem); }
.detail-copy p { margin-top: 22px; color: var(--text-on-dark-muted); font-size: 1.0625rem; line-height: 1.7; }

/* ==========================================================================
   Feature list — vertical list with top hairline (mattress densities, etc.)
   ========================================================================== */

.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-list-item {
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}
.feature-list-item h4 { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.feature-list-item p { margin-top: 6px; font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

.split-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.simple-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.simple-grid-3 h4 { font-size: 1rem; font-weight: 600; color: var(--ink); }
.simple-grid-3 p { margin-top: 6px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.pillow-sheets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 48px);
  margin-top: 56px;
}
.pillow-sheets-grid .split-media { aspect-ratio: 4/3; margin-bottom: 16px; }
.pillow-sheets-grid h4 { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.pillow-sheets-grid p { margin-top: 8px; font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; }

/* Density row — 4 foam photos spanning the full width (base firmness x with/without viscoelastic) */
.density-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.density-card .split-media { aspect-ratio: 4/3; margin-bottom: 14px; }
.density-card h4 { font-size: 0.9375rem; font-weight: 600; color: var(--ink); line-height: 1.35; }

.callout-box {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: stretch;
}
.callout-media {
  min-height: 240px;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--line);
}
.callout-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.callout-content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(25, 76, 132, 0.05);
}
.callout-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.callout-box p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; max-width: 48ch; }

/* ==========================================================================
   Spec row — inline label/value pairs (moqueta specs)
   ========================================================================== */

.spec-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 28px 0;
  margin-bottom: 48px;
}
.spec-item span { display: block; }
.spec-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.spec-value { font-size: 0.9375rem; color: var(--ink); line-height: 1.5; }

.photo-grid-caption {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.photo-cap-item {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.photo-cap-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-cap-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 24, 38, 0.8) 100%);
}

/* ==========================================================================
   Gallery filter row + uniform grid
   ========================================================================== */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.masonry-item.is-hidden { display: none; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}
.faq-item { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.faq-item h3 { font-size: 1.0625rem; font-weight: 600; }
.faq-item p { margin-top: 8px; font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* ==========================================================================
   Checkbox field (contact form consent)
   ========================================================================== */

.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.form-check input { margin-top: 3px; accent-color: var(--navy); width: 16px; height: 16px; flex-shrink: 0; }
.form-check label { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.55; }
.form-check label a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.form-check.has-error label { color: #B23B3B; }

/* ==========================================================================
   Legal pages (aviso legal, privacidad, cookies, accesibilidad)
   ========================================================================== */

.legal-hero { padding: clamp(140px, 18vw, 180px) 0 0; }
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.legal-updated { margin-top: 16px; font-size: 0.875rem; color: var(--text-muted); }

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding-top: clamp(40px, 6vw, 64px);
}
.legal-content h2 {
  font-size: 1.375rem;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.0625rem;
  margin-top: 26px;
  margin-bottom: 8px;
}
.legal-content p { margin-bottom: 14px; color: var(--text-muted); }
.legal-content p strong, .legal-content li strong { color: var(--ink); }
.legal-content ul, .legal-content ol { margin: 0 0 14px; padding-left: 22px; color: var(--text-muted); }
.legal-content li { margin-bottom: 6px; }
.legal-content li::marker { color: var(--navy); }
.legal-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Quote modal — "Pedir presupuesto" popup (WhatsApp / Email)
   ========================================================================== */

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-out);
}
.quote-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 40, 66, 0.55);
}

.quote-modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 320ms var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.quote-modal.is-open .quote-modal-panel { transform: translateY(0) scale(1); }

.quote-modal-scroll {
  overflow-y: auto;
  padding: 48px clamp(24px, 4vw, 44px) 36px;
}

.quote-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 200ms var(--ease-out);
}
.quote-modal-close:hover { background: var(--line-strong); }

.quote-step h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 6px; }
.quote-step-sub { margin-top: 10px; color: var(--text-muted); font-size: 0.9375rem; }

.quote-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
  transition: color 200ms var(--ease-out);
}
.quote-back:hover { color: var(--navy); }

.quote-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.quote-channel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 28px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.quote-channel-btn:hover { border-color: var(--navy); background: #fff; transform: translateY(-2px); }
.quote-channel-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  background: rgba(25, 76, 132, 0.10);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 6px;
}
.quote-channel-label { font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.quote-channel-btn small { color: var(--text-muted); font-size: 0.8rem; }

.quote-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 26px;
}
.quote-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 0.8438rem;
  font-weight: 600;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.quote-chip:hover { border-color: var(--navy); }
.quote-chip .ph-check { display: none; font-size: 15px; }
.quote-chip.is-selected { background: var(--navy); color: #fff; border-color: var(--navy); }
.quote-chip.is-selected .ph-check { display: inline; }

.quote-email-error {
  color: #B23B3B;
  font-size: 0.85rem;
  margin: -8px 0 18px;
}
.quote-email-error a { text-decoration: underline; }

@media (max-width: 640px) {
  .quote-modal { padding: 0; }
  .quote-modal-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    transform: translateY(100%);
    transition: transform 380ms var(--ease-in-out);
  }
  .quote-modal.is-open .quote-modal-panel { transform: translateY(0); }
  .quote-modal-scroll { padding: 56px 20px 40px; }
  .quote-channels { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Responsive — kept at the end of the file on purpose so these
   overrides always win the cascade over base component rules above,
   regardless of which section was added last during development.
   ========================================================================== */

@media (max-width: 1180px) and (min-width: 861px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.8125rem; }
  .nav-right .btn { padding: 13px 22px; font-size: 0.85rem; }
}

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.photo { grid-column: span 2; grid-row: span 1; }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .contact-panel { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .detail-split { grid-template-columns: 1fr; }
  .detail-media { aspect-ratio: 16/10; }
  .pillow-sheets-grid { grid-template-columns: 1fr; }
  .simple-grid-3 { grid-template-columns: 1fr 1fr; }
  .spec-row { grid-template-columns: repeat(3, 1fr); }
  .photo-grid-caption { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .density-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo { height: 30px; }

  .intro-band .container { grid-template-columns: 1fr; }

  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .timeline::before { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 16/10; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-content { padding-top: 110px; }
  .hero-actions { gap: 14px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-media img { object-position: 40% 15%; }

  .stat-row { padding: 4px 20px; }

  .timeline-step { text-align: center; }
  .timeline-num { margin: 0 auto 22px; }
  .timeline-step p { margin-left: auto; margin-right: auto; }

  .callout-tag { font-size: 12px; }
  .callout-box p { font-size: 1rem; }

  .material-badges { flex-direction: column; align-items: flex-start; gap: 14px; }

  .bento { grid-template-columns: 1fr; }
  .bento-card.photo, .bento-card.span-2 { grid-column: span 1; }
  .bento-card.row-2 { grid-row: span 1; }

  .masonry { grid-template-columns: 1fr; }

  .simple-grid-3 { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr 1fr; }
  .photo-grid-caption { grid-template-columns: 1fr; }
  .detail-copy { padding: 40px 22px; }

  .density-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .callout-box { grid-template-columns: 1fr; }
  .callout-media { min-height: 200px; border-right: none; border-bottom: 1px solid var(--line); }

  .contact-info, .contact-form { padding: 28px 22px; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }

  .marquee-viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
