@font-face {
  font-family: "Belwe";
  src: url("./assets/fonts/Belwe.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: #000;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Avenir", "Nunito Sans", Arial, sans-serif;
  color: rgba(255,255,255,0.88);
  background: #0b0b0b;
}

main {
  padding-top: 1rem;
}


.topbar {
  text-align: center;
  padding: 0.6rem 1rem;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.main-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0 140px;
  pointer-events: none;
}

.main-header .header-inner {
  pointer-events: all;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 0 16px;
  height: 58px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.05);
  transition: background 0.3s ease;
}

.main-header.scrolled .header-inner {
  background: rgba(8, 8, 8, 0.82);
}

/* Logo + nombre */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.nav-brand-name {
  font-family: "Belwe", serif;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.04em;
}

/* Nav central */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-family: "Lato", sans-serif;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}

.nav-links a:hover { color: #fff; }

/* Perfil */
.nav-profile {
  display: flex;
  justify-content: flex-end;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s;
}

.nav-profile:hover { color: #fff; }

.nav-profile svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-label {
  font-family: "Belwe", serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.sub-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11,11,11,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 100%;
  padding: 0.55rem 3.75rem 0.75rem 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease;
}

.sub-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.sub-header-nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.sub-header-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.profile-toggle {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
}

.profile-icon {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 0.95;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section {
  max-width: 100%;
  padding: 3rem 140px;
  box-sizing: border-box;
}

.hero {
  min-height: 40vh;
  display: grid;
  align-items: center;
  padding-top: 0.6rem;
  padding-bottom: 0.35rem;
}

.hero-content h1 {
  font-family: "Belwe", serif;
  font-size: clamp(6rem, 15vw, 12rem);
  margin: 0.1rem 0 0.25rem;
}

.hero-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-subline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(760px, 100%);
  margin: 0 auto;
}

.hero-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.hero-logo {
  width: 294px;
  height: 294px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-content p {
  margin-top: 0.3rem;
  margin-bottom: 0;
}

#shop.section {
  padding-top: 1.25rem;
}

#shop h2 {
  font-size: 1.1rem;
}

#about h2 {
  font-size: 1.1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.btn {
  display: inline-block;
  margin-top: 0.8rem;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
}

.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-head-center {
  justify-content: center;
  text-align: center;
}

.section h2,
.footer h2 {
  font-family: "Belwe", serif;
  letter-spacing: 0.04em;
  margin: 0;
}

#emailInput {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  min-width: 260px;
}

.search-wrap {
  position: relative;
}

/* ── Nueva barra de búsqueda flotante ── */
.search-bar-wrap {
  position: relative;
  max-width: 860px;
  margin: 1.2rem auto 0;
}

.search-bar-glass {
  display: flex;
  align-items: center;
  background: rgba(22,22,24,0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
  overflow: hidden;
  padding: 0 0.5rem;
}

.search-field {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 1rem;
  gap: 0.2rem;
  min-width: 0;
  width: 0;
}

.search-field-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
  cursor: default;
}

.search-field input {
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  outline: none;
  font-size: 0.88rem;
  color: #fff;
  font-family: "Avenir Next", "Avenir", "Nunito Sans", Arial, sans-serif;
  padding: 0.45rem 0.75rem;
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.search-field input:focus {
  border-color: rgba(1,191,153,0.6);
  background: rgba(255,255,255,0.08);
}

.search-field input::placeholder { color: rgba(255,255,255,0.25); }

.search-divider {
  width: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0.6rem 0;
  flex-shrink: 0;
}

.search-bar-btn {
  align-self: flex-end;
  margin: 0 0.4rem 0.7rem 0.5rem;
  padding: 0 1.4rem;
  height: 38px;
  background: #01bf99;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: "Avenir Next", "Avenir", "Nunito Sans", Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
  box-sizing: border-box;
}

.search-bar-btn:hover  { background: #00a885; }
.search-bar-btn:active { transform: scale(0.97); }

/* Sugerencias bajo la nueva barra */
.search-bar-wrap .search-suggestions {
  width: 100%;
  right: 0;
}

@media (max-width: 768px) {
  .search-bar-wrap {
    margin: 0.6rem 0 0;
  }
  .search-bar-glass {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.4rem 0.5rem;
    border-radius: 14px;
    align-items: center;
    gap: 0;
  }
  .search-field {
    padding: 0.3rem 0.4rem;
    gap: 0.15rem;
    flex: 1 1 0;
    width: 0;
    height: auto;
  }
  .search-field-label {
    font-size: 0.62rem;
    color: #888;
  }
  .search-field input {
    font-size: 14px;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    height: 34px;
    box-sizing: border-box;
  }
  .search-divider {
    width: 1px;
    height: 34px;
    margin: 0;
    flex-shrink: 0;
  }
  .search-bar-btn {
    flex: 1 1 100%;
    margin: 0.35rem 0 0.2rem;
    padding: 0.6rem 1rem;
    height: auto;
    font-size: 0.85rem;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 320px;
  background: rgba(18,18,20,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 50;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  opacity: 0;
}

.search-suggestions.is-open {
  max-height: 400px;
  opacity: 1;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(255,255,255,0.05);
}

.suggestion-thumb {
  width: 36px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: #2a2a2c;
}

.suggestion-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.suggestion-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.suggestion-title mark {
  background: rgba(1,191,153,0.25);
  color: #01bf99;
  border-radius: 2px;
  padding: 0 1px;
}

.suggestion-author {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.suggestion-empty {
  padding: 0.9rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

.products-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 198px));
  gap: 1rem;
  justify-content: center;
}

.product-card {
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 0.7rem;
  font-size: 0.5rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: cardFadeIn 0.5s ease both;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-cover-wrap {
  margin: 0 0 0.7rem;
}

.product-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: #2a2a2c;
}

.product-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.55rem;
}

.badge-new {
  background: rgba(1,191,153,0.15);
  color: #01bf99;
}

.badge-used {
  background: rgba(255,179,71,0.15);
  color: #ffb347;
}

.product-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
}

.product-card p {
  margin: 0.15rem 0;
  font-size: 0.65rem;
}

.product-author {
  color: rgba(255,255,255,0.4);
}

.benefits-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.benefits-grid article {
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,0.07);
  padding: 1rem;
}

#about {
  text-align: center;
  background: #0b0b0b;
  color: rgba(255,255,255,0.88);
  max-width: 100%;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.about-head {
  max-width: 760px;
  margin: 0 auto 0.3rem;
  text-align: center;
  padding: 0 1.2rem;
}

#about .benefits-grid article {
  text-align: left;
}

.helper-text {
  min-height: 0;
  color: #236f45;
}

.newsletter {
  text-align: left;
  padding: 2.5rem 140px 2rem;
  width: 100%;
  box-sizing: border-box;
  background: #000;
  color: #fff;
}

.newsletter h2 {
  font-family: "Avenir Next", "Avenir", "Nunito Sans", Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 0.8rem;
  color: #fff;
}

.newsletter-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  margin: 0 0 1.8rem;
  max-width: 480px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  max-width: 480px;
}

.newsletter-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.newsletter-field label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.newsletter-form input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  outline: none;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.newsletter-form input:focus {
  border-bottom-color: #fff;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }

.newsletter-form button {
  border: none;
  background: #fff;
  color: #111;
  padding: 0.7rem 1.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Avenir Next", "Nunito Sans", sans-serif;
  transition: background 0.15s, color 0.15s;
}

.newsletter-form button:hover {
  background: #e8e8e8;
}

.newsletter-form button:hover {
  background: #111;
  color: #fff;
}

.footer {
  padding: 2.5rem 1.2rem 2.5rem;
  text-align: center;
  background: #111;
  color: #fff;
  border-top: none;
  margin-bottom: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.social-btn:hover {
  background: rgba(255,255,255,0.35);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.about-text p {
  max-width: 680px;
  font-family: "Avenir Next", "Avenir", "Nunito Sans", Arial, sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
  padding-top: 0;
  margin: 0 auto;
  text-align: center;
}

.wa-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 100;
  transition: background 0.15s, transform 0.15s;
}

.wa-fab:hover {
  background: #1ebe5d;
  transform: scale(1.07);
}

.wa-fab svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ── Responsive: móvil general (≤ 768px) ── */
@media (max-width: 768px) {

  /* Barra flotante superior */
  .main-header {
    margin: 0 16px;
    top: 12px;
  }
  .main-header .header-inner {
    padding: 0.5rem 0.8rem;
    border-radius: 14px;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
  }
  .nav-brand-name { font-size: 0.82rem; }
  .nav-logo { width: 22px; height: 22px; }
  .nav-links { gap: 0.9rem; justify-content: center; }
  .nav-links a { font-size: 0.72rem; }
  .nav-profile svg { width: 19px; height: 19px; }

  /* Secciones */
  .section {
    padding: 1.2rem 16px;
  }

  /* Hero */
  .hero {
    min-height: unset;
    padding-top: 0.3rem;
    padding-bottom: 0.5rem;
  }
  .hero-logo {
    width: 160px;
    height: 160px;
  }
  .hero-content h1 {
    font-size: 4.8rem;
    margin: 0.1rem 0 0.1rem;
  }

  /* Search */
  .search-wrap {
    width: 100%;
  }
  #searchInput {
    min-width: 0;
    width: 100%;
  }
  .search-suggestions {
    width: 100%;
    right: 0;
    left: 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .section-head-center {
    align-items: center;
    text-align: center;
  }

  /* Cards */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  .product-card h3 {
    font-size: 0.72rem;
  }
  .product-card p {
    font-size: 0.68rem;
  }

  /* Newsletter */
  .newsletter {
    padding: 2rem 1.2rem 1.5rem;
  }
  .newsletter h2 {
    font-size: 1.1rem;
  }
  .newsletter-desc {
    font-size: 0.85rem;
    margin-bottom: 1.4rem;
  }
  .newsletter-form {
    width: 100%;
    max-width: 100%;
    gap: 1rem;
  }
  .newsletter-field {
    width: 100%;
  }
  .newsletter-form input {
    font-size: 16px;
  }
  .newsletter-form button {
    padding: 0.65rem 1.5rem;
    font-size: 0.88rem;
  }
  .newsletter-form input {
    min-width: 0;
    flex: 1;
  }
  .newsletter-form button {
    flex-shrink: 0;
  }

  /* Touch feedback */
  .btn:active,
  .social-btn:active,
  .wa-fab:active {
    opacity: 0.8;
  }
  .suggestion-item {
    padding: 0.8rem 0.9rem;
  }
}

/* ── Responsive: móvil pequeño (≤ 480px) ── */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-logo {
    width: 160px;
    height: 160px;
  }
  .newsletter h2 {
    font-size: 0.9rem;
  }
}

/* ── Fix zoom iOS en buscador ── */
@media (max-width: 768px) {
  #searchInput {
    font-size: 16px;
  }
}

/* ── Tooltip sinopsis (long press) ── */
.synopsis-tooltip {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 360px);
  background: rgba(17,17,17,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.6;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  animation: tooltipIn 0.2s ease;
  pointer-events: none;
}

.synopsis-tooltip strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  font-family: "Belwe", serif;
  letter-spacing: 0.03em;
}

@keyframes tooltipIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
