/* Melissa landing — branding de la app */
:root {
  --amber:       #C8860A;
  --amber-dark:  #a06808;
  --amber-light: rgba(200,134,10,.12);
  --earth:       #4A3728;
  --cream:       #FDF8EE;
  --warm:        #F5E9D4;
  --card:        #FFFFFF;
  --muted:       #9A8370;
  --border:      #E8DCC8;
  --g:           #2d7a2d;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 4px 24px rgba(74,55,40,.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--earth);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .92rem; font-family: inherit;
  border: none; cursor: pointer; transition: all .18s;
}
.btn--primary { background: var(--amber); color: #fff; }
.btn--primary:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--amber); border: 2px solid var(--amber); }
.btn--outline:hover { background: var(--amber-light); }
.btn--ghost { background: transparent; color: var(--earth); }
.btn--ghost:hover { background: var(--warm); }
.btn--sm { padding: 8px 14px; font-size: .82rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,248,238,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand__icon { width: 32px; height: 32px; border-radius: 7px; }
.brand__icon--sm { width: 24px; height: 24px; border-radius: 5px; }
.brand__name { font-size: 1.25rem; font-weight: 800; color: var(--earth); }
.brand__name--sm { font-size: 1rem; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--earth); font-weight: 600; font-size: .88rem; }
.nav a:hover { color: var(--amber); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--earth); }

/* Selector de idioma */
.lang-select { position: relative; }
.lang-select__btn {
  background: none; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 10px; font-family: inherit; font-weight: 700; font-size: .8rem;
  cursor: pointer; color: var(--earth);
}
.lang-select__menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden; min-width: 130px; z-index: 50;
}
.lang-select__menu.open { display: block; }
.lang-select__menu button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 9px 14px; font-family: inherit; font-size: .85rem; cursor: pointer; color: var(--earth);
}
.lang-select__menu button:hover { background: var(--warm); }

/* ── Hero ── */
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__badge {
  display: inline-block; background: var(--amber-light); color: var(--amber-dark);
  border-radius: 20px; padding: 6px 14px; font-size: .8rem; font-weight: 700; margin-bottom: 18px;
}
.hero__title { font-size: 3rem; font-weight: 800; line-height: 1.12; margin-bottom: 18px; }
.hero__subtitle { font-size: 1.05rem; color: var(--muted); margin-bottom: 28px; max-width: 480px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hero__note { font-size: .8rem; color: var(--muted); }
.hero__visual { display: flex; justify-content: center; }

/* Marco de móvil */
.phone-frame {
  width: 240px; aspect-ratio: 9 / 19; border-radius: 32px;
  background: var(--earth); padding: 10px;
  box-shadow: 0 24px 48px rgba(74,55,40,.25);
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; background: var(--warm); }
.phone-frame--hero { transform: rotate(3deg); }
.phone-frame--empty img { display: none; }
.phone-frame--empty { position: relative; }
.phone-frame--empty::after {
  content: '🐝'; position: absolute; inset: 10px; border-radius: 24px;
  background: linear-gradient(160deg, var(--warm), var(--cream));
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}

/* ── Secciones ── */
.section { padding: 76px 0; }
.section--alt { background: var(--warm); }
.section__title { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.section__subtitle { text-align: center; color: var(--muted); margin-bottom: 44px; font-size: .98rem; }

/* ── Funciones ── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; transition: transform .18s, box-shadow .18s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon { font-size: 1.9rem; margin-bottom: 12px; }
.feature h3 { font-size: .98rem; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: .82rem; color: var(--muted); }

/* ── Capturas ── */
.screens { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.screen-item { text-align: center; }
.screen-item .phone-frame { width: 210px; margin: 0 auto 16px; }
.screen-item figcaption { font-size: .84rem; color: var(--muted); max-width: 220px; margin: 0 auto; }

/* ── Precios ── */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; position: relative;
}
.plan--featured {
  border: 2px solid var(--amber);
  box-shadow: 0 12px 36px rgba(200,134,10,.18);
  transform: scale(1.03);
}
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #fff; border-radius: 14px;
  padding: 4px 16px; font-size: .74rem; font-weight: 700; white-space: nowrap;
}
.plan__name { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.plan__price { font-size: 2.2rem; font-weight: 800; color: var(--amber); margin-bottom: 20px; }
.plan__price span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.plan__features { list-style: none; margin-bottom: 24px; text-align: left; }
.plan__features li {
  font-size: .86rem; padding: 7px 0 7px 26px; position: relative;
  border-bottom: 1px dashed var(--border);
}
.plan__features li:last-child { border-bottom: none; }
.plan__features li::before { content: '✓'; position: absolute; left: 4px; color: var(--g); font-weight: 800; }
.plan .btn { width: 100%; }
.pricing__note { text-align: center; margin-top: 26px; font-size: .78rem; color: var(--muted); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 20px;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: .93rem; padding: 16px 0;
  list-style: none; position: relative; padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--amber); font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 16px; font-size: .87rem; color: var(--muted); }

/* ── Contacto ── */
.contact-form {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .9rem; background: var(--cream); color: var(--earth);
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--amber);
}
.contact-form__status { margin-top: 12px; font-size: .85rem; font-weight: 600; }
.contact-form__status--ok { color: var(--g); }
.contact-form__status--error { color: #b94040; }
.contact-alt { text-align: center; margin-top: 22px; font-size: .87rem; color: var(--muted); }

/* ── Footer ── */
.footer { background: var(--earth); color: var(--cream); padding: 40px 0; }
.footer__inner { text-align: center; }
.footer .brand { justify-content: center; margin-bottom: 8px; }
.footer .brand__name { color: var(--cream); }
.footer__tagline { font-size: .84rem; opacity: .75; margin-bottom: 14px; }
.footer__copy { font-size: .76rem; opacity: .6; }
.footer__copy a { color: var(--cream); text-decoration: underline; }

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 300;
  max-width: 520px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(74,55,40,.25);
  padding: 18px 20px;
}
.cookie-banner p { font-size: .82rem; color: var(--earth); margin-bottom: 14px; }
.cookie-banner__btns { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__visual { margin-top: 12px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .plan--featured { transform: none; }
}
@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px 24px; gap: 14px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header__actions .btn--ghost { display: none; }
  .hero { padding: 48px 0 60px; }
  .hero__title { font-size: 2.2rem; }
  .section { padding: 56px 0; }
  .section__title { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
}
