/* =========================================================================
   SOMBRAS OSIRIS · Estilos de la web corporativa
   Depende de osiris-home.css (tokens + temas)
   ========================================================================= */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background var(--t-mid), color var(--t-mid);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

/* ========== ATMÓSFERA: luz dorada + lamas de sombra ========== */
.atm { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.atm::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 1100px 700px at 88% -10%, var(--accent-soft), transparent 65%),
    radial-gradient(ellipse 1200px 800px at -10% 40%, rgba(212,160,23,.05), transparent 60%),
    radial-gradient(ellipse 700px 400px at 50% 108%, rgba(212,160,23,.04), transparent 70%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 60%, var(--bg-deep));
}
.atm::after {
  content: ''; position: absolute;
  top: -10%; left: 52%; width: 150%; height: 130%;
  transform: rotate(8deg);
  background-image: repeating-linear-gradient(90deg,
    transparent 0px, transparent 48px,
    rgba(0,0,0,.45) 48px, rgba(0,0,0,.45) 72px);
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 0% 50%, black, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 70% at 0% 50%, black, transparent 70%);
  opacity: .40;
  animation: lamas-drift 14s ease-in-out infinite;
}
[data-theme="light"] .atm::after {
  background-image: repeating-linear-gradient(90deg,
    transparent 0px, transparent 56px,
    rgba(40,28,12,.09) 56px, rgba(40,28,12,.09) 84px);
  opacity: .55;
}
@keyframes lamas-drift {
  0%   { transform: rotate(8deg) translateX(0); }
  50%  { transform: rotate(6deg) translateX(-120px); }
  100% { transform: rotate(8deg) translateX(0); }
}
@media (prefers-reduced-motion: reduce) { .atm::after { animation: none; } }

/* ========== LAYOUT ========== */
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
main { position: relative; z-index: 1; }

.section { padding: clamp(72px, 9vw, 132px) 0; position: relative; }
.section.alt { background: var(--bg-deep); }

.section-head { max-width: 620px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--accent-line);
}
.section-head.center .eyebrow { justify-content: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 600; line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 18px; color: var(--text); text-wrap: balance;
}
.section-title .em { color: var(--accent); font-style: italic; }
.section-sub {
  font-size: 17px; line-height: 1.65; color: var(--text-dim);
  font-weight: 300; margin: 0; text-wrap: pretty;
}

/* ========== HEADER / NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 6px clamp(16px, 4vw, 40px);
  transition: background var(--t-mid), border-color var(--t-mid), backdrop-filter var(--t-mid);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand .brand-mark { width: 34px; height: 23px; flex-shrink: 0; filter: drop-shadow(0 4px 14px var(--accent-glow)); }
.nav-brand .brand-mark svg { width: 100%; height: 100%; }
.nav-brand .brand-mark .sun { fill: var(--accent); }
.nav-brand .brand-word {
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text);
  line-height: 1;
}
.nav-brand .brand-word small {
  display: none; font-size: 9.5px; letter-spacing: .26em;
  color: var(--muted); margin-top: 3px; font-weight: 500;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--text-dim);
  padding: 9px 14px; border-radius: var(--radius);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--accent); background: var(--accent-soft); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* botón hamburguesa */
.nav-burger {
  display: none; width: 30px; height: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-burger svg { width: 18px; height: 18px; }

/* ========== TOGGLE DÍA/NOCHE ========== */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-dim); cursor: pointer; transition: all var(--t-fast); flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.theme-toggle svg { width: 17px; height: 17px; transition: transform var(--t-mid); }
.theme-toggle:hover svg { transform: rotate(20deg); }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }

/* ========== BOTONES ========== */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 14px 26px; border-radius: var(--radius-lg);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; position: relative; z-index: 1; }
.btn > span { position: relative; z-index: 1; }

.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 10px 30px var(--accent-glow); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%);
  transform: translateX(-130%); transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-2); box-shadow: 0 16px 42px var(--accent-glow); }
.btn-primary:hover::before { transform: translateX(130%); }

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--surface2); transform: translateY(-1px); }

.btn-wa { background: var(--surface); color: var(--green); border-color: var(--line2); }
.btn-wa:hover { border-color: var(--green); background: var(--surface2); transform: translateY(-1px); }

.btn-sm { padding: 7px 16px; font-size: 14px; }

/* ========== HERO (full-bleed) ========== */
.hero { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,6,4,.50) 0%, rgba(8,6,4,.40) 35%, rgba(8,6,4,.82) 100%); }
.hero-inner { position: relative; z-index: 2; }
.hero-copy { text-align: center; max-width: 880px; margin-inline: auto; }
.hero-copy > * { opacity: 0; transform: translateY(16px); animation: rise .8s cubic-bezier(.16,1,.3,1) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .14s; }
.hero-copy > *:nth-child(3) { animation-delay: .23s; }
.hero-copy > *:nth-child(4) { animation-delay: .32s; }
.hero-copy > *:nth-child(5) { animation-delay: .41s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero .eyebrow { color: var(--accent-2); justify-content: center; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.8vw, 70px); font-weight: 600;
  line-height: 1.04; letter-spacing: -.025em; margin: 0 0 22px; color: #fff; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero-title .em { color: var(--accent-2); font-style: italic; }
.hero-sub { font-size: 18.5px; line-height: 1.62; color: rgba(255,255,255,.86); font-weight: 300; max-width: 560px; margin: 0 auto 36px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; justify-content: center; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; justify-content: center; }
.hero-stats .stat strong {
  display: block; font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--accent-2); line-height: 1;
}
.hero-stats .stat span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 7px; display: block; }

/* Nav legible sobre la imagen del hero cuando aún no hay scroll */
.nav:not(.scrolled) .nav-links a,
.nav:not(.scrolled) .brand-word { color: #fff; }
.nav:not(.scrolled) .brand-word small { color: rgba(255,255,255,.7); }
/* Los rayos del sol (stroke=currentColor) heredan blanco sobre el nav oscuro,
   igual que el texto de la marca; con sus opacidades dan tonos de blanco de
   claro a oscuro. Al scrollear vuelven a heredar var(--text) (negro en día). */
.nav:not(.scrolled) .nav-brand .brand-mark { color: #fff; }
.nav:not(.scrolled) .nav-links a:hover { color: var(--accent-2); background: rgba(255,255,255,.1); }
.nav:not(.scrolled) .theme-toggle,
.nav:not(.scrolled) .nav-burger { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }

/* ========== PLACEHOLDER de imagen ========== */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--surface2) 0, var(--surface2) 11px, var(--surface) 11px, var(--surface) 22px);
  border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--muted); background: var(--bg); padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--line); max-width: 80%; text-align: center; z-index: 1;
}
/* Cuando hay una foto real, cubre el placeholder; si falla la carga, el img se elimina y vuelve a verse la etiqueta */
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.prod-card .ph > img, .hero-visual .ph > img { transition: transform var(--t-mid); }
.prod-card:hover .ph > img { transform: scale(1.05); }

/* ========== BARRA DE MARCAS ========== */
.brands { padding: 46px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-deep); position: relative; z-index: 1; }
.brands .label { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin: 0 0 26px; }
.brands-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.brand-logo {
  height: 66px; min-width: 138px; padding: 12px 24px; background: #fbf7ee;
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(1); opacity: .8; transition: filter var(--t-mid), opacity var(--t-mid), transform var(--t-fast);
}
.brand-logo:hover { filter: grayscale(0); opacity: 1; transform: translateY(-2px); }
.brand-logo img { max-height: 38px; max-width: 118px; object-fit: contain; }
.brand-logo .fallback { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #2a2015; letter-spacing: .02em; }
.brand-logo img + .fallback { display: none; }

/* ========== BLOQUE EMOCIONAL ========== */
.emotional { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; border: 1px solid var(--line); }
.emotional .ph { position: absolute; inset: 0; border-radius: 0; border: none; }
.emotional .overlay { position: relative; z-index: 3; width: 100%; padding: clamp(28px, 5vw, 56px); background: linear-gradient(to top, rgba(8,6,4,.86) 0%, rgba(8,6,4,.45) 55%, transparent 100%); }
.emotional .overlay .eyebrow { color: var(--accent-2); }
.emotional .overlay h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin: 0; color: #fff; max-width: 640px; text-wrap: balance; }
.emotional .overlay h2 .em { color: var(--accent-2); font-style: italic; }

/* ========== MAPA ========== */
.map-embed { margin-top: 22px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line2); }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }
.contact-hours { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-dim); }
.contact-hours svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.contact-social { display: flex; gap: 12px; margin-top: 18px; }
.contact-social a {
  width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line2); color: var(--text-dim);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.contact-social a:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-2px); }
.contact-social a svg { width: 20px; height: 20px; }

/* ========== PRODUCTOS ========== */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.prod-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
}
.prod-card:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.prod-card .ph { aspect-ratio: 16 / 10; border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.prod-card .body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.prod-card .kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.prod-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 0 0 10px; color: var(--text); }
.prod-card p { font-size: 15px; line-height: 1.6; color: var(--text-dim); margin: 0 0 18px; font-weight: 300; flex: 1; }
.prod-card .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.prod-card .tags span {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  background: var(--surface2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 100px;
}

/* ========== POR QUÉ OSIRIS (features) ========== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: border-color var(--t-mid), transform var(--t-mid);
}
.feat:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.feat .ic {
  width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); margin-bottom: 20px;
}
.feat .ic svg { width: 24px; height: 24px; }
.feat h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 9px; color: var(--text); }
.feat p { font-size: 14.5px; line-height: 1.6; color: var(--text-dim); margin: 0; font-weight: 300; }

/* ========== PROCESO ========== */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.proc-step { position: relative; padding-top: 18px; }
.proc-step .num {
  font-family: var(--font-display); font-size: 46px; font-weight: 300; color: var(--accent);
  line-height: 1; opacity: .85; margin-bottom: 16px;
}
.proc-step h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--text); }
.proc-step p { font-size: 14px; line-height: 1.6; color: var(--text-dim); margin: 0; font-weight: 300; }
.proc-step::before { content: ''; position: absolute; top: 0; left: 0; width: 36px; height: 2px; background: var(--accent-line); }

/* ========== GALERÍA ========== */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.gal-grid .ph { border-radius: var(--radius-lg); }
.gal-grid .ph.tall { grid-row: span 2; }
.gal-grid .ph.wide { grid-column: span 2; }

/* ========== OPINIONES ========== */
.reviews-badge {
  display: flex; align-items: center; gap: 18px; justify-content: center;
  background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius-lg);
  padding: 18px 26px; width: fit-content; margin: 0 auto clamp(32px, 4vw, 48px);
}
.reviews-badge .g-logo { width: 34px; height: 34px; flex-shrink: 0; }
.reviews-badge-meta { display: flex; flex-direction: column; gap: 3px; }
.reviews-badge-meta strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--text); line-height: 1; }
.reviews-badge-meta .stars { color: var(--accent); }
.reviews-badge-meta .stars svg { width: 14px; height: 14px; }
.reviews-badge-meta span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }

.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.test {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 18px;
}
.test .stars { display: flex; gap: 3px; color: var(--accent); }
.test .stars svg { width: 17px; height: 17px; }
.test blockquote { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 1.5; color: var(--text); font-weight: 400; font-style: italic; }
.test .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.test .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--surface3); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; color: var(--accent); flex-shrink: 0; }
.test .who b { font-size: 14.5px; color: var(--text); display: block; }
.test .who span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ========== CONTACTO ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 18px; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.contact-item:hover { border-color: var(--accent-line); background: var(--surface2); transform: translateX(3px); }
.contact-item .ic { width: 42px; height: 42px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item.wa .ic { color: var(--green); border-color: color-mix(in oklab, var(--green) 40%, transparent); background: color-mix(in oklab, var(--green) 9%, transparent); }
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item .meta span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.contact-item .meta b { font-size: 16px; color: var(--text); font-weight: 600; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(26px, 4vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--radius);
  padding: 13px 15px; color: var(--text); font-family: var(--font-body); font-size: 15px; outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--hint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align: center; margin: 16px 0 0; }
.form-ok { display: none; text-align: center; padding: 20px 0; color: var(--green); font-size: 15px; }
.form-ok.show { display: block; }

/* ========== APLICACIONES ========== */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.app {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 18px; transition: border-color var(--t-mid), transform var(--t-mid);
}
.app:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.app-ic { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.app-ic svg { width: 32px; height: 32px; }
.app h4 { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }

/* ========== SOMFY EXPERT ========== */
.somfy-band { background: var(--bg); }
.somfy-card {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius-xl);
  padding: clamp(30px, 4vw, 52px); box-shadow: var(--shadow-md);
}
.somfy-copy .section-title { margin-bottom: 14px; }
.somfy-copy .section-sub { margin-bottom: 22px; }
.somfy-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.somfy-points li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); }
.somfy-points li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.somfy-logo {
  position: relative; background: #fbf7ee; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 28px; display: flex; align-items: center; justify-content: center; min-height: 150px;
}
.somfy-logo img { max-width: 200px; max-height: 80px; object-fit: contain; }
.somfy-logo span { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: #1a1208; letter-spacing: .02em; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.somfy-logo span small { font-size: 13px; letter-spacing: .3em; color: var(--accent); margin-top: 6px; }
.somfy-tag {
  position: absolute; top: -12px; right: 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent); padding: 6px 14px; border-radius: 100px; box-shadow: 0 6px 18px var(--accent-glow);
}

/* ========== VÍDEO INSTALACIÓN (banda inmersiva full-bleed) ========== */
.video-hero {
  position: relative; z-index: 1;
  width: 100%;
  min-height: clamp(520px, 88vh, 900px);
  display: flex; align-items: flex-end;
  overflow: hidden; background: #000;
}
.video-cover { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
/* Truco cover para iframe 16:9: siempre llena la banda sin franjas negras */
.video-cover iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw;          /* 16:9 a partir del ancho */
  min-height: 100%; min-width: 177.78vh;  /* 16:9 a partir del alto  */
  pointer-events: none;
}
.video-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,6,4,.55) 0%, rgba(8,6,4,.12) 32%, rgba(8,6,4,.30) 60%, rgba(8,6,4,.92) 100%);
}
.video-hero-content {
  position: relative; z-index: 2; padding-top: 90px; padding-bottom: clamp(48px, 7vw, 90px);
}
.video-hero-content .eyebrow { color: var(--accent-2); }
.video-hero-title {
  font-family: var(--font-display); font-size: clamp(34px, 5.2vw, 64px); font-weight: 600;
  line-height: 1.05; letter-spacing: -.025em; margin: 0 0 18px; color: #fff; max-width: 760px;
  text-shadow: 0 2px 30px rgba(0,0,0,.45); text-wrap: balance;
}
.video-hero-title .em { color: var(--accent-2); font-style: italic; }
.video-hero-sub { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.88); font-weight: 300; max-width: 520px; margin: 0 0 30px; text-wrap: pretty; }
@media (max-width: 620px) {
  .video-hero { min-height: 76vh; }
  .video-hero-sub { font-size: 16px; }
}

/* ========== VÍDEO (estilos antiguos, ya no usados) ========== */
.video-section { background: var(--bg-deep); }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--line2); box-shadow: var(--shadow-lg); background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ========== FOOTER ========== */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); gap: 36px 28px; margin-bottom: 48px; align-items: start; }
.footer-brand { grid-column: span 1; }
.footer-brand .brand-mark { width: 52px; height: 35px; margin-bottom: 16px; }
.footer-brand .brand-mark svg { width: 100%; height: 100%; }
.footer-brand .brand-mark .sun { fill: var(--accent); }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--text-dim); max-width: 300px; font-weight: 300; margin: 0 0 18px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { font-size: 14px; color: var(--text-dim); text-decoration: none; transition: color var(--t-fast); }
.footer-contact a:hover { color: var(--accent); }
.footer-contact span { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line2); color: var(--text-dim);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-2px); }
.footer-social a svg { width: 18px; height: 18px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: var(--text-dim); text-decoration: none; margin-bottom: 9px; transition: color var(--t-fast); font-weight: 300; overflow-wrap: break-word; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-bottom p { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--hint); margin: 0; text-transform: uppercase; }
.footer-legal { display: flex; align-items: center; gap: 12px; }
.footer-legal a { color: var(--text-dim); text-decoration: none; transition: color var(--t-fast); }
.footer-legal a:hover { color: var(--accent); }
.footer-legal span { color: var(--line2); }

/* ========== REVEAL on scroll ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-copy > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ========== MOBILE NAV PANEL ========== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: color-mix(in oklab, var(--bg-deep) 96%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: none; flex-direction: column; padding: 90px 28px 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-display); font-size: 28px; color: var(--text); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:active { color: var(--accent); }
.mobile-menu .close { position: absolute; top: 18px; right: 24px; width: 44px; height: 44px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mobile-menu .close svg { width: 22px; height: 22px; }
.mobile-menu .m-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .feat-grid, .test-grid { grid-template-columns: 1fr 1fr; }
  .proc-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .prod-grid, .feat-grid, .test-grid, .contact-grid { grid-template-columns: 1fr; }
  .somfy-card { grid-template-columns: 1fr; }
  .somfy-tag { right: 14px; top: -10px; }
  /* Header negro sólido en móvil (sin marrón ni transparencia), reposo y scroll */
  .nav, .nav.scrolled { background: #000; border-bottom-color: rgba(255,255,255,.10); }
  .nav .brand-word { color: #fff; }
  .nav .brand-word small { color: rgba(255,255,255,.7); }
  .nav .nav-brand .brand-mark { color: #fff; }
  .nav .theme-toggle, .nav .nav-burger { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
  .gal-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gal-grid .ph.wide { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .wrap { width: calc(100% - 36px); }
}

/* ============ PREVISUALIZA TU ESPACIO (IA) ============ */
.preview-tool { max-width: 760px; margin: 38px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(20px, 3vw, 34px); }
.preview-drop { border: 2px dashed var(--line2, var(--line)); border-radius: var(--radius-lg); padding: 28px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; margin-bottom: 22px; }
.preview-drop:hover { border-color: var(--accent-line, var(--accent)); background: var(--accent-soft); }
.preview-drop svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 10px; }
.preview-drop p { margin: 0; color: var(--text); font-size: 15px; }
.preview-drop span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.preview-drop #pvThumb { max-width: 100%; max-height: 280px; border-radius: var(--radius); margin: 0 auto; }
.preview-fields .field-row { margin-bottom: 14px; }
.preview-fields .btn { width: 100%; justify-content: center; margin-top: 6px; }
.preview-error { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius); background: rgba(216,90,48,.12); color: #e07a52; font-size: 14px; text-align: center; }
.preview-loading { text-align: center; padding: 44px 20px; }
.preview-loading p { color: var(--text); margin: 16px 0 0; }
.preview-loading span { color: var(--muted); font-size: 13px; }
.pv-spinner { width: 42px; height: 42px; border: 3px solid var(--line2, var(--line)); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto; animation: pv-spin .9s linear infinite; }
@keyframes pv-spin { to { transform: rotate(360deg); } }
.preview-result-img img { width: 100%; border-radius: var(--radius-lg); display: block; }
.preview-disclaimer { color: var(--muted); font-size: 12.5px; text-align: center; margin: 12px 0 18px; }
.preview-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Bloque IA destacado dentro de Contacto ---- */
.preview-block { margin-top: clamp(34px, 4vw, 48px); }
.preview-block-head { max-width: 640px; margin: 0 auto 26px; text-align: center; }
.preview-block-head .eyebrow { justify-content: center; }
.preview-block-title { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 34px); font-weight: 300; line-height: 1.1; color: var(--text); margin: 6px 0 14px; }
.preview-block-title .em { color: var(--accent); font-style: italic; }
.preview-block .preview-tool { margin-top: 0; }

/* ---- Separador contacto ---- */
.contact-sep { height: 1px; background: var(--line); margin: clamp(40px, 5vw, 60px) 0; }

/* ---- Mapa en franja full-width ---- */
.map-strip { margin-top: clamp(36px, 5vw, 56px); border: 1px solid var(--line2); border-radius: var(--radius-lg); overflow: hidden; }
.map-strip iframe { width: 100%; height: 300px; border: 0; display: block; filter: grayscale(.15) contrast(1.04); }
@media (max-width: 760px) { .map-strip iframe { height: 240px; } }

/* ---- Datos de contacto centrados (sin formulario) ---- */
.contact-info { max-width: 720px; margin-inline: auto; }
.contact-info .contact-hours, .contact-info .contact-social { justify-content: center; }

/* ---- Confirmaciones del formulario unificado ---- */
.preview-confirm { color: var(--green); font-size: 14.5px; text-align: center; margin: 0 0 16px; font-weight: 600; }
.preview-thanks { text-align: center; padding: 36px 20px; }
.preview-thanks .pv-check {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); border: 1px solid color-mix(in oklab, var(--green) 40%, transparent);
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700;
}
.preview-thanks p { color: var(--text); margin: 0; font-size: 16px; }
.preview-thanks span { color: var(--muted); font-size: 14px; }
.preview-drop #pvDropHint em { color: var(--muted); font-style: normal; }
