html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  font-family: var(--font-sans);
  color: var(--ink-900);
  overflow-x: hidden;
}

a {
  color: var(--cobalt-600);
}

a:hover {
  color: var(--cobalt-700);
}

img {
  max-width: 100%;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--ink-900);
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 10;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Button (Lula design-system "Button" component, lavender/lg/pill) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.btn--lavender {
  background: var(--lavender-500);
  color: var(--slate);
}

.btn--lavender:hover {
  background: var(--lavender-600);
  color: var(--slate);
  transform: translateY(-1px);
}

.btn--lavender:active {
  transform: translateY(1px) scale(0.99);
}

/* ---------- Badge (Lula design-system "Badge" component, cobalt/solid) ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge--cobalt-solid {
  background: var(--cobalt-600);
  color: var(--white);
}

/* ---------- Sparkle decorations ---------- */

.sparkle {
  position: absolute;
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 24px;
}

.section-hero,
.section-cierre {
  position: relative;
  background: linear-gradient(160deg, var(--cobalt-600), var(--cobalt-700));
  padding: 96px 24px 120px;
  text-align: center;
  overflow: hidden;
}

.section-cierre {
  padding: 96px 24px;
}

.hero-inner,
.cierre-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.cierre-inner {
  max-width: 680px;
}

.hero-logo {
  height: 120px;
  margin-bottom: 32px;
}

/* Text fallback shown only if the real logo file (assets/kiosco-logo-*.png) is missing */
.brand-mark {
  display: inline-block;
}

.brand-mark img {
  display: block;
}

.brand-fallback {
  display: none;
  font-family: var(--font-round);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
}

.brand-fallback em {
  font-style: italic;
  font-family: var(--font-accent);
  color: var(--lavender-300);
}

.hero-logo-mark {
  margin-bottom: 32px;
}

.hero-logo-mark .brand-fallback {
  font-size: 34px;
}

.footer-logo-mark .brand-fallback {
  font-size: 18px;
  color: var(--cream);
}

.footer-logo-mark .brand-fallback em {
  color: var(--cream);
}

.hero-title {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08;
  color: var(--white);
  margin: 0 0 28px;
}

.hero-title em {
  font-family: var(--font-accent);
  font-weight: 400;
  font-style: italic;
  color: var(--lavender-300);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.6;
  color: var(--cobalt-100);
  max-width: 580px;
  margin: 0 auto 40px;
}

/* ---------- Problema ---------- */

.section-problema {
  max-width: 880px;
  margin: 0 auto;
}

.problema-title {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  color: var(--ink-900);
  text-align: center;
  margin: 0 0 20px;
}

.problema-copy {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-body);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 44px 32px;
  padding: 20px 12px 12px;
}

.pain-card {
  position: relative;
  padding-top: 22px;
}

.pain-card__back {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-conic-gradient(var(--white) 0% 25%, transparent 0% 50%);
  background-size: 14px 14px;
  border: 2.5px solid var(--lavender-700);
  border-radius: 20px;
}

.pain-card__front {
  position: relative;
  background: #fefcf8;
  border: 2.5px solid var(--lavender-700);
  border-radius: 20px;
  padding: 32px 24px 24px;
}

.pain-card__clip {
  position: absolute;
  top: -24px;
  left: 20px;
}

.pain-card__text {
  font-family: var(--font-round);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-900);
  margin: 0;
  font-weight: 500;
}

/* ---------- Autoridad ---------- */

.section-autoridad {
  background: var(--white);
}

.autoridad-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}

.autoridad-photo {
  border-radius: var(--radius-arch);
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(19, 47, 186, 0.35), 0 8px 20px rgba(19, 47, 186, 0.18);
  aspect-ratio: 4 / 5;
}

.autoridad-eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: var(--tracking-mega);
  text-transform: uppercase;
  font-size: 12px;
  color: var(--cobalt-600);
  margin-bottom: 18px;
}

.autoridad-headline {
  font-family: var(--font-round);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.35;
  color: var(--ink-900);
  margin: 0 0 20px;
}

.autoridad-copy {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 24px;
}

.autoridad-ig {
  text-decoration: none;
  display: inline-block;
  position: relative;
  background: #fefcf8;
  border: 2.5px solid var(--lavender-700);
  border-radius: 20px;
  padding: 12px 22px;
  font-family: var(--font-round);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-900);
  transform: rotate(-1.5deg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Productos ---------- */

.section-productos {
  max-width: 1160px;
  margin: 0 auto;
}

.productos-head {
  text-align: center;
  margin-bottom: 52px;
}

.productos-title {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 38px);
  color: var(--ink-900);
  margin: 0 0 12px;
}

.productos-title span {
  color: var(--lavender-600);
}

.productos-subtitle {
  font-size: 17px;
  color: var(--text-body);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, var(--periwinkle-100), var(--lavender-100));
}

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lavender-700);
  opacity: 0.55;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.product-brand {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--cobalt-600);
  margin-bottom: 4px;
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.product-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
}

.productos-foot {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 40px;
}

/* ---------- FAQ ---------- */

.section-faq {
  background: var(--white);
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

.faq-title {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 38px);
  color: var(--ink-900);
  text-align: center;
  margin: 0 0 48px;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 22px 0;
}

.faq-question {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
}

.faq-question-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-900);
}

.faq-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--cobalt-600);
  transition: transform var(--dur-base) var(--ease-out);
}

.faq-toggle::before {
  width: 16px;
  height: 2.5px;
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  width: 2.5px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-toggle::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-body);
  margin-top: 14px;
}

/* ---------- Footer ---------- */

.site-footer {
  color: var(--cream);
  text-align: center;
  padding: 28px 24px;
  font-size: 13.5px;
  background-color: var(--cobalt-700);
}

.site-footer img {
  height: 57px;
  width: 230px;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .autoridad-inner {
    grid-template-columns: 1fr;
  }

  .autoridad-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .section-hero,
  .section-cierre {
    padding: 72px 20px 88px;
  }

  .section {
    padding: 64px 20px;
  }

  .hero-logo {
    height: 88px;
  }
}
