@import url("basketouch-tokens.css");

/* ===== COMING SOON GATE — borra este bloque completo para volver a publicar el sitio ===== */
body {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg) url("/imagen-corporativa/marca/logo-horizontal.webp") no-repeat center 42%;
  background-size: 220px auto;
}

body::after {
  content: "Próximamente";
  position: fixed;
  top: 58%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
/* ===== FIN COMING SOON GATE ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}

.container-wide {
  width: min(var(--container-wide), calc(100% - 2rem));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  padding: 1.25rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header .container,
.site-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: var(--bg-elevated);
}

.nav-toggle-icon {
  width: 1.25rem;
  height: 1.25rem;
}

body.nav-menu-open {
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: auto;
  height: 52px;
  max-width: min(360px, 72vw);
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: none;
  border: none;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .container,
.site-footer .container-wide {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

/* —— Home —— */

.hero-band {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
}

.hero-copy {
  max-width: 34rem;
}

.hero-copy .hero-actions {
  justify-content: flex-start;
}

.hero-media {
  margin: 0;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-heading {
  margin: 0 0 1.75rem;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.products-strip {
  padding: 3.5rem 0;
}

.products-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.products-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.1rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.products-list-item.is-soon {
  background: var(--bg-elevated);
  border-style: dashed;
  opacity: 0.85;
}

.products-list-item h3 {
  margin: 0.35rem 0 0;
  font-size: 1rem;
}

.products-list-item p {
  margin: 0;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.products-list-item a {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.products-list-item a:hover {
  color: var(--accent-hover);
}

.gallery-section {
  padding: 3.5rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.photo-gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.photo-gallery-item-wide {
  grid-column: span 2;
  aspect-ratio: 8 / 3;
}

.photo-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-gallery-item-top img {
  object-position: 50% 20%;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}

.hero .hero-lead {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero .hero-meta {
  margin: 1rem auto 0;
  max-width: 38rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.hero-actions .btn {
  min-width: 10.5rem;
}

.product-line-badge {
  align-self: flex-start;
  margin-bottom: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.product-line-badge.is-live {
  color: #166534;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.product-line-badge.is-beta {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.about-section {
  padding: 3.5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.about-founder-photo {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.about-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.founder-block {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.founder-block h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
}

.founder-block p {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
}

.founder-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.founder-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 600;
}

.portfolio-intro {
  padding: 3rem 0 0;
}

.portfolio-section {
  padding: 2rem 0 4rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.portfolio-card.is-soon {
  border-style: dashed;
  opacity: 0.85;
}

.portfolio-thumb {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-thumb-icon {
  font-size: 2.5rem;
}

.portfolio-thumb-nopiques {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.portfolio-thumb-vueltas {
  background: linear-gradient(135deg, #292524, #57534e);
}

.portfolio-thumb-geo {
  background: linear-gradient(135deg, #052e16, #14532d);
}

.portfolio-thumb-analyst {
  background: linear-gradient(135deg, #4338ca, #a855f7);
}

.portfolio-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.2rem 1.3rem;
}

.portfolio-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.portfolio-body p {
  margin: 0;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.portfolio-body a {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.portfolio-body a:hover {
  color: var(--accent-hover);
}

.contact-section {
  padding: 0 0 4rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.contact-section .container {
  padding-top: 3rem;
}

.contact-card {
  padding: 2.25rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.contact-card p {
  margin: 0 auto 0.85rem;
  max-width: 34rem;
  color: var(--text-muted);
}

.contact-card a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-cta {
  margin-top: 1.25rem;
  min-width: 11rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  margin-top: 0;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.1rem;
}

.legal-page h3 {
  margin-top: 1.75rem;
  font-size: 1rem;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page strong {
  color: var(--text);
}

.legal-subtitle {
  margin: -0.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-page section {
  margin-bottom: 1.75rem;
}

.legal-divider {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.legal-locale-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-subtle);
  color: var(--text);
}

.legal-index-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-index {
  padding: 3rem 0 4rem;
}

.legal-index h1 {
  margin-top: 0;
}

.legal-index-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.legal-index-list li {
  margin-bottom: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  color: var(--text);
  border-color: rgba(24, 24, 27, 0.18);
}

body.has-cookie-banner {
  padding-bottom: 5.5rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(24, 24, 27, 0.08);
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  max-width: 42rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-cookie:hover {
  background: var(--accent-hover);
}

.btn-cookie-secondary {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-cookie-secondary:hover {
  background: var(--bg-subtle);
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 2.5rem;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  .hero-copy .hero-actions {
    justify-content: center;
  }

  .products-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-gallery-item-wide {
    grid-column: span 2;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-founder {
    text-align: center;
  }

  .about-founder-photo {
    margin: 0 auto;
  }

}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    z-index: 900;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .site-header .container,
  .site-header .container-wide {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .photo-gallery-item-wide {
    grid-column: span 1;
  }

  .products-list {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    padding: 0.35rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .nav a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    color: var(--text);
  }

  .nav a:hover {
    background: var(--bg-subtle);
    color: var(--accent);
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .btn-cookie {
    flex: 1;
  }
}
