/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Fuentes personalizadas ── */
@font-face {
  font-family: 'Garet Book';
  src: url('GaretBook/GaretBook.woff2') format('woff2'),
       url('GaretBook/GaretBook.woff') format('woff'),
       url('GaretBook/GaretBook.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Garet Heavy';
  src: url('GaretHeavy/GaretHeavy.woff2') format('woff2'),
       url('GaretHeavy/GaretHeavy.woff') format('woff'),
       url('GaretHeavy/GaretHeavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens de marca ── */
:root {
  --verde-oscuro:   #27500A;
  --verde-bosque:   #3B6D11;
  --verde-medio:    #639922;
  --verde-claro:    #C0DD97;
  --verde-menta:    #EAF3DE;
  --casi-negro:     #2C2C2A;
  --tierra:         #B4B2A9;
  --crema:          #FAF7F2;
  --blanco:         #FFFFFF;
}

/* ── Base ── */
html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Garet Book', sans-serif;
  background-color: var(--crema);
  color: var(--casi-negro);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6rem 1.5rem 3.5rem;
  position: relative;
  overflow-y: auto;
  text-align: center;
}

/* ── Franja superior de marca ── */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--verde-bosque);
}

/* ── Blobs decorativos ── */
.blob {
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.blob-1 {
  top: -100px; right: -100px;
  width: 360px; height: 360px;
  background: var(--verde-menta);
  opacity: 0.7;
}

.blob-2 {
  bottom: -80px; left: -80px;
  width: 260px; height: 260px;
  background: var(--verde-claro);
  opacity: 0.35;
}

/* ── Header ── */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* ── Tabs ── */
.tabs-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-button {
  font-family: 'Garet Book', sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 3vw, 14px);
  padding: 10px 20px;
  border: 2px solid var(--verde-claro);
  border-radius: 24px;
  background: transparent;
  color: var(--verde-bosque);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background: var(--verde-menta);
  border-color: var(--verde-medio);
}

.tab-button.tab-active {
  background: var(--verde-bosque);
  color: var(--crema);
  border-color: var(--verde-bosque);
}

/* ── Contenedor principal ── */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  box-sizing: border-box;
}

.tab-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.logo-icon {
  width: 48px; height: 48px;
  background: var(--verde-menta);
  border: 2px solid var(--verde-claro);
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-name {
  font-family: 'Garet Heavy', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 8vw, 56px);
  color: var(--verde-bosque);
  letter-spacing: -0.5px;
}

/* ── Badge "Próximamente" ── */
.badge {
  display: inline-block;
  font-family: 'Garet Book', sans-serif;
  font-weight: 400;
  font-size: clamp(10px, 2.5vw, 12px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--verde-oscuro);
  background: var(--verde-menta);
  border: 1px solid var(--verde-claro);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 1.25rem;
}

/* ── Titular principal ── */
h1 {
  font-family: 'Garet Heavy', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.2;
  color: var(--verde-oscuro);
  margin-bottom: 1rem;
}

h1 em {
  color: var(--verde-bosque);
  font-style: normal;
}

/* ── Subtexto (Cuerpo) ── */
.subtext {
  font-family: 'Garet Book', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 3vw, 16px);
  color: var(--casi-negro);
  line-height: 1.7;
  margin: 0 auto 2rem;
  max-width: 380px;
}

/* ── Sección de contacto ── */
.contact-section {
  margin: 2rem 0;
}

.contact-label {
  display: block;
  font-family: 'Garet Book', sans-serif;
  font-weight: 400;
  font-size: clamp(10px, 2.5vw, 12px);
  color: var(--tierra);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* ── Sección de lista de espera ── */
.waitlist-section {
  margin: 2rem 0;
}

.waitlist-section h2 {
  font-family: 'Garet Heavy', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 4vw, 22px);
  color: var(--verde-oscuro);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.waitlist-form input[type="email"],
.waitlist-form input[type="text"],
.waitlist-form select {
  font-family: 'Garet Book', sans-serif;
  font-weight: 400;
  font-size: 14px;
  padding: 12px 16px;
  border: 2px solid var(--verde-claro);
  border-radius: 8px;
  background: var(--blanco);
  color: var(--casi-negro);
  transition: all 0.2s ease;
  outline: none;
}

.waitlist-form input[type="email"]::placeholder,
.waitlist-form input[type="text"]::placeholder {
  color: var(--tierra);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.waitlist-form input[type="email"]:focus,
.waitlist-form input[type="text"]:focus,
.waitlist-form select:focus {
  border-color: var(--verde-bosque);
  background: var(--verde-menta);
  box-shadow: 0 2px 8px rgba(63, 109, 17, 0.1);
}

.waitlist-form button {
  font-family: 'Garet Heavy', sans-serif;
  font-weight: 900;
  font-size: 14px;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  background: var(--verde-bosque);
  color: var(--crema);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.waitlist-form button:hover:not(:disabled) {
  background: var(--verde-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 80, 10, 0.2);
}

.waitlist-form button:active:not(:disabled) {
  transform: translateY(0);
}

.waitlist-form button:disabled {
  cursor: not-allowed;
}

.waitlist-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.waitlist-disclaimer {
  font-family: 'Garet Book', sans-serif;
  font-weight: 400;
  font-size: clamp(11px, 2.5vw, 13px);
  color: var(--tierra);
  margin-top: 0.75rem;
  line-height: 1.5;
  font-style: italic;
}

.waitlist-error {
  font-family: 'Garet Book', sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 2.6vw, 14px);
  color: #B42318;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.mensaje-exito {
  font-family: 'Garet Heavy', sans-serif;
  font-weight: 900;
  font-size: clamp(14px, 3vw, 16px);
  color: var(--verde-oscuro);
  padding: 16px;
  background: var(--verde-menta);
  border: 2px solid var(--verde-claro);
  border-radius: 8px;
  text-align: center;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Sección de contacto ── */

.contact-email {
  display: inline-block;
  font-family: 'Garet Heavy', sans-serif;
  font-weight: 900;
  font-size: clamp(14px, 3vw, 16px);
  color: var(--verde-bosque);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.15s;
}

.contact-email:hover {
  background: var(--verde-menta);
}

/* ── Enlaces sociales ── */
.social-instagram {
  display: block;
  font-family: 'Garet Heavy', sans-serif;
  font-weight: 900;
  font-size: clamp(14px, 3vw, 16px);
  color: var(--verde-bosque);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.15s;
  margin-top: 0.5rem;
}

.social-instagram:hover {
  background: var(--verde-menta);
}

/* ── Divisor ── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--verde-claro);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

/* ── Features ── */
.features {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.feat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Garet Book', sans-serif;
  font-weight: 400;
  font-size: clamp(10px, 2.5vw, 12px);
  color: var(--verde-bosque);
}

.feat-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--verde-medio);
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  font-family: 'Garet Book', sans-serif;
  font-weight: 400;
  font-size: clamp(10px, 2.5vw, 12px);
  color: var(--tierra);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  body {
    padding: 3.5rem 0.75rem 2rem;
  }

  .header {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .tabs-container {
    gap: 0.5rem;
    margin-bottom: 1.75rem;
  }

  .tab-button {
    font-size: 12px;
    padding: 8px 16px;
  }

  .logo {
    margin-bottom: 1.25rem;
    gap: 8px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-icon img {
    width: 36px;
    height: 36px;
  }

  .logo-name {
    font-size: 20px;
  }

  .badge {
    font-size: 9px;
    padding: 3px 10px;
    margin-bottom: 0.75rem;
  }

  h1 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 0.6rem;
  }

  .waitlist-section h2 {
    font-size: 16px;
    margin-bottom: 1rem;
  }

  .waitlist-form {
    gap: 10px;
  }

  .waitlist-form input[type="email"],
  .waitlist-form input[type="text"],
  .waitlist-form select {
    font-size: 13px;
    padding: 10px 14px;
  }

  .waitlist-form button {
    font-size: 13px;
    padding: 12px 20px;
  }

  .mensaje-exito {
    font-size: 14px;
  }

  .subtext {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .contact-section {
    margin: 1.25rem 0;
  }

  .contact-label {
    font-size: 10px;
    margin-bottom: 0.3rem;
    letter-spacing: 0.08em;
  }

  .contact-email {
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 6px;
  }

  .social-instagram {
    font-size: 15px;
    padding: 5px 10px;
    margin-top: 0.3rem;
    border-radius: 6px;
  }

  .divider {
    width: 36px;
    height: 1.5px;
    margin: 0 auto 1rem;
  }

  .features {
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    flex-direction: column;
    align-items: center;
  }

  .feat {
    font-size: 10px;
    gap: 4px;
  }

  .feat-dot {
    width: 5px;
    height: 5px;
  }

  footer {
    font-size: 9px;
    line-height: 1.4;
  }
}

/* ── Ultra-responsive para pantallas muy pequeñas (< 360px) ── */
@media (max-width: 360px) {
  body {
    padding: 3rem 0.5rem 1.5rem;
  }

  .header {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .tabs-container {
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }

  .tab-button {
    font-size: 11px;
    padding: 7px 12px;
  }

  .logo {
    margin-bottom: 1rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-icon img {
    width: 32px;
    height: 32px;
  }

  .logo-name {
    font-size: 18px;
  }

  .badge {
    font-size: 8px;
    padding: 2px 8px;
    margin-bottom: 0.6rem;
  }

  h1 {
    font-size: 16px;
    margin-bottom: 0.5rem;
  }

  .waitlist-section h2 {
    font-size: 14px;
    margin-bottom: 0.75rem;
  }

  .waitlist-form {
    gap: 9px;
  }

  .waitlist-form input[type="email"],
  .waitlist-form input[type="text"],
  .waitlist-form select {
    font-size: 12px;
    padding: 9px 12px;
  }

  .waitlist-form button {
    font-size: 12px;
    padding: 10px 16px;
  }

  .mensaje-exito {
    font-size: 13px;
    padding: 12px;
  }

  .subtext {
    font-size: 12px;
    margin-bottom: 1rem;
  }

  .contact-section {
    margin: 1rem 0;
  }

  .contact-label {
    font-size: 9px;
    margin-bottom: 0.25rem;
  }

  .contact-email,
  .social-instagram {
    font-size: 14px;
    padding: 4px 8px;
  }

  .divider {
    width: 32px;
    margin: 0 auto 0.75rem;
  }

  .features {
    margin-bottom: 1.5rem;
  }

  .feat {
    font-size: 9px;
  }

  footer {
    font-size: 8px;
  }
}
