/* GummaTienda — Kubik · hoja de estilos principal */
:root {
  --blue: #1B3FA0;
  --blue-mid: #2550c8;
  --yellow: #C9A20B;
  --yellow-light: #f5d65a;
  --white: #FFFFFF;
  --black: #0E1117;
  --gray-100: #F4F5F7;
  --gray-200: #E8EAED;
  --gray-400: #B0B5BF;
  --gray-600: #6B7280;
  --gray-800: #2D3748;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Nunito", sans-serif; color: var(--black); background: var(--white); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 70px;
}
.nav-logo { display:flex; align-items:center; gap:12px; text-decoration:none; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo span { font-weight:800; font-size:15px; color:var(--gray-800); letter-spacing:0.02em; border-left:1px solid var(--gray-200); padding-left:12px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 0.03em; color: var(--gray-800); transition: color 0.18s; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-wa { background: #25D366; color: white; padding: 9px 18px; border-radius: 8px; font-weight: 700; font-size: 13px; text-decoration: none; }
.btn-shop { background: var(--blue); color: white; padding: 9px 18px; border-radius: 8px; font-weight: 700; font-size: 13px; text-decoration: none; }
.nav-burger { display: none; background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--gray-800); padding: 6px; }
@media(max-width:1000px){
  nav { padding: 0 24px; }
  .nav-burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 4px;
    padding: 12px 24px 18px; border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 16px 30px rgba(14,17,23,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; font-size: 15px; }
}

/* ─── HERO ─── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; filter: brightness(0.35); }
.hero-content { position: relative; z-index: 2; padding: 70px 60px 140px; max-width: 680px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,162,11,0.18); border: 1px solid rgba(201,162,11,0.35);
  color: #f5d655; font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 28px;
}
.hero h1 { font-weight: 800; font-size: clamp(42px, 5.5vw, 72px); line-height: 1.12; color: white; margin-bottom: 22px; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--yellow-light); }
.hero-sub { font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.72); line-height: 1.75; margin-bottom: 40px; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-main { background: var(--blue); color: white; padding: 14px 30px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; transition: background 0.18s; }
.btn-main:hover { background: var(--blue-mid); }
.btn-ghost { background: rgba(255,255,255,0.1); color: white; padding: 14px 30px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.3); font-weight: 600; font-size: 15px; text-decoration: none; }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(8px);
  display: flex; padding: 28px 60px; gap: 60px; border-top: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap;
}
.stat-num { font-weight: 800; font-size: 34px; color: white; line-height: 1; letter-spacing: -0.02em; }
.stat-num em { font-style: normal; color: var(--yellow-light); }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

/* ─── TRUST BAR ─── */
.trust-bar { background: var(--blue); padding: 14px 60px; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.88); font-size: 13px; font-weight: 500; }

/* ─── HELPERS ─── */
.section { padding: 100px 60px; }
.section-dark { background: var(--black); padding: 100px 60px; }
.section-light { background: var(--gray-100); padding: 100px 60px; }
.section-blue { background: linear-gradient(135deg, #16337f 0%, #0c1535 100%); padding: 100px 60px; }
.overline { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: block; }
.overline-dark { color: var(--yellow-light); }
h2.title { font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 14px; }
h2.title-white { color: white; }
.subtitle { font-size: 16px; font-weight: 300; color: var(--gray-600); line-height: 1.75; max-width: 560px; margin-bottom: 56px; }
.subtitle-dark { color: rgba(255,255,255,0.45); }
@media(max-width:800px){ .section,.section-dark,.section-light,.section-blue{padding:64px 24px} .hero-content{padding:70px 24px 160px} .hero-stats{padding:20px 24px;gap:28px} .trust-bar{padding:14px 24px;gap:18px} }

/* ─── PRODUCTO ─── */
.prod-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
@media(max-width:960px){ .prod-grid{grid-template-columns:1fr} }
.prod-photo { border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(14,17,23,0.14); }
.prod-photo > div { width:100%; aspect-ratio: 4/3; background-size: cover; background-position: center; }
.prod-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-bottom: 14px; background: rgba(27,63,160,0.08); color: var(--blue); }
.prod-name { font-weight: 800; font-size: 40px; letter-spacing: -0.02em; margin-bottom: 10px; }
.prod-desc { font-size: 15.5px; font-weight: 300; color: var(--gray-600); line-height: 1.75; margin-bottom: 26px; max-width: 50ch; }
.prod-price { font-weight: 800; font-size: 34px; color: var(--blue); margin-bottom: 4px; }
.prod-price small { font-size: 15px; color: var(--gray-600); font-weight: 600; }
.prod-price-note { font-size: 12.5px; color: var(--gray-400); margin-bottom: 24px; }
.color-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 10px; }
.color-row { display: flex; gap: 12px; margin-bottom: 28px; }
.color-chip { width: 52px; height: 52px; border-radius: 10px; border: 3px solid transparent; cursor: pointer; padding: 0; position: relative; }
.color-chip.active { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(27,63,160,0.2); }
.color-chip span { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; color: var(--gray-600); white-space: nowrap; }
.prod-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 44px; }
.btn-line { border: 1.5px solid var(--gray-200); color: var(--gray-800); padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }

/* certs strip */
.certs { display: flex; gap: 1px; background: var(--gray-200); border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; margin-top: 64px; flex-wrap: wrap; }
.cert { flex: 1; min-width: 160px; background: var(--white); padding: 18px 20px; }
.cert b { display: block; font-size: 19px; font-weight: 800; color: var(--blue); margin-bottom: 2px; }
.cert span { font-size: 12px; color: var(--gray-600); }

/* accesorios */
.acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
@media(max-width:800px){ .acc-grid{grid-template-columns:1fr} }
.acc-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 24px 26px; }
.acc-card h4 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.acc-card p { font-size: 13.5px; font-weight: 300; color: var(--gray-600); line-height: 1.6; margin-bottom: 12px; }
.acc-card b { font-size: 16px; color: var(--blue); font-weight: 800; }

/* ─── DISEÑÁ TU PISO + CALCULADORA ─── */
.design-grid { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
@media(max-width:1000px){ .design-grid{grid-template-columns:1fr} }
#board { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; background: var(--gray-200); padding: 3px; border-radius: 12px; overflow: hidden; user-select: none; }
#board button { aspect-ratio: 1; border: none; cursor: pointer; transition: transform 0.08s; border-radius: 2px; }
#board button:hover { transform: scale(0.9); }
.palette { display: flex; gap: 14px; margin: 22px 0 6px; }
.swatch { width: 44px; height: 44px; border-radius: 10px; border: 3px solid transparent; cursor: pointer; padding: 0; }
.swatch.active { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(27,63,160,0.2); }
.presets { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.presets button { background: var(--white); border: 1.5px solid var(--gray-200); color: var(--gray-800); padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 8px; font-family: "Nunito", sans-serif; }
.presets button:hover { border-color: var(--blue); color: var(--blue); }

.calc-card { background: var(--white); border-radius: 16px; padding: 30px 32px; box-shadow: 0 12px 40px rgba(14,17,23,0.08); border: 1px solid var(--gray-200); }
.calc-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.calc-card > p { font-size: 13px; font-weight: 300; color: var(--gray-600); margin-bottom: 20px; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.calc-field label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); display: block; margin-bottom: 7px; }
.calc-field input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: 8px; font-family: "Nunito", sans-serif; font-size: 16px; font-weight: 700; color: var(--black); outline: none; }
.calc-field input:focus { border-color: var(--blue); }
.calc-acc { background: var(--gray-100); border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; }
.calc-acc p.h { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 12px; }
.calc-acc p.n { font-size: 12px; color: var(--gray-400); font-weight: 300; margin-top: 4px; }
.calc-result { background: linear-gradient(135deg, #16337f 0%, #0c1535 100%); border-radius: 12px; padding: 18px 20px; color: #fff; margin-bottom: 18px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: 13.5px; }
.calc-row span { color: rgba(255,255,255,0.6); font-weight: 300; }
.calc-total { border-top: 2px solid rgba(255,255,255,0.25); margin-top: 8px; padding-top: 12px; }
.calc-total span { font-weight: 800 !important; font-size: 14px; color: #fff !important; }
.calc-total strong { font-size: 24px; }
.calc-note { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 8px; font-weight: 300; }
.calc-ctas { display: flex; flex-direction: column; gap: 10px; }
.calc-btn-main { background: var(--blue); color: #fff; text-align: center; padding: 14px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; font-family: "Nunito", sans-serif; display: block; width: 100%; }
.calc-btn-main:hover { background: var(--blue-mid); }
.calc-btn-wa { background: #25D366; color: #fff; text-align: center; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; }

/* ─── COMPARATIVA ─── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); font-weight: 300; }
.compare-table thead th { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.compare-table thead th.k { color: var(--yellow-light); }
.compare-table td.k { background: rgba(201,162,11,0.07); color: #fff; font-weight: 600; }
.compare-table td:first-child { color: rgba(255,255,255,0.55); }
.compare-table .ok { color: #6ee7a0; font-weight: 700; }
.compare-table .no { color: #f08a8a; }
.compare-wrap { overflow-x: auto; }

/* ─── APLICACIONES ─── */
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0 60px 100px; }
@media(max-width:960px){ .apps-grid{grid-template-columns:repeat(2,1fr); padding:0 24px 64px} }
@media(max-width:560px){ .apps-grid{grid-template-columns:1fr} }
.app-card { position: relative; border-radius: 14px; overflow: hidden; height: 300px; }
.app-bg { position: absolute; inset: 0; }
.app-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 55%); }
.app-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 24px; color: #fff; }
.app-label h4 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.app-label p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.7); }

/* ─── FICHA TÉCNICA ─── */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media(max-width:900px){ .spec-grid{grid-template-columns:1fr} }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--gray-200); }
.spec-table td { padding: 13px 18px; font-size: 14px; border-bottom: 1px solid var(--gray-200); }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--gray-600); font-weight: 300; width: 48%; }
.spec-table td:last-child { font-weight: 700; }
.textures { display: flex; gap: 14px; margin-top: 24px; }
.tex { flex: 1; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 16px; text-align: center; font-size: 13.5px; font-weight: 700; }
.tex div { height: 64px; margin-bottom: 10px; border-radius: 8px; background:
  radial-gradient(circle at 30% 30%, #cfd0cc 2px, transparent 2.5px),
  radial-gradient(circle at 70% 60%, #cfd0cc 2px, transparent 2.5px), #e3e4e0; background-size: 22px 22px; }

/* ─── GUMMA GROUP ─── */
.group-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media(max-width:900px){ .group-grid{grid-template-columns:1fr} }
.group-text p { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.72); line-height: 1.8; margin-bottom: 18px; max-width: 56ch; }
.group-text p b { color: #fff; font-weight: 700; }
.group-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gstat { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 26px 28px; }
.gstat b { display: block; font-size: 36px; font-weight: 800; color: var(--yellow-light); letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.gstat span { font-size: 12.5px; color: rgba(255,255,255,0.55); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.btn-yellow { background: var(--yellow); color: var(--black); padding: 14px 30px; border-radius: 10px; font-weight: 800; font-size: 15px; text-decoration: none; display: inline-block; margin-top: 10px; }
.btn-yellow:hover { background: var(--yellow-light); }

/* ─── TESTIMONIOS ─── */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media(max-width:900px){ .test-grid{grid-template-columns:1fr} }
.test-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 30px 32px; }
.stars { color: var(--yellow); font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.test-text { font-size: 14.5px; font-weight: 300; color: var(--gray-800); line-height: 1.75; margin-bottom: 20px; }
.test-name { font-weight: 800; font-size: 14px; }
.test-info { font-size: 12.5px; color: var(--gray-600); font-weight: 300; }

/* ─── FAQ ─── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width:800px){ .faq-grid{grid-template-columns:1fr} }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 26px 30px; }
.faq-item h4 { font-size: 15.5px; font-weight: 800; margin-bottom: 8px; }
.faq-item p { font-size: 14px; font-weight: 300; color: var(--gray-600); line-height: 1.7; }

/* ─── CTA FINAL ─── */
.cta-final { background: linear-gradient(135deg, #16337f 0%, #0c1535 100%); padding: 110px 60px; text-align: center; }
.cta-final h2 { font-weight: 800; font-size: clamp(32px, 4.5vw, 54px); color: #fff; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 16px; }
.cta-final h2 em { font-style: normal; color: var(--yellow-light); }
.cta-final p { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.6); margin-bottom: 36px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-white-outline { background: transparent; color: #fff; padding: 14px 30px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.35); font-weight: 600; font-size: 15px; text-decoration: none; }

/* ─── FOOTER ─── */
footer { background: var(--black); padding: 70px 60px 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 54px; }
@media(max-width:900px){ .footer-top{grid-template-columns:1fr} footer{padding:54px 24px 0} }
footer img { height: 30px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.45); line-height: 1.7; }
.footer-col h5 { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 14px; font-weight: 300; }
.footer-col a:hover { color: var(--yellow-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: rgba(255,255,255,0.35); font-weight: 300; }

/* ─── MODAL (contacto → checkout Tiendanube) ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(14,17,23,0.55);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 16px; max-width: 440px; width: 100%; padding: 38px 36px; text-align: center; box-shadow: 0 24px 60px rgba(14,17,23,0.25); }
.modal .modal-icon { font-size: 44px; margin-bottom: 14px; }
.modal h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.modal p { font-size: 14.5px; font-weight: 300; color: var(--gray-600); line-height: 1.7; margin-bottom: 22px; }
.modal .btn-main { display: inline-block; border: none; cursor: pointer; font-family: "Nunito", sans-serif; }
.modal-form { text-align: left; }
.modal-form h3, .modal-form > p { text-align: center; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12.5px; font-weight: 700; color: var(--gray-800); margin-bottom: 5px; }
.form-row input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: 8px;
  font-family: "Nunito", sans-serif; font-size: 15px; color: var(--black); background: var(--white);
}
.form-row input:focus { outline: none; border-color: var(--blue); }
.form-error { font-size: 13px; color: #c0392b; font-weight: 600; margin: 2px 0 10px; }
.modal-form .btn-main { width: 100%; margin-top: 6px; }
.modal-form .btn-main[disabled] { opacity: 0.6; cursor: default; }
.btn-cancel {
  display: block; width: 100%; margin-top: 12px; background: none; border: none; cursor: pointer;
  color: var(--gray-600); font-weight: 600; font-size: 13.5px; font-family: "Nunito", sans-serif;
}
.btn-cancel:hover { color: var(--gray-800); }
.calc-stock-aviso { color: #b3541e; font-weight: 600; }
