/* Portada. Solo la carga index.html. El editor sigue con tienda.css. */

body.shop {
  --sage: #4a6360;
  --sage-deep: #3d524f;
  --sage-soft: #81948b;
  --ink: #2c3836;
  --cream: #faf7f3;
  --paper: #efede7;
  --line: rgba(74, 99, 96, 0.22);
  background: var(--cream);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

body.shop a:focus-visible,
body.shop button:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 6vw;
  background: rgba(250, 247, 243, 0.92);
  backdrop-filter: blur(12px);
}

.wordmark {
  font-family: Cookie, cursive;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--sage);
  font-weight: 400;
}

.site-links {
  display: flex;
  gap: 28px;
}

.site-links a,
.nav-wa {
  font-size: 0.95rem;
  color: var(--sage);
}

.site-links a:hover,
.nav-wa:hover,
.foot-links a:hover {
  color: var(--sage-deep);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-wa {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.hero-home {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 24px;
  min-height: calc(100vh - 78px);
  padding: 18px 6vw 56px;
  overflow: hidden;
  background-color: #f3efe8;
  background-image:
    linear-gradient(90deg, rgba(250, 247, 243, 0.96) 0%, rgba(250, 247, 243, 0.9) 30%, rgba(250, 247, 243, 0.55) 52%, rgba(250, 247, 243, 0.18) 74%, rgba(250, 247, 243, 0.08) 100%),
    url("../cars/fondos/fondo1.jpg");
  background-size: auto, cover;
  background-position: center, 70% center;
  background-repeat: no-repeat;
}

.hero-copy,
.hero-stage {
  position: relative;
  z-index: 1;
}

.script {
  font-family: Cookie, cursive;
  font-weight: 400;
  line-height: 1;
  color: var(--sage-soft);
  margin: 0;
}

.hero-copy .script {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.hero-copy h1 {
  margin: 10px 0 22px;
  font-weight: 300;
  font-size: clamp(2.7rem, 5.4vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--sage-deep);
}

.hero-actions,
.band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-sage,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
}

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

.btn-sage:hover {
  background: var(--sage-deep);
}

.btn-line {
  color: var(--sage);
  border: 1px solid var(--sage);
}

.btn-line:hover {
  background: rgba(74, 99, 96, 0.06);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  color: var(--sage-soft);
  font-size: 0.95rem;
}

.scroll-cue i {
  font-style: normal;
  animation: cue 1.4s ease-in-out infinite;
}

@keyframes cue {
  50% { transform: translateY(5px); }
}

.hero-stage {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.hero-device {
  --sw: 270;
  width: calc(var(--sw) * 1px + 24px);
  height: calc(var(--sw) * 2.17 * 1px + 24px);
  padding: 12px;
  border-radius: 38px;
  background: #1e2a28;
  box-shadow: 0 28px 50px rgba(74, 99, 96, 0.18);
}

.hero-device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #f6f1ea;
}

.hero-device-screen::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 84px;
  height: 16px;
  border-radius: 999px;
  background: #1e2a28;
  transform: translateX(-50%);
}

.hero-device-screen iframe {
  width: 390px;
  height: 844px;
  border: 0;
  transform: scale(calc(var(--sw) / 390));
  transform-origin: top left;
  pointer-events: none;
}

.device-caption {
  margin: 0;
  color: var(--sage-deep);
  font-size: 0.92rem;
  background: rgba(250, 247, 243, 0.86);
  padding: 4px 12px;
  border-radius: 999px;
}

.block {
  padding: 88px 0;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.block-head {
  max-width: 640px;
  margin: 0 auto 46px;
  text-align: center;
}

.block-head .script {
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.block-head h2 {
  margin: 6px 0 0;
  font-weight: 300;
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--sage-deep);
}

.block-head .lead,
.models-meta,
.include p,
.step p,
.perk p,
.faq-answer {
  color: #5e6d6a;
}

.block-head .lead {
  margin: 12px 0 0;
  font-size: 1.05rem;
}

.include-grid,
.perk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px 28px;
}

.perk-grid {
  grid-template-columns: repeat(3, 1fr);
}

.include,
.perk,
.step {
  text-align: center;
}

.include-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--sage);
}

.include-icon svg,
.search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.include h3,
.step h3,
.perk h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
}

.include p,
.step p,
.perk p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

.soft-band {
  background: var(--paper);
  text-align: center;
  padding: 64px 24px;
}

.soft-band p {
  max-width: 28em;
  margin: 0 auto 22px;
  font-weight: 300;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.3;
  color: var(--sage-deep);
}

.band-actions {
  justify-content: center;
}

.models-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 26px;
  font-size: 0.95rem;
}

.models-meta p {
  margin: 0;
}

body.shop .catalog-toolbar {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 18px;
  align-items: flex-end;
}

body.shop .filter-tabs {
  gap: 8px 22px;
}

body.shop .filter-tab,
body.shop .filter-tab:hover,
body.shop .filter-tab.is-active {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 4px 0 6px;
  color: var(--sage-soft);
  font-weight: 500;
}

body.shop .filter-tab:hover,
body.shop .filter-tab.is-active {
  color: var(--sage);
}

body.shop .filter-tab.is-active {
  box-shadow: inset 0 -1px 0 var(--sage);
}

body.shop .tab-badge,
body.shop .filter-tab.is-active .tab-badge {
  background: transparent;
  color: inherit;
  padding: 0;
  font-weight: 500;
  font-size: 0.82rem;
}

body.shop .search-box {
  min-width: 0;
  max-width: 240px;
}

body.shop .search-box input {
  min-height: 40px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 8px 28px 8px 26px;
  color: var(--ink);
}

body.shop .search-box input:focus {
  background: transparent;
  border-color: var(--sage);
  box-shadow: none;
}

body.shop .search-icon {
  left: 0;
  width: 16px;
  height: 16px;
  color: var(--sage-soft);
  display: flex;
}

body.shop .catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 22px;
}

body.shop .card,
body.shop .card:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  transform: none;
}

body.shop .card-preview {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #e7e2da;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(74, 99, 96, 0.12);
  appearance: none;
  font: inherit;
  color: inherit;
}

body.shop .card-preview img.card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

body.shop .card-title {
  margin: 14px 8px 8px;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  color: var(--ink);
}

body.shop .card-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

body.shop .card-links a {
  color: var(--sage);
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.shop .no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 12px;
}

body.shop .no-results .btn {
  display: inline-flex;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--sage);
  border-radius: 999px;
  background: transparent;
  color: var(--sage);
  box-shadow: none;
  font: inherit;
  cursor: pointer;
}

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

.step-no {
  display: block;
  margin-bottom: 8px;
  font-weight: 300;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--sage-soft);
}

.perk {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

body.shop .faq-section {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 88px;
}

body.shop .faq-list {
  gap: 0;
}

body.shop .faq-item,
body.shop .faq-item:hover {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

body.shop .faq-question {
  padding: 18px 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
}

body.shop .faq-icon,
body.shop .faq-item.is-open .faq-icon {
  color: var(--sage);
}

body.shop .faq-answer {
  padding: 0;
  font-size: 0.98rem;
}

body.shop .faq-item.is-open .faq-answer {
  max-height: 24rem;
  padding: 0 0 18px;
}

.site-foot {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}

.site-foot-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.site-foot .wordmark {
  font-size: 2.2rem;
}

.foot-note {
  margin: 4px 0 0;
  color: var(--sage-soft);
  font-size: 0.92rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.foot-links a {
  color: var(--sage);
  font-size: 0.95rem;
}

.legal {
  width: min(1120px, calc(100% - 48px));
  margin: 22px auto 0;
  color: var(--sage-soft);
  font-size: 0.84rem;
}

body.shop .modal-overlay {
  align-items: center;
  padding: 92px 16px 24px;
}

body.shop .phone-mockup-frame {
  height: min(700px, calc(100vh - 140px));
  margin-top: 40px;
  background: #1e2a28;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45), 0 0 0 3px #4a6360;
}

body.shop .modal-top-bar {
  top: -46px;
}

@media (max-width: 1100px) {
  body.shop .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .include-grid,
  .perk-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-links {
    display: none;
  }

  .hero-home {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
    padding-top: 8px;
    background-image:
      linear-gradient(180deg, rgba(250, 247, 243, 0.94) 0%, rgba(250, 247, 243, 0.82) 38%, rgba(250, 247, 243, 0.35) 100%),
      url("../cars/fondos/fondo1.jpg");
    background-position: center, center 30%;
  }

  .hero-actions,
  .scroll-cue {
    justify-content: center;
  }

  .hero-device {
    --sw: 230;
  }

  body.shop .wa-float-btn {
    display: none;
  }

  body.shop .card-links {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

}

@media (max-width: 760px) {
  body.shop .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  body.shop .search-box {
    max-width: none;
  }

  body.shop .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }
}

@media (max-width: 560px) {
  .include-grid,
  .perk-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .block {
    padding: 64px 0;
  }
}

.account-wrap {
  width: min(880px, calc(100% - 48px));
  margin: 36px auto 80px;
}

.account-wrap h1 {
  margin: 8px 0 0;
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--sage-deep);
}

.account-lead {
  margin: 12px 0 0;
  color: #5e6d6a;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
  align-items: start;
}

.account-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.account-card h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 500;
}

.account-card label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.account-card input[type="text"],
.account-card input[type="email"],
.account-card input[type="password"] {
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
  font: inherit;
  color: inherit;
}

.account-card input:focus {
  outline: none;
  border-bottom-color: var(--sage);
}

.account-card .btn-sage,
.account-card .btn-line,
.account-actions .btn-line {
  width: 100%;
  margin-top: 8px;
}

.account-card label.check-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 4px 0 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.check-row input {
  margin-top: 3px;
}

.form-msg {
  min-height: 1.3em;
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.form-msg.is-error {
  color: #9b3d3d;
}

.account-actions {
  max-width: 280px;
  margin-top: 18px;
}

.terms-copy {
  max-width: 68ch;
  margin-top: 22px;
}

.terms-copy h2 {
  margin: 26px 0 8px;
  font-size: 1.15rem;
  font-weight: 500;
}

.terms-copy p,
.terms-copy li {
  color: #3e514e;
}

.terms-copy ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.terms-copy li + li {
  margin-top: 8px;
}

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

@media (prefers-reduced-motion: reduce) {
  .scroll-cue i {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
