/* Ativo Sport GT — estilos principales */

:root {
  --green-900: #163a2c;
  --green-800: #1f4d3a;
  --green-700: #2a6249;
  --green-100: #e3ece5;
  --sand-50: #fbf8f2;
  --sand-100: #f4eee2;
  --sand-200: #e8dfcd;
  --clay: #b5532a;
  --clay-dark: #94401d;
  --ink: #1d2420;
  --ink-soft: #4a544e;
  --line: #ddd5c4;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 58, 44, .06), 0 6px 20px rgba(22, 58, 44, .07);
  --wrap: 1160px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--clay-dark); }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-900);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-900); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--green-900);
  color: #dfe9e2;
  font-size: .95rem;
  text-align: center;
  padding: 7px 16px;
}
.topbar strong { color: var(--white); }

/* ---------- Cabecera ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); }
.logo img { width: 44px; height: 44px; }
.logo-text { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; letter-spacing: .01em; line-height: 1; }
.logo-text small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-top: 4px; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--green-100); color: var(--green-900); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  font-size: .9rem; font-weight: 700; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
}
.cart-link {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 8px; border: 2px solid var(--green-800);
  color: var(--green-800); text-decoration: none; font-weight: 700;
}
.cart-link:hover { background: var(--green-800); color: var(--white); }
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: var(--clay); color: var(--white); font-size: .85rem;
  display: inline-flex; align-items: center; justify-content: center;
}

.nav-toggle {
  display: none; background: none; border: 2px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 20px 18px; }
  .main-nav a { padding: 14px 12px; font-size: 1.15rem; }
  .header-actions { margin-left: auto; }
  .lang { display: none; }
}
@media (max-width: 480px) {
  .logo-text small { display: none; }
  .cart-link .cart-label { display: none; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 12px 28px; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 1.1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s;
}
.btn-primary { background: var(--clay); color: var(--white); }
.btn-primary:hover { background: var(--clay-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-secondary:hover { background: var(--green-800); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { background: var(--sand-100); border-bottom: 1px solid var(--sand-200); }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding: 64px 20px 72px;
}
.eyebrow {
  display: inline-block; font-size: .9rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--clay); margin-bottom: 14px;
}
.hero p.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo {
  border-radius: 14px; overflow: hidden; background: var(--green-100);
  box-shadow: var(--shadow); aspect-ratio: 5 / 4;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-note { font-size: .95rem; color: var(--ink-soft); margin-top: 18px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 20px 48px; gap: 32px; }
}

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); }

/* ---------- Beneficios ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px;
}
.benefit-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--green-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.benefit-icon svg { width: 28px; height: 28px; color: var(--green-800); }
.benefit h3 { font-size: 1.15rem; margin-bottom: 6px; }
.benefit p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 960px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- Productos ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1060px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow); }
.card-img { background: var(--sand-100); aspect-ratio: 1 / 1; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--clay-dark); }
.card-body p { font-size: 1rem; color: var(--ink-soft); flex: 1; }
.price { font-size: 1.45rem; font-weight: 800; color: var(--green-900); margin: 4px 0 14px; }
.price small { font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.card-actions { display: grid; gap: 10px; }
.card-actions .btn { min-height: 50px; font-size: 1.05rem; padding: 10px 16px; }

/* ---------- Sobre nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { background: var(--sand-100); border-radius: var(--radius); padding: 22px; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--green-900); line-height: 1.2; }
.fact span { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { padding-left: 64px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-800); color: var(--white); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Aviso ---------- */
.notice {
  background: var(--sand-100); border-left: 5px solid var(--green-700);
  border-radius: 6px; padding: 18px 22px; font-size: 1rem; color: var(--ink-soft);
}
.notice strong { color: var(--ink); }

/* ---------- Ficha de producto ---------- */
.breadcrumb { font-size: .95rem; color: var(--ink-soft); padding: 22px 0 0; }
.breadcrumb a { color: var(--ink-soft); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; padding: 28px 0 64px; align-items: start; }
.product-gallery { background: var(--sand-100); border-radius: 14px; overflow: hidden; border: 1px solid var(--sand-200); }
.product-info h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.product-info .price { font-size: 2rem; margin: 6px 0 18px; }
.product-info .intro { font-size: 1.15rem; color: var(--ink-soft); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-700); font-size: 1rem; margin-bottom: 18px; }
.stock::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green-700); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.field .hint { font-size: .95rem; color: var(--ink-soft); margin-top: 6px; }
select, input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--ink);
  padding: 13px 14px; min-height: 54px; border-radius: 8px;
  border: 2px solid var(--line); background: var(--white);
}
select:focus, input:focus, textarea:focus { border-color: var(--green-700); outline: none; }
textarea { min-height: 150px; resize: vertical; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.qty button { width: 52px; height: 52px; border: 0; background: var(--sand-100); font-size: 1.5rem; font-weight: 700; color: var(--green-900); cursor: pointer; }
.qty button:hover { background: var(--sand-200); }
.qty input { width: 64px; text-align: center; border: 0; font: inherit; font-size: 1.2rem; font-weight: 700; min-height: 52px; padding: 0; }
.buy-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 6px 0 22px; }
.buy-row .btn { flex: 1; min-width: 220px; }
.mini-benefits { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 1rem; }
.mini-benefits li { display: flex; gap: 10px; align-items: flex-start; }
.mini-benefits svg { width: 22px; height: 22px; flex: none; color: var(--green-700); margin-top: 2px; }
.added-msg { display: none; background: var(--green-100); color: var(--green-900); padding: 12px 16px; border-radius: 8px; font-weight: 600; margin-bottom: 16px; }
.added-msg.show { display: block; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 28px; } }

.details { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding-bottom: 72px; }
.details ul { padding-left: 1.2em; }
.details li { margin-bottom: 6px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 1rem; margin-bottom: 24px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; color: var(--ink-soft); font-weight: 600; }
.size-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.size-table th, .size-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: center; }
.size-table th { background: var(--sand-100); }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-box h3 { font-size: 1.15rem; }
.side-box p, .side-box li { font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 860px) { .details { grid-template-columns: 1fr; } }

/* ---------- Carrito ---------- */
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; padding: 32px 0 72px; }
.cart-items { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 96px; height: 96px; border-radius: 8px; background: var(--sand-100); }
.cart-item h3 { font-size: 1.1rem; margin: 0 0 4px; }
.cart-item .meta { font-size: .95rem; color: var(--ink-soft); }
.cart-item .line-total { font-weight: 800; font-size: 1.15rem; text-align: right; }
.cart-item .qty button { width: 42px; height: 42px; font-size: 1.25rem; }
.cart-item .qty input { width: 46px; min-height: 42px; font-size: 1.05rem; }
.cart-item .remove { background: none; border: 0; color: var(--clay-dark); font: inherit; font-size: .95rem; text-decoration: underline; cursor: pointer; padding: 6px 0; }
.cart-controls { display: flex; gap: 14px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row.total { border-top: 2px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.3rem; font-weight: 800; color: var(--green-900); }
.empty-cart { text-align: center; padding: 56px 20px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) {
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img { width: 72px; height: 72px; }
  .cart-item .line-total { grid-column: 2; text-align: left; }
}

/* ---------- Páginas de texto (legales) ---------- */
.page-head { background: var(--sand-100); border-bottom: 1px solid var(--sand-200); padding: 48px 0 40px; }
.page-head p { color: var(--ink-soft); margin: 0; }
.prose { max-width: 780px; padding: 48px 20px 80px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 1rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--sand-100); }
.updated { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; padding: 48px 0 80px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list svg { width: 26px; height: 26px; flex: none; color: var(--green-800); margin-top: 3px; }
.contact-list strong { display: block; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; margin-bottom: 20px; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--green-800); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--green-900); color: #cfdcd3; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 20px 40px; }
.site-footer h2 { color: var(--white); font-size: 1.15rem; font-family: var(--sans); margin-bottom: 14px; }
.site-footer a { color: #e7efe9; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--white); font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.footer-brand img { width: 40px; height: 40px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 20px; text-align: center; font-size: .95rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Aviso de cookies ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 760px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  padding: 20px 22px; display: none; font-size: 1rem;
}
.cookie-bar.show { display: block; }
.cookie-bar p { margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 46px; padding: 8px 20px; font-size: 1rem; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
