/* =========================================================
   ACORT — Cortinas & Persianas de Madera
   Estilos de producción · MIVM Soluciones Digitales
   ========================================================= */

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

:root {
  /* ─── Acort Logo Colors ─── */
  --orange:        #F07820;
  --orange-dark:   #C45A00;
  --orange-deep:   #8C3A00;
  --green:         #8DC63F;
  --green-dark:    #4E7818;
  --green-deep:    #4A7010;

  /* ─── Surfaces ─── */
  --cream:         #F8F6F2;
  --warm-white:    #EFEDE8;
  --nav-dark:      #2D2D2D;
  --bg-dark:       #222222;
  --bg-darker:     #161616;

  /* ─── Aliases ─── */
  --wood-dark:     #222222;
  --wood-mid:      #2D2D2D;
  --wood-light:    #F07820;
  --wood-pale:     #E8E4DC;
  --accent:        #F07820;

  /* ─── Tipografía (contraste WCAG AA) ─── */
  --text-dark:     #1A1A1A;
  --text-mid:      #4A4040;
  --text-light:    #706860;

  --grain-opacity: 0.022;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
  width: 100%;
}

/* Bloquea el scroll del fondo cuando el menú móvil está abierto */
body.menu-open { overflow: hidden; }

/* Las secciones ancladas no quedan tapadas por el nav fijo al navegar */
#productos, #proceso, #cotizar, #proyectos { scroll-margin-top: 80px; }

img { max-width: 100%; }

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 9000;
}

/* ===================== NAV ===================== */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 24px 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: background 0.4s ease, padding 0.3s ease;
}
nav.scrolled {
  background: rgba(250,250,248,0.97);
  backdrop-filter: blur(12px);
  padding: 16px 60px;
  border-bottom: 1px solid var(--wood-pale);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img {
  height: 48px; width: auto; object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.08));
  transition: opacity 0.2s;
}
.nav-logo img:hover { opacity: 0.85; }
.nav-logo-fallback {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 600;
  color: var(--wood-dark);
  letter-spacing: 0.08em; display: none;
}
.nav-logo-fallback span { color: var(--accent); }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a {
  font-family: 'Jost', sans-serif; font-weight: 400; font-size: 13px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--green) !important; color: #1A1A1A !important;
  padding: 10px 22px; font-size: 12px !important;
  letter-spacing: 0.2em !important; border: none;
  font-weight: 600 !important; transition: background 0.2s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--green-dark) !important; color: #fff !important; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative; z-index: 120;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--wood-dark);
  margin: 5px auto; transition: transform 0.3s ease, opacity 0.2s ease;
}
nav.scrolled .nav-toggle span { background: var(--wood-dark); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Scrim oscuro detrás del menú móvil */
.nav-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20,18,16,0.45); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-scrim.open { opacity: 1; visibility: visible; }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero-left {
  background: var(--cream); display: flex; flex-direction: column;
  justify-content: center; padding: 120px 60px 60px 60px;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 28px; display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 5vw, 80px); font-weight: 300;
  line-height: 1.1; color: var(--wood-dark); margin-bottom: 32px;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-desc {
  font-size: 15px; line-height: 1.8; color: var(--text-mid);
  max-width: 380px; margin-bottom: 48px; font-weight: 300;
}
.hero-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--wood-dark); color: var(--cream);
  padding: 16px 36px; font-family: 'Jost', sans-serif; font-size: 12px;
  font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.25s, transform 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-outline {
  color: var(--text-mid); font-family: 'Jost', sans-serif; font-size: 12px;
  font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--wood-pale);
  padding-bottom: 3px; transition: color 0.2s, border-color 0.2s;
}
.btn-outline:hover { color: var(--accent); border-color: var(--accent); }
.hero-badge {
  position: absolute; bottom: 60px; left: 60px;
  display: flex; align-items: center; gap: 14px;
}
.hero-badge-circle {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--orange); background: rgba(240,120,32,0.06);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.hero-badge-circle strong {
  font-family: 'Cormorant Garamond', serif; font-size: 26px;
  font-weight: 600; color: var(--orange); line-height: 1;
}
.hero-badge-circle small {
  font-size: 9px; letter-spacing: 0.1em; color: var(--text-light); text-transform: uppercase;
}
.hero-badge-text { font-size: 12px; color: var(--text-mid); line-height: 1.5; font-weight: 300; }

.hero-right { position: relative; overflow: hidden; }
.hero-img {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #7A5030 0%, #4A2E14 50%, #2D1A08 100%);
  overflow: hidden;
}
.hero-img::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(172deg, transparent 0 10px, rgba(240,120,32,0.06) 10px 11px),
    repeating-linear-gradient(168deg, transparent 0 28px, rgba(0,0,0,0.08) 28px 29px);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 20%),
              linear-gradient(to top, rgba(45,26,8,0.55) 0%, transparent 45%);
}
.hero-products-float {
  position: absolute; bottom: 40px; right: 40px;
  display: flex; flex-direction: column; gap: 12px; z-index: 3;
}
.hero-prod-chip {
  background: rgba(30,30,30,0.75); backdrop-filter: blur(8px);
  border: 1px solid rgba(232,120,32,0.3); padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
}
.hero-prod-swatch { width: 28px; height: 28px; border-radius: 2px; }
.hero-prod-chip span {
  font-size: 12px; color: rgba(250,250,248,0.92); letter-spacing: 0.08em; font-weight: 300;
}
.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 5; animation: bounceUp 2s ease infinite;
}
.hero-scroll-hint span {
  font-size: 10px; letter-spacing: 0.2em; color: var(--text-light); text-transform: uppercase;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--wood-light), transparent); }
@keyframes bounceUp { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }

/* ===================== STATS ===================== */
.stats-strip { background: var(--wood-dark); padding: 36px 60px; display: flex; gap: 0; }
.stat-item { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); padding: 0 20px; }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif; font-size: 44px; font-weight: 300;
  color: var(--wood-light); line-height: 1; display: block;
}
.stat-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(250,250,248,0.45); display: block; margin-top: 6px; font-weight: 300;
}

/* ===================== SECTIONS ===================== */
.section { padding: 120px 60px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 72px; }
.section-label {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.section-title {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 300; color: var(--wood-dark); line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--accent); }
.see-all {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none; border-bottom: 1px solid var(--wood-pale);
  padding-bottom: 4px; white-space: nowrap; align-self: flex-end; margin-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.see-all:hover { color: var(--accent); border-color: var(--accent); }

/* ===================== PRODUCTS ===================== */
.products-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.product-card { position: relative; overflow: hidden; }
.product-card:first-child { grid-row: span 2; }
.product-img { width: 100%; aspect-ratio: 1; display: block; position: relative; }
.product-card:first-child .product-img { aspect-ratio: 3/4; }
.product-img-inner { width: 100%; height: 100%; position: relative; overflow: hidden; }
.product-img-bg { width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.product-card:hover .product-img-bg { transform: scale(1.04); }
.product-img-bg img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.product-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,14,14,0.82) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.4s ease; display: flex; align-items: flex-end; padding: 28px;
}
.product-card:hover .product-overlay { opacity: 1; }
.product-cta {
  color: var(--cream); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 3px;
}
.product-info { padding: 20px 0 0; }
.product-category { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.product-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--wood-dark); }
.product-desc { font-size: 13px; color: var(--text-light); margin-top: 6px; font-weight: 300; line-height: 1.6; }

.prod-bg-1 { background: linear-gradient(145deg, #8B5E35 0%, #5C3A18 60%, #3A2210 100%); }
.prod-bg-2 { background: linear-gradient(145deg, #7A8A6A 0%, #4E6040 100%); }
.prod-bg-3 { background: linear-gradient(145deg, #2D2D2D 0%, #1A1A1A 100%); }
.prod-bg-4 { background: linear-gradient(145deg, #A07848 0%, #6A4C28 100%); }
.prod-bg-5 { background: linear-gradient(145deg, #4E6040 0%, #2A3820 100%); }
.prod-bg-1::after, .prod-bg-2::after, .prod-bg-3::after, .prod-bg-4::after, .prod-bg-5::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(168deg, transparent 0 6px, rgba(255,255,255,0.025) 6px 7px);
}
.prod-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%);
  opacity: 0.18; font-size: 80px; pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

/* ===================== PROCESS ===================== */
.process-section { padding: 120px 60px; background: var(--cream); position: relative; overflow: hidden; }
.process-section::before {
  content: 'ACORT'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif; font-size: 200px; font-weight: 600;
  color: var(--green); opacity: 0.06; pointer-events: none; line-height: 1; letter-spacing: -0.05em;
}
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 72px; position: relative; z-index: 2; }
.process-step { position: relative; }
.process-number {
  font-family: 'Cormorant Garamond', serif; font-size: 80px; font-weight: 300;
  color: var(--orange); opacity: 0.35; line-height: 1; margin-bottom: 20px;
}
.process-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; color: var(--wood-dark); margin-bottom: 12px; }
.process-desc { font-size: 13px; color: var(--text-mid); line-height: 1.7; font-weight: 300; }

/* ===================== COTIZADOR ===================== */
.cotizador-section {
  padding: 120px 60px; background: var(--wood-dark); display: grid;
  grid-template-columns: 1fr 1fr; gap: 100px; align-items: center;
  position: relative; overflow: hidden;
}
.cotizador-section::before {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 500px; height: 500px; border-radius: 50%; border: 1px solid rgba(232,120,32,0.12);
}
.cotizador-section::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 400px; height: 400px; border-radius: 50%; border: 1px solid rgba(232,120,32,0.08);
}
.cotizador-text .section-label { color: var(--wood-light); }
.cotizador-text .section-label::before { background: var(--wood-light); }
.cotizador-text .section-title { color: var(--cream); }
.cotizador-text .section-title em { color: var(--wood-light); }
.cotizador-text p {
  font-size: 15px; color: rgba(250,250,248,0.6); line-height: 1.8;
  margin-top: 24px; font-weight: 300; max-width: 400px;
}
.cotizador-form { position: relative; z-index: 2; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--wood-light); margin-bottom: 8px; font-weight: 400;
}
.form-input, .form-select {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(232,120,32,0.25);
  color: var(--cream); padding: 14px 16px; font-family: 'Jost', sans-serif;
  font-size: 14px; font-weight: 300; outline: none; transition: border-color 0.2s; -webkit-appearance: none;
}
.form-input:focus, .form-select:focus { border-color: var(--wood-light); background: rgba(255,255,255,0.07); }
.form-input::placeholder { color: rgba(250,250,248,0.3); }
.form-input.field-error, .form-select.field-error { border-color: #E05B4A; }
.form-select option { background: var(--wood-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%; background: var(--green); color: #1A1A1A; border: none; padding: 18px;
  font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.25em;
  text-transform: uppercase; cursor: pointer; margin-top: 8px;
  transition: background 0.25s, transform 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-submit svg { width: 18px; height: 18px; fill: currentColor; }
.btn-submit:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.form-note {
  margin-top: 14px; font-size: 11px; color: rgba(250,250,248,0.4);
  text-align: center; font-weight: 300; line-height: 1.6;
}
.form-note a { color: var(--wood-light); text-decoration: none; }

/* ===================== PROJECTS ===================== */
.projects-section { padding: 120px 0; }
.projects-header { padding: 0 60px; margin-bottom: 60px; }
.projects-scroll {
  display: flex; gap: 20px; overflow-x: auto; padding: 0 60px 20px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.projects-scroll::-webkit-scrollbar { display: none; }
.project-card { flex-shrink: 0; width: 340px; position: relative; overflow: hidden; }
.project-img { width: 340px; height: 420px; position: relative; overflow: hidden; }
.project-img-bg { width: 100%; height: 100%; transition: transform 0.6s ease; }
.project-card:hover .project-img-bg { transform: scale(1.05); }
.project-img-bg img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.project-grain { position: absolute; inset: 0; background: repeating-linear-gradient(168deg, transparent 0 6px, rgba(255,255,255,0.025) 6px 7px); }
.project-tag {
  position: absolute; top: 20px; left: 20px; background: rgba(250,250,248,0.93);
  color: var(--wood-dark); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 12px; font-weight: 500;
}
.project-info { padding: 20px 0 0; }
.project-location { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light); margin-bottom: 6px; }
.project-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; color: var(--wood-dark); }

.proj-bg-1 { background: linear-gradient(160deg, #8B5E35 0%, #5C3A18 100%); }
.proj-bg-2 { background: linear-gradient(160deg, #7A8A6A 0%, #4E6040 100%); }
.proj-bg-3 { background: linear-gradient(160deg, #A07848 0%, #6A4C28 100%); }
.proj-bg-4 { background: linear-gradient(160deg, #2D2D2D 0%, #161616 100%); }
.proj-bg-5 { background: linear-gradient(160deg, #C08A50 0%, #8B5E35 100%); }

/* ===================== TESTIMONIALS ===================== */
.testimonials-section { padding: 120px 60px; background: var(--cream); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 72px; max-width: 980px; }
.author-loc a { color: var(--text-light); text-decoration: underline; text-underline-offset: 3px; }
.author-loc a:hover { color: var(--orange); }
.testimonial-cta { display: flex; flex-direction: column; justify-content: center; }
.btn-review {
  display: inline-block; background: var(--green); color: #1A1A1A;
  font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
  padding: 14px 28px; transition: background 0.25s, color 0.25s;
}
.btn-review:hover { background: var(--green-dark); color: #fff; }
.testimonial-card { padding: 40px; background: var(--warm-white); border: 1px solid var(--wood-pale); position: relative; }
.testimonial-card::before {
  content: '"'; font-family: 'Cormorant Garamond', serif; font-size: 80px;
  color: var(--wood-pale); position: absolute; top: 10px; left: 30px; line-height: 1;
}
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 20px; padding-top: 30px; }
.star { color: var(--accent); font-size: 14px; }
.testimonial-text {
  line-height: 1.8; color: var(--text-mid); font-weight: 300; font-style: italic;
  margin-bottom: 28px; font-family: 'Cormorant Garamond', serif; font-size: 18px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: #1A1A1A;
}
.author-name { font-weight: 500; font-size: 14px; color: var(--wood-dark); }
.author-loc { font-size: 12px; color: var(--text-light); font-weight: 300; }

/* ===================== FOOTER ===================== */
footer { background: #161616; padding: 80px 60px 40px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 40px;
}
.footer-brand .nav-logo { display: block; margin-bottom: 20px; }
.footer-brand .nav-logo img { filter: brightness(0) invert(1); opacity: 0.9; }
.footer-tagline { font-size: 13px; color: rgba(240,240,238,0.5); font-weight: 300; line-height: 1.7; max-width: 240px; margin-bottom: 28px; }
.footer-social { display: flex; gap: 16px; }
.social-link {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  color: rgba(240,240,238,0.6); font-size: 13px; transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--wood-light); color: var(--wood-light); }
.footer-col h4 {
  font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(240,240,238,0.6); margin-bottom: 24px; font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(240,240,238,0.75); text-decoration: none; font-size: 14px; font-weight: 300; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--wood-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.contact-icon { color: var(--accent); font-size: 14px; margin-top: 2px; }
.footer-contact-item a, .footer-contact-item span { font-size: 13px; color: rgba(240,240,238,0.75); font-weight: 300; line-height: 1.6; text-decoration: none; }
.footer-contact-item a:hover { color: var(--wood-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(240,240,238,0.3); font-weight: 300; }
.footer-credit { font-size: 11px; color: rgba(240,240,238,0.22); font-weight: 300; }
.footer-credit a { color: inherit; text-decoration: none; }

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed; bottom: 36px; right: 36px; z-index: 500;
  background: #25D366; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s; animation: pulse-wa 2.5s ease infinite;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.35); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,0.55), 0 0 0 8px rgba(37,211,102,0.08); }
}

/* ===================== ANIMATIONS ===================== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fade-up { opacity: 1; transform: none; }
}

/* ===================== MOBILE ===================== */
@media (max-width: 900px) {
  nav { padding: 18px 24px; background: rgba(250,250,248,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--wood-pale); }
  nav.scrolled { padding: 14px 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(80%, 320px); height: 100vh; height: 100dvh;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 28px; padding: 96px 40px 40px;
    transform: translateX(102%); visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.35s;
    box-shadow: -10px 0 40px rgba(0,0,0,0.18); z-index: 110;
    overscroll-behavior: contain; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); visibility: visible; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0s; }
  .nav-links a { font-size: 15px; }
  .nav-cta { padding: 14px 28px; }

  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 110px 24px 60px; }
  .hero-right { height: 320px; position: relative; }
  .hero-badge { position: relative; bottom: auto; left: auto; margin-top: 40px; }
  .hero-scroll-hint { display: none; }

  .stats-strip { padding: 32px 24px; flex-wrap: wrap; gap: 20px; }
  .stat-item { min-width: 40%; border-right: none; }

  .section { padding: 80px 24px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card:first-child { grid-column: span 2; grid-row: span 1; }
  .product-card:first-child .product-img { aspect-ratio: 16/9; }
  .product-overlay { opacity: 1; background: linear-gradient(to top, rgba(14,14,14,0.6) 0%, transparent 60%); }

  .process-section { padding: 80px 24px; }
  .process-section::before { font-size: 110px; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 32px; }

  .cotizador-section { grid-template-columns: 1fr; padding: 80px 24px; gap: 48px; }
  .testimonials-section { padding: 80px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .projects-header { padding: 0 24px; }
  .projects-scroll { padding: 0 24px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  footer { padding: 60px 24px 32px; }
  .whatsapp-float { bottom: 20px; right: 20px; }
}

@media (max-width: 520px) {
  nav { padding: 14px 18px; }
  .nav-logo img { height: 40px; }
  .hero-left { padding: 96px 20px 48px; }
  .hero-title { font-size: clamp(40px, 11vw, 52px); }
  .hero-actions { gap: 14px; }
  .btn-primary { padding: 14px 28px; }
  .hero-right { height: 260px; }
  .hero-products-float { bottom: 14px; right: 14px; gap: 8px; }
  .hero-prod-chip { padding: 7px 12px; }
  .hero-prod-swatch { width: 22px; height: 22px; }
  .hero-prod-chip span { font-size: 11px; }
  .stat-item { min-width: 100%; }
  .stat-num { font-size: 38px; }
  .section { padding: 64px 20px; }
  .products-grid { grid-template-columns: 1fr; }
  .product-card:first-child { grid-column: span 1; }
  .product-card:first-child .product-img { aspect-ratio: 4/3; }
  .process-section { padding: 64px 20px; }
  .process-steps { grid-template-columns: 1fr; }
  .cotizador-section { padding: 64px 20px; }
  .testimonials-section { padding: 64px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .project-img { width: 280px; height: 360px; }
  .project-card { width: 280px; }
}

/* =========================================================
   UPGRADE VISUAL — Persiana 3D, tilt, marquee, micro-motion
   ========================================================= */

/* ─── Barra de progreso de scroll ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, var(--orange), var(--green));
}

/* ─── Persiana 3D del hero ─── */
.persiana-3d {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
  padding: 0; perspective: 1100px; pointer-events: none;
}
.slat {
  flex: 1; position: relative; border-radius: 2px;
  transform: rotateX(0deg); will-change: transform;
  background: linear-gradient(180deg, #B07C44 0%, #8B5E35 35%, #6E4824 70%, #4E2F10 100%);
  box-shadow: 0 8px 18px rgba(15, 8, 2, 0.35);
}
.slat::after {
  content: ''; position: absolute; inset: 0; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(0,0,0,0.05) 18px 20px),
    linear-gradient(90deg, rgba(255,255,255,0.10), transparent 28%, transparent 72%, rgba(0,0,0,0.18));
}
.persiana-cord {
  position: absolute; top: -4px; bottom: -4px; width: 2px; z-index: 3;
  background: rgba(35, 20, 8, 0.55); box-shadow: 0 0 2px rgba(0,0,0,0.4);
}
.cord-l { left: 24%; }
.cord-r { right: 24%; }
.hero-img-overlay {
  z-index: 3;
  background:
    linear-gradient(to bottom, rgba(22, 13, 4, 0.55) 0%, transparent 22%),
    linear-gradient(to right, var(--cream) 0%, transparent 20%),
    linear-gradient(to top, rgba(45, 26, 8, 0.55) 0%, transparent 45%);
}

/* Links del nav legibles sobre la foto del hero (estado transparente) */
@media (min-width: 901px) {
  nav:not(.scrolled) .nav-links a {
    color: rgba(250, 250, 248, 0.95);
    text-shadow: 0 1px 10px rgba(20, 10, 2, 0.55);
  }
  nav:not(.scrolled) .nav-links a:hover { color: #fff; }
  nav:not(.scrolled) .nav-links a::after { background: #fff; }
  nav:not(.scrolled) .nav-cta {
    color: #1A1A1A !important;
    text-shadow: none;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  }
  nav:not(.scrolled) .nav-cta:hover { color: #fff !important; }
}

/* ─── Entrada cinematográfica del hero ─── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: riseIn 0.8s cubic-bezier(0.2,0.65,0.3,1) 0.15s both; }
.hero-title   { animation: riseIn 0.9s cubic-bezier(0.2,0.65,0.3,1) 0.30s both; }
.hero-desc    { animation: riseIn 0.9s cubic-bezier(0.2,0.65,0.3,1) 0.45s both; }
.hero-actions { animation: riseIn 0.9s cubic-bezier(0.2,0.65,0.3,1) 0.60s both; }
.hero-badge   { animation: riseIn 1.0s cubic-bezier(0.2,0.65,0.3,1) 0.75s both; }
.hero-prod-chip { animation: riseIn 0.8s ease both; }
.hero-prod-chip:nth-child(1) { animation-delay: 0.9s; }
.hero-prod-chip:nth-child(2) { animation-delay: 1.05s; }
.hero-prod-chip:nth-child(3) { animation-delay: 1.2s; }

/* ─── Tilt 3D en tarjetas de producto ─── */
.product-card {
  transition: transform 0.2s ease-out;
  transform-style: preserve-3d; will-change: transform;
}
.product-img-inner::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.16), transparent 55%);
  opacity: 0; transition: opacity 0.3s ease;
}
.product-card:hover .product-img-inner::after { opacity: 1; }

/* ─── Marquee editorial ─── */
.marquee {
  overflow: hidden; padding: 30px 0;
  border-top: 1px solid var(--wood-pale); border-bottom: 1px solid var(--wood-pale);
  background: var(--warm-white);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marqueeScroll 32s linear infinite; will-change: transform;
}
.marquee-group { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.marquee-group span {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400;
  font-size: clamp(34px, 4.5vw, 62px); white-space: nowrap;
  color: rgba(140, 58, 0, 0.34);
}
.marquee-group i { color: var(--green); font-style: normal; font-size: 18px; opacity: 0.7; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ─── Micro-interacciones en proceso ─── */
.process-step { transition: transform 0.35s ease; }
.process-step:hover { transform: translateY(-6px); }
.process-number { transition: opacity 0.35s ease; }
.process-step:hover .process-number { opacity: 0.7; }

/* ─── Ajustes móviles del upgrade ─── */
@media (max-width: 900px) {
  .persiana-3d { gap: 3px; }
  .marquee { padding: 20px 0; }
  .marquee-group { gap: 36px; padding-right: 36px; }
}

/* ─── Chips del hero interactivos (selector de maderas) ─── */
.hero-prod-chip {
  font-family: inherit; font-size: inherit; text-align: left; cursor: pointer;
  transition: border-color 0.25s, transform 0.2s;
}
.hero-prod-chip:hover { border-color: rgba(240, 120, 32, 0.7); transform: translateX(-4px); }
.hero-prod-chip.active { border-color: var(--orange); box-shadow: 0 0 0 1px rgba(240, 120, 32, 0.35); }
.hero-img img { transition: opacity 0.4s ease; }
.hero-img img.swapping { opacity: 0; }

/* ─── Galería real con filtros ─── */
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.gf-btn {
  background: none; border: 1px solid var(--wood-pale); padding: 10px 22px;
  font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-mid); cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.gf-btn:hover { border-color: var(--orange); color: var(--orange); }
.gf-btn.active { background: var(--wood-dark); border-color: var(--wood-dark); color: var(--cream); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; padding: 0 60px;
}
.gallery-item {
  position: relative; overflow: hidden; cursor: pointer; margin: 0;
  aspect-ratio: 4 / 5; background: var(--wood-pale);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(14, 14, 14, 0.78), transparent);
  display: flex; flex-direction: column; gap: 4px; pointer-events: none;
}
.g-tag { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--orange); font-weight: 500; }
.g-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--cream); }
.gallery-item.gi-hidden { display: none; }

/* ─── CTA Instagram bajo la galería ─── */
.gallery-ig { text-align: center; margin-top: 48px; padding: 0 24px; }
.ig-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; border: 1px solid var(--wood-pale);
  text-decoration: none; color: var(--text-mid);
  font-size: 13px; letter-spacing: 0.06em; font-weight: 300;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.ig-cta svg { width: 20px; height: 20px; fill: var(--orange); flex-shrink: 0; }
.ig-cta strong { font-weight: 500; color: var(--wood-dark); transition: color 0.25s; }
.ig-cta:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.ig-cta:hover strong { color: var(--orange); }

/* ─── Lightbox ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(15, 10, 5, 0.93);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { margin: 0; text-align: center; max-width: 86vw; }
.lb-stage img {
  max-width: 86vw; max-height: 80vh; object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.lb-caption {
  margin-top: 14px; font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 18px; color: rgba(250, 250, 248, 0.75);
}
.lb-btn {
  background: none; border: 1px solid rgba(255, 255, 255, 0.25); color: rgba(250, 250, 248, 0.85);
  width: 46px; height: 46px; font-size: 24px; line-height: 1; cursor: pointer;
  transition: border-color 0.2s, color 0.2s; flex-shrink: 0;
}
.lb-btn:hover { border-color: var(--orange); color: var(--orange); }
.lb-close { position: absolute; top: 24px; right: 24px; }

/* ─── Sección El Taller ─── */
.taller-section { padding: 120px 60px; background: var(--warm-white); overflow: hidden; }
.taller-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.taller-desc { font-size: 15px; line-height: 1.8; color: var(--text-mid); font-weight: 300; margin-top: 24px; max-width: 420px; }
.taller-claims { list-style: none; margin-top: 28px; }
.taller-claims li {
  font-size: 14px; color: var(--text-mid); font-weight: 300; padding: 10px 0 10px 28px;
  position: relative; border-bottom: 1px solid var(--wood-pale);
}
.taller-claims li::before { content: '✦'; position: absolute; left: 0; color: var(--green); font-size: 12px; }
.taller-media { position: relative; padding-bottom: 60px; }
.taller-photo-main { aspect-ratio: 4 / 5; max-width: 440px; margin-left: auto; overflow: hidden; position: relative; }
.taller-photo-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.taller-photo-float {
  position: absolute; bottom: 0; left: 0; width: 52%; aspect-ratio: 4 / 3;
  overflow: hidden; border: 6px solid var(--warm-white);
  box-shadow: 0 18px 50px rgba(30, 18, 6, 0.25); will-change: transform;
}
.taller-photo-float img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── Comparador Antes / Después ─── */
.ba-wrap { max-width: 900px; margin: 100px auto 0; text-align: center; }
.ba-heading {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 3vw, 38px);
  font-weight: 300; color: var(--wood-dark); margin-bottom: 36px;
}
.ba-heading em { font-style: italic; color: var(--accent); }
.ba-slider {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  cursor: ew-resize; touch-action: none; user-select: none; background: var(--wood-pale);
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before {
  clip-path: inset(0 45% 0 0);
  filter: saturate(0.3) brightness(0.76) contrast(0.85) sepia(0.32);
}
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 55%; width: 2px;
  background: rgba(250, 250, 248, 0.95); box-shadow: 0 0 14px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--cream);
  color: var(--wood-dark); font-size: 18px; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.ba-label {
  position: absolute; top: 18px; padding: 6px 14px; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  background: rgba(20, 14, 8, 0.65); color: rgba(250, 250, 248, 0.9); pointer-events: none;
}
.ba-label-l { left: 18px; }
.ba-label-r { right: 18px; }
.ba-note { margin-top: 14px; font-size: 11px; color: var(--text-light); font-weight: 300; }

/* ─── Reveal en lamas (imágenes que se "abren") ─── */
.lamas-cover {
  position: absolute; inset: 0; z-index: 4; display: flex;
  flex-direction: column; pointer-events: none;
}
.lamas-cover span {
  flex: 1; background: var(--warm-white); transform-origin: center top;
  transition: transform 0.7s cubic-bezier(0.7, 0, 0.2, 1);
}
.lamas-cover span:nth-child(2) { transition-delay: 0.06s; }
.lamas-cover span:nth-child(3) { transition-delay: 0.12s; }
.lamas-cover span:nth-child(4) { transition-delay: 0.18s; }
.lamas-cover span:nth-child(5) { transition-delay: 0.24s; }
.lamas-open .lamas-cover span { transform: scaleY(0); }

/* ─── Cursor acento (anillo que sigue al mouse) ─── */
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px;
  border: 1px solid rgba(240, 120, 32, 0.6); border-radius: 50%;
  pointer-events: none; z-index: 9500; transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
  opacity: 0;
}
.cursor-ring.on { opacity: 1; }
.cursor-ring.grow { width: 56px; height: 56px; border-color: rgba(141, 198, 63, 0.8); }

/* ─── Ajustes móviles de las secciones nuevas ─── */
@media (max-width: 900px) {
  .gallery-grid { padding: 0 24px; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .taller-section { padding: 80px 24px; }
  .taller-grid { grid-template-columns: 1fr; gap: 48px; }
  .taller-photo-main { max-width: 100%; }
  .ba-wrap { margin-top: 64px; }
  .lb-prev, .lb-next { position: absolute; bottom: 24px; z-index: 2; }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 4 / 4.4; }
  .gf-btn { padding: 8px 14px; font-size: 10px; }
}

/* ─── Movimiento reducido: estado final estático ─── */
@media (prefers-reduced-motion: reduce) {
  .slat { transform: rotateX(62deg); }
  .scroll-progress { display: none; }
  .lamas-cover { display: none; }
  .cursor-ring { display: none; }
}
