:root {
  --bg: #faf7f2;
  --bg-soft: #f2ece3;
  --surface: #ffffff;
  --text: #2a1b10;
  --muted: #7a675a;
  --accent: #3d2817;
  --accent-2: #7a4900;
  --beige: #bfa991;
  --beige-soft: #e6dacb;
  --border: #e4d9cb;
  --maxw: 1200px;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(42,27,16,.08);
  --transition: .3s ease;
  --font-display: 'Contrail One', 'Poppins', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
h1,h2,h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(250,246,240,.75); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--border); box-shadow: 0 4px 20px rgba(43,31,26,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--text); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; border: 1px solid transparent; transition: var(--transition); cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .78rem; }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-title { animation: fadeInUp 1s ease-out both; }
.hero-sub { animation: fadeInUp 1s ease-out .2s both; }
.hero-actions { animation: fadeInUp 1s ease-out .4s both; }
.eyebrow { animation: fadeInUp .8s ease-out both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* Marquee */
.marquee-section { background: var(--bg-soft); padding: 30px 0; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track img { height: 120px; width: auto; border-radius: 12px; box-shadow: var(--shadow); }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.hero-bg { position: absolute; inset: 0; background: url('../img/hero.jpg') center/cover no-repeat; transform: scale(1.1); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(43,31,26,.65), rgba(43,31,26,.25)); }
.hero-bg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(201,162,74,.15), transparent 60%); }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 700px; }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .8rem; margin-bottom: 16px; opacity: .9; }
.hero-title { color: #fff; font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; text-shadow: 0 4px 20px rgba(0,0,0,.3); background: linear-gradient(135deg, #fff 0%, #d9c3a8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 560px; margin-top: 12px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.scroll-indicator { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 1.4rem; animation: bounce 2s infinite; z-index: 2; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(8px);} }

/* Stats */
.stats-section { background: var(--accent); color: #fff; padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 3rem; font-weight: 400; line-height: 1; }
.stat-label { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; margin-top: 6px; }

/* Sections */
.section { padding: 80px 0; }
.section-light { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 12px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.section-sub { text-align: center; color: var(--muted); max-width: 700px; margin: 0 auto 40px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature { display: flex; gap: 14px; }
.feature-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--beige-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.feature h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* Products */
.catalog-filter { display: flex; gap: 12px; max-width: 720px; margin: 0 auto 36px; flex-wrap: wrap; justify-content: center; align-items: center; }
.search-box { position: relative; flex: 1 1 300px; }
.search-box input { width: 100%; padding: 13px 44px 13px 20px; border: 1px solid var(--border); border-radius: 999px; font-family: inherit; font-size: 1rem; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--beige-soft); }
.catalog-filter select { flex: 0 1 240px; padding: 13px 20px; border: 1px solid var(--border); border-radius: 999px; font-family: inherit; font-size: .95rem; background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer; }
.catalog-filter select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--beige-soft); }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--beige-soft); color: var(--accent); font-size: 1rem; line-height: 1; cursor: pointer; transition: var(--transition); }
.search-clear:hover { background: var(--beige); color: #fff; }
.catalog-count { text-align: center; color: var(--muted); font-size: .9rem; margin: -16px 0 28px; min-height: 1.4em; }
#catalog-empty { text-align: center; color: var(--muted); padding: 20px 0 40px; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products-grid { grid-template-columns: 1fr; } }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); position: relative; display: flex; flex-direction: column; }
.product-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(122,73,0,.08), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.product-card:hover { transform: translateY(-8px); border-color: var(--beige); box-shadow: 0 20px 50px rgba(42,27,16,.14); }
.product-card:hover::before { opacity: 1; }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pc-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-cat { color: var(--accent-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.pc-body h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.pc-price { font-family: var(--font-heading); font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.pc-specs { color: var(--muted); font-size: .88rem; margin: 0; }
.pc-body .btn { margin-top: auto; }

/* Showroom */
.showroom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.showroom-grid img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.showroom-info p { margin-bottom: 8px; }
.showroom-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.map-embed { margin-top: 30px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-form { background: var(--surface); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 1rem; background: var(--bg); color: var(--text); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #efe3d6; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-msg { margin-top: 12px; font-size: .9rem; }
.contact-info h3 { margin-bottom: 12px; }
.contact-info p { margin-bottom: 8px; }

/* Anti-spam (honeypot): invisible y no enfocable para el usuario real */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

/* Formulario: select, fecha, radios, checks y captcha */
.contact-form select, .contact-form input[type="date"] { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 1rem; background: var(--bg); color: var(--text); }
.contact-form select:focus, .contact-form input[type="date"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--beige-soft); }
.radio, .check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; margin-bottom: 8px; color: var(--text); cursor: pointer; line-height: 1.5; }
.radio input, .check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.check a { text-decoration: underline; font-weight: 600; }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-q { font-family: var(--font-display); font-size: 1.15rem; color: var(--accent); white-space: nowrap; }
.captcha-row input { width: 70px; text-align: center; margin-bottom: 0; }
.captcha-row .btn { padding: 10px 14px; }

/* Marquee */
.marquee-section { background: var(--bg-soft); padding: 30px 0; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track img { height: 120px; width: auto; border-radius: 12px; box-shadow: var(--shadow); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Footer */
.site-footer { background: var(--bg-soft); padding: 50px 0 20px; border-top: 1px solid var(--border); margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-logo { height: 44px; margin-bottom: 12px; }
.site-footer h4 { color: var(--accent); font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 12px; font-family: var(--font-heading); }
.site-footer p { color: var(--muted); font-size: .92rem; margin-bottom: 6px; }
.copyright { text-align: center; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius); max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,.3); position: relative; animation: modalIn .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 12px; right: 16px; background: rgba(0,0,0,.35); color: #fff; border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 1.5rem; cursor: pointer; line-height: 1; z-index: 3; }
.modal-close:hover { background: rgba(0,0,0,.55); color: #fff; }
.modal-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius) var(--radius) 0 0; }
.modal-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; flex: 0 0 100%; scroll-snap-align: center; }
.modal-gallery::-webkit-scrollbar { height: 4px; }
.modal-gallery::-webkit-scrollbar-thumb { background: var(--beige); border-radius: 2px; }
.modal-body { padding: 24px; }
.modal-cat { color: var(--accent-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.modal-body h2 { margin: 8px 0 4px; font-size: 1.5rem; }
.modal-price { font-family: var(--font-heading); font-weight: 700; color: var(--accent); font-size: 1.25rem; margin-bottom: 10px; }
.modal-specs { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.modal-desc { color: var(--text); margin-bottom: 16px; line-height: 1.7; }
.modal-details { background: var(--bg-soft); border-left: 3px solid var(--beige); border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; font-size: .9rem; color: var(--text); white-space: pre-line; line-height: 1.7; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* WhatsApp float */
.wa-float { position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 999; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* Popup / ventana emergente */
.popup-overlay { position: fixed; inset: 0; background: rgba(42,27,16,.7); backdrop-filter: blur(4px); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; }
.popup-overlay.open { display: flex; }
.popup-modal { position: relative; background: var(--surface); border-radius: var(--radius); max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: modalIn .3s ease; }
.popup-close { position: absolute; top: 10px; right: 14px; background: rgba(0,0,0,.35); color: #fff; border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 1.5rem; cursor: pointer; line-height: 1; z-index: 3; }
.popup-close:hover { background: rgba(0,0,0,.55); }
.popup-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.popup-body { padding: 24px; }
.popup-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--accent); margin-bottom: 10px; }
.popup-body p { color: var(--muted); margin-bottom: 18px; white-space: pre-wrap; }
.popup-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 820px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); padding: 16px 20px; gap: 12px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .showroom-grid, .contact-grid, .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { min-height: 80vh; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}
/* Contenido siempre visible (sin dependencia de JS) */
.reveal { opacity: 1; transform: none; }
