/* Estilos de la landing, compartidos por / (español) y /en/ (inglés). */

:root {
  --cream: #f7f2e9;
  --card: #fffcf5;
  --border: rgb(203 191 168 / 45%);
  --shadow: rgb(122 100 68 / 12%);
  --text: #374151;
  --stone: #78716c;
  --primary: #0369a1;
  --primary-h: #075985;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 28px 0 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--stone);
  font-family: "Lora", Georgia, serif;
  font-size: 20.8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* La barra de arriba: la marca a la izquierda y el cambio de idioma a la
   derecha, en la misma línea. */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lang-switch {
  color: var(--stone);
  font-size: .95rem;
  text-decoration: none;
}

.lang-switch:hover {
  color: var(--text);
  text-decoration: underline;
}

.brand-mark {
  width: 30px;
  height: 30px;
  margin-right: 5px;
  object-fit: contain;
}

.hero {
  padding: 88px 0 72px;
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(2.35rem, 8vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.claim {
  margin: 18px 0 0;
  color: var(--primary);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 600;
}

.intro {
  max-width: 610px;
  margin: 20px auto 0;
  font-size: 1.2rem;
  line-height: 1.75;
  color: #5b6470;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 30px;
  padding: 0 25px;
  border: 1px solid rgb(3 105 161 / 55%);
  border-radius: 999px;
  background: linear-gradient(to bottom, #0b82bd, var(--primary));
  color: var(--white);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  box-shadow:
    0 5px 13px rgb(3 105 161 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 28%);
  transition: transform .2s ease, background .2s ease, box-shadow .3s ease;
}

.cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(to bottom, #0b76aa, var(--primary-h));
  box-shadow:
    0 7px 17px rgb(3 105 161 / 27%),
    inset 0 1px 0 rgb(255 255 255 / 32%);
}

.cta:focus-visible {
  outline: 3px solid rgb(3 105 161 / 25%);
  outline-offset: 3px;
}

.features {
  padding: 8px 0 0;
}

.features-title {
  margin: 0 0 26px;
  text-align: center;
  color: var(--text);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.35rem, 3.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(to bottom, var(--card), #faf5ec);
  box-shadow: 0 2px 4px var(--shadow);
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgb(3 105 161 / 12%);
  color: var(--primary-h);
}

.feature-icon svg {
  width: 23px;
  height: 23px;
}

.feature-title {
  margin: 0 0 6px;
  color: var(--text);
  font-family: "Lora", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-desc {
  margin: 0;
  color: #55524c;
  font-size: .92rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.section {
  padding-top: 72px;
}

.section-lead {
  max-width: 560px;
  margin: -12px auto 26px;
  text-align: center;
  color: #5b6470;
}

.panel {
  padding: 6px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(to bottom, var(--card), #faf5ec);
  box-shadow: 0 2px 4px var(--shadow);
}

/* «Lo que no hace»: filas con icono al frente, separadas por filete */
.nots-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
}

.nots-row + .nots-row {
  border-top: 1px solid var(--border);
}

.nots-row .feature-icon {
  flex-shrink: 0;
  margin-bottom: 0;
  background: rgb(120 113 108 / 12%);
  color: var(--stone);
}

.nots-row .feature-title {
  margin-bottom: 2px;
}

/* Roadmap: dos listas apiladas, una sola columna */
.roadmap-heading {
  margin: 14px 0 6px;
  color: var(--text);
  font-family: "Lora", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.roadmap-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.roadmap-list li {
  position: relative;
  padding: 5px 0 5px 28px;
  color: #55524c;
  font-size: .95rem;
}

.roadmap-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--stone);
}

.roadmap-list.done li::before {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 2px var(--card);
}

.roadmap-note {
  margin: 18px 0 0;
  text-align: center;
  color: #64605a;
  font-size: .9rem;
}

/* Preguntas frecuentes: <details> nativo, sin JS */
.faq details + details {
  border-top: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid var(--stone);
  border-bottom: 2px solid var(--stone);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq summary:focus-visible {
  outline: 3px solid rgb(3 105 161 / 25%);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq details p {
  margin: -4px 0 16px;
  color: #55524c;
}

.faq a,
.roadmap-note a {
  color: var(--primary);
}

.closing {
  padding-top: 72px;
  text-align: center;
}

.closing .features-title {
  margin-bottom: 0;
}

footer {
  margin-top: 56px;
  text-align: center;
  color: #64605a;
  font-size: .85rem;
}

footer nav {
  margin-top: 6px;
}

/* Sin subrayado en la fila de enlaces (contacto, privacidad, idioma): ya se
   leen como enlaces por estar juntos y separados con «|». El de Nebulosa
   Fermentistas, en medio de la frase de arriba, sí lo conserva. Subrayado
   al pasar el mouse, para que se note que son clicables. */
footer nav a {
  text-decoration: none;
}

footer nav a:hover {
  text-decoration: underline;
}

/* La captura se muestra a su tamaño natural (760px), nunca más ancha que la columna */
.screenshot {
  width: min(100%, 760px);
  margin: 0 auto;
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  /* Sin esquinas ni sombra propias: la imagen ya trae la ventana y el
     teléfono con su sombra, sobre el mismo fondo crema de la página. */
}

/* Carrusel de capturas, solo en móviles: reemplaza a .shot-wide, que a ese
   ancho no se lee. Deslizable con scroll-snap, sin librerías. El margen
   negativo lo lleva hasta los bordes de la pantalla para aprovechar el ancho;
   lo que avisa que hay una segunda imagen son los puntitos. */
.shot-carousel,
.shot-dots {
  display: none;
}

@media (max-width: 600px) {
  .shot-wide {
    display: none !important;
  }

  .shot-carousel {
    display: flex;
    gap: 8px;
    /* Sale hasta el borde de la pantalla: -12px es el margen lateral de
       .page en este mismo breakpoint. Si cambia uno, cambia el otro, o la
       página entera se puede deslizar de lado. */
    margin: 0 -12px;
    padding: 0 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 6px;
    scrollbar-width: none;
  }

  .shot-carousel::-webkit-scrollbar {
    display: none;
  }

  .screenshot .shot-carousel img {
    flex: 0 0 96%;
    width: 96%;
    scroll-snap-align: start;
  }

  /* La primera ocupa todo el ancho, así el teléfono queda centrado en la
     pantalla: con la segunda asomando apenas, alinearla a la izquierda solo
     la descentraba. La segunda conserva el 96% y se alinea a la derecha. */
  .screenshot .shot-carousel img:first-child {
    flex-basis: 100%;
    width: 100%;
  }

  .screenshot .shot-carousel img:last-child {
    scroll-snap-align: end;
  }

  .shot-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .shot-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(120 113 108 / 30%);
    transition: background .2s;
  }

  .shot-dots span.active {
    background: var(--stone);
  }
}

.screenshot figcaption {
  margin-top: 14px;
  text-align: center;
  color: #64605a;
  font-size: .9rem;
}

@media (max-width: 600px) {
  body {
    font-size: .85rem;
  }

  .page {
    width: min(100% - 24px, 760px);
    padding-top: 20px;
  }

  .hero {
    padding: 68px 0 52px;
  }

  .intro {
    font-size: .93rem;
    line-height: 1.7;
  }

  .feature-card {
    padding: 16px 12px;
  }

  .panel {
    padding: 4px 16px;
  }

  .section,
  .closing {
    padding-top: 56px;
  }
}
