:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Trebuchet MS", "Segoe UI", "Arial Rounded MT Bold", Arial, sans-serif;

  --bg: #f7ffef;
  --bg-alt: #edf7e7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-soft: #f4fde9;
  --text: #142114;
  --text-soft: #5d695f;
  --line: rgba(20, 33, 20, 0.1);

  --yellow: #ffcb05;
  --yellow-deep: #f2b807;
  --blue: #2a75bb;
  --blue-soft: #62b4ff;
  --green: #7acb74;
  --pink: #ff94c2;
  --orange: #ff914d;
  --red: #ef5350;
  --purple: #9b73ff;

  --accent: var(--yellow);
  --accent-strong: var(--yellow-deep);

  --success: #1b8a53;
  --danger: #d14d4d;

  --shadow-sm: 0 10px 30px rgba(22, 32, 19, 0.08);
  --shadow-md: 0 18px 48px rgba(22, 32, 19, 0.12);
  --shadow-lg: 0 34px 90px rgba(22, 32, 19, 0.18);

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --radius-sm: .75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 2.5rem;
  --radius-pill: 999px;

  --z-skip: 1200;
  --z-header: 1000;

  --ease-standard: 180ms ease;
  --ease-slow: 320ms ease;

  /* Nav menu: siempre oscuro independiente del tema */
  --nav-menu-bg: #111111;
  --nav-menu-text: #ffffff;
  --nav-menu-text-soft: rgba(255, 255, 255, 0.7);
  --nav-menu-line: rgba(255, 255, 255, 0.12);
  --nav-menu-hover: rgba(255, 203, 5, 0.15);
}

html[data-theme="dark"] {
  --bg: #0b100d;
  --bg-alt: #111713;
  --surface: rgba(20, 28, 23, 0.82);
  --surface-strong: #151d18;
  --surface-soft: #18211b;
  --text: #f5f8f3;
  --text-soft: #aeb8b0;
  --line: rgba(245, 248, 243, 0.1);

  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.42);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 203, 5, 0.18), transparent 20%),
    radial-gradient(circle at 85% 10%, rgba(42, 117, 187, 0.16), transparent 16%),
    radial-gradient(circle at 75% 70%, rgba(255, 148, 194, 0.12), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--yellow) 70%, white);
  outline-offset: 3px;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: var(--z-skip);
  padding: .9rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
  transition: top var(--ease-standard);
}

.skip-link:focus {
  top: 1rem;
}

/* ===== LAYOUT ===== */
.container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--surface-soft) 80%, transparent) 100%);
}

.section-divider-top::before,
.section-divider-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 24px;
  background: radial-gradient(circle at 12px 12px, transparent 12px, var(--bg-alt) 13px);
  background-size: 24px 24px;
  opacity: .22;
}

.section-divider-top::before { top: 0; }
.section-divider-bottom::after { bottom: 0; }

/* ===== BG ORBS ===== */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
  opacity: .5;
}

.orb-1 {
  width: 18rem;
  height: 18rem;
  top: -4rem;
  left: -4rem;
  background: rgba(255, 203, 5, .22);
}

.orb-2 {
  width: 16rem;
  height: 16rem;
  right: -3rem;
  top: 20%;
  background: rgba(98, 180, 255, .18);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: .24;
  z-index: 0;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ===== BRAND ===== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-copy {
  display: grid;
  line-height: 1.02;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--text-soft);
}

/* ===== DESKTOP NAV ===== */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  position: relative;
  color: var(--text-soft);
  font-weight: 700;
  transition: color var(--ease-standard);
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--yellow), var(--blue));
  transition: transform var(--ease-standard);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

/* ===== MENU TOGGLE & THEME TOGGLE ===== */
.menu-toggle,
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-pill);
}

.theme-toggle {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.theme-icon--moon { display: none; }
html[data-theme="dark"] .theme-icon--sun { display: none; }
html[data-theme="dark"] .theme-icon--moon { display: inline; }

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: .7rem;
  flex-direction: column;
  gap: .28rem;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--ease-standard), opacity var(--ease-standard);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .9rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 800;
  transition:
    transform var(--ease-standard),
    box-shadow var(--ease-standard),
    border-color var(--ease-standard),
    background var(--ease-standard);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm {
  min-height: 2.7rem;
  padding-inline: 1rem;
}

.btn-full { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  color: #251700;
  box-shadow:
    0 14px 30px rgba(255, 203, 5, .22),
    inset 0 -2px 0 rgba(0,0,0,.08);
}

.btn-secondary,
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

/* ===== EYEBROW ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.eyebrow::before {
  content: "";
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0 46%, #e53935 46% 54%, #111 54% 58%, #fff 58%);
  box-shadow: 0 0 0 4px rgba(255,203,5,.18);
  flex-shrink: 0;
}

/* ===== HERO ===== */
.hero {
  padding-top: var(--space-16);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.hero-text {
  max-width: 62ch;
  color: var(--text-soft);
  margin-top: 1rem;
}

.electric-text {
  position: relative;
  display: inline-block;
  color: var(--blue);
  text-shadow: 0 0 14px rgba(255,203,5,.12);
}

.electric-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .08em;
  width: 100%;
  height: .18em;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--yellow));
  clip-path: polygon(0 50%, 10% 0, 20% 56%, 30% 20%, 42% 74%, 55% 24%, 67% 70%, 78% 35%, 90% 85%, 100% 45%, 100% 100%, 0 100%);
  opacity: .82;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.5rem;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.35rem;
}

.type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .95rem;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: var(--shadow-sm);
}

.type-electric { background: linear-gradient(135deg, rgba(255,203,5,.28), rgba(242,184,7,.18)); }
.type-water { background: linear-gradient(135deg, rgba(98,180,255,.28), rgba(42,117,187,.18)); }
.type-grass { background: linear-gradient(135deg, rgba(122,203,116,.28), rgba(72,163,82,.16)); }
.type-fire { background: linear-gradient(135deg, rgba(255,145,77,.28), rgba(239,83,80,.16)); }
.type-fairy { background: linear-gradient(135deg, rgba(255,148,194,.28), rgba(248,99,173,.14)); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  min-width: 8rem;
  padding: 1rem 1.1rem;
  border-radius: 1.3rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--blue);
}

.stat-card span {
  color: var(--text-soft);
  font-weight: 700;
  font-size: .9rem;
}

/* ===== HERO PHOTO FRAME ===== */
.hero-visual {
  width: 100%;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  width: 100%;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s ease;
}

.hero-photo-frame:hover .hero-photo {
  transform: scale(1.03);
}

.hero-photo-badge {
  position: absolute;
  padding: .72rem .95rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  font-weight: 900;
  font-size: .9rem;
  color: #fff;
  z-index: 2;
}

.hero-photo-badge--top {
  top: 1rem;
  left: 1rem;
}

.hero-photo-badge--bottom {
  bottom: 1rem;
  right: 1rem;
}

/* ===== HERO STRIP ===== */
.hero-strip {
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hero-strip article,
.card,
.collection-card,
.step-card,
.testimonial,
.blog-card,
.contact-card,
.contact-form,
.faq-list,
.showcase-card,
.showcase-panel {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.hero-strip article {
  padding: 1.2rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.hero-strip article::after {
  content: "";
  position: absolute;
  width: 5rem;
  height: 5rem;
  right: -1.8rem;
  top: -1.8rem;
  border-radius: 50%;
  background: rgba(255,203,5,.14);
}

.hero-strip strong {
  display: block;
  margin-bottom: .35rem;
}

.hero-strip span {
  color: var(--text-soft);
}

/* ===== SECTION INTRO ===== */
.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-10);
}

.section-intro--reverse .section-heading { order: 2; }
.section-intro--reverse .section-visual { order: 1; }

.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
  font-size: clamp(1.9rem, 3.5vw, 3.5rem);
}

.section-heading p {
  max-width: 52ch;
  color: var(--text-soft);
  margin-top: 1rem;
}

.section-visual {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ===== REAL SCENE (foto real) ===== */
.real-scene {
  position: relative;
  width: 100%;
  max-width: 30rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.real-scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
}

.real-scene:hover .real-scene-img {
  transform: scale(1.04);
}

.real-scene-badge {
  position: absolute;
  padding: .65rem .9rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(8px);
  font-weight: 900;
  font-size: .85rem;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

.real-scene-badge--tl { top: .9rem; left: .9rem; }
.real-scene-badge--br { bottom: .9rem; right: .9rem; }

/* ===== COLLECTION FILTERS ===== */
.collection-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: .7rem 1rem;
  font-weight: 800;
  transition: transform var(--ease-standard), background var(--ease-standard), border-color var(--ease-standard);
}

.filter-btn:hover { transform: translateY(-2px); }

.filter-btn.is-active {
  background: linear-gradient(135deg, rgba(255,203,5,.32), rgba(98,180,255,.2));
  border-color: rgba(255,203,5,.3);
}

/* ===== COLLECTION GRID ===== */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.collection-card {
  padding: 1.4rem;
  overflow: hidden;
  position: relative;
}

.collection-card::before {
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}

.collection-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
}

.mini-ball {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #f44336 0 47%, #121212 47% 54%, #fff 54%);
  box-shadow: 0 0 0 2px rgba(255,255,255,.14);
}

.collection-electric { background: linear-gradient(180deg, rgba(255,203,5,.22), var(--surface)); }
.collection-water { background: linear-gradient(180deg, rgba(98,180,255,.2), var(--surface)); }
.collection-fairy { background: linear-gradient(180deg, rgba(255,148,194,.18), var(--surface)); }

/* Foto dentro de collection card */
.collection-photo-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}

.collection-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}

.collection-photo-wrap:hover .collection-photo {
  transform: scale(1.05);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .85rem;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.pill-electric { background: rgba(255,203,5,.26); }
.pill-water { background: rgba(98,180,255,.22); }
.pill-fairy { background: rgba(255,148,194,.22); }

.collection-card h3,
.card h3,
.step-card h3,
.blog-card h3,
.showcase-card h3,
.showcase-panel h3,
.contact-card h2,
.faq-question {
  margin: 0 0 .65rem;
}

.collection-card p,
.card p,
.step-card p,
.testimonial p,
.blog-card p,
.showcase-card p,
.showcase-panel p,
.contact-card p,
.footer-copy,
.faq-answer p {
  color: var(--text-soft);
}

.collection-card ul,
.contact-list,
.footer-grid ul,
.showcase-panel ul {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
}

.collection-card li,
.contact-list li,
.showcase-panel li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: .55rem;
  font-size: .95rem;
}

.collection-card li::before,
.contact-list li::before,
.showcase-panel li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -.08rem;
  color: var(--yellow-deep);
  font-size: 1.2rem;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 900;
  color: var(--blue);
}

.text-link:hover { text-decoration: underline; }

/* ===== SHOWCASE GRID ===== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.showcase-card {
  min-height: 20rem;
  padding: 0 0 1.2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.showcase-card--yellow { background: linear-gradient(180deg, rgba(255,203,5,.22), var(--surface)); }
.showcase-card--blue { background: linear-gradient(180deg, rgba(98,180,255,.2), var(--surface)); }
.showcase-card--pink { background: linear-gradient(180deg, rgba(255,148,194,.18), var(--surface)); }

/* Imagen dentro de showcase card */
.showcase-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  flex-shrink: 0;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
}

.showcase-img-wrap:hover .showcase-img {
  transform: scale(1.05);
}

.showcase-card .type-chip {
  margin: .9rem 1.2rem .5rem;
  align-self: flex-start;
}

.showcase-card h3 {
  margin: 0 1.2rem .5rem;
  font-size: 1.05rem;
}

.showcase-card p {
  margin: 0 1.2rem;
  font-size: .9rem;
}

.showcase-panel {
  grid-column: span 3;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(42,117,187,.12), rgba(255,203,5,.1)),
    var(--surface);
}

.panel-header {
  display: flex;
  gap: .45rem;
  margin-bottom: 1rem;
}

.panel-dot {
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text-soft) 40%, transparent);
}

/* ===== BENEFIT GRID ===== */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card { padding: 1.4rem; }

.card-icon {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(255,203,5,.25), rgba(98,180,255,.18));
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.2);
  font-size: 1.3rem;
}

/* ===== STEPS GRID ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: rgba(255,203,5,.12);
}

.step-number {
  display: inline-flex;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--blue);
}

/* ===== GALERÍA MASONRY ===== */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: .75rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .6rem .9rem;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--ease-standard);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* ===== COMMUNITY TRACK ===== */
.community-track {
  overflow: hidden;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.community-track__inner {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: .9rem 1rem;
  animation: marquee 26s linear infinite;
}

.community-track__inner span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .85rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.12);
  font-weight: 800;
  white-space: nowrap;
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.testimonial { padding: 1.45rem; }

.testimonial strong {
  display: inline-block;
  margin-top: .8rem;
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.blog-card {
  padding: 0 0 1.2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  flex-shrink: 0;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}

.blog-img-wrap:hover .blog-img {
  transform: scale(1.05);
}

.blog-card .blog-tag,
.blog-card h3,
.blog-card p {
  margin-left: 1.2rem;
  margin-right: 1.2rem;
}

.blog-card .text-link {
  margin-left: 1.2rem;
}

.blog-tag {
  display: inline-flex;
  margin: .9rem 0 .5rem;
  padding: .4rem .75rem;
  border-radius: var(--radius-pill);
  background: rgba(255,203,5,.22);
  font-size: .84rem;
  font-weight: 900;
}

.blog-card h3 { margin: 0 0 .5rem; font-size: 1rem; }
.blog-card p { margin: 0; font-size: .9rem; }

/* ===== FAQ ===== */
.faq-list { padding: .75rem; }

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  padding: 1rem 2.75rem 1rem .2rem;
  border: none;
  background: none;
  color: var(--text);
  text-align: left;
  font-size: 1rem;
  font-weight: 800;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: .25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.45rem;
}

.faq-question[aria-expanded="true"]::after { content: "–"; }

.faq-answer { padding: 0 .2rem 1rem; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-card,
.contact-form {
  padding: 1.5rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.35rem;
}

/* Mini galería en contacto */
.contact-mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: 1.2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contact-mini-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}

.contact-mini-gallery img:hover {
  transform: scale(1.06);
}

.form-row {
  display: grid;
  gap: .5rem;
  margin-bottom: 1rem;
}

label { font-weight: 800; }

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: .9rem 1rem;
  background: var(--surface-strong);
  color: var(--text);
  transition:
    border-color var(--ease-standard),
    box-shadow var(--ease-standard);
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--text-soft) 68%, transparent);
}

input:focus,
textarea:focus {
  border-color: rgba(255,203,5,.45);
  box-shadow: 0 0 0 4px rgba(255,203,5,.16);
  outline: none;
}

.error {
  min-height: 1rem;
  color: var(--danger);
  font-size: .85rem;
}

.form-status {
  min-height: 1.2rem;
  margin-top: 1rem;
  font-weight: 700;
}

.btn-loading { display: none; }
.contact-form.is-loading .btn-label { display: none; }
.contact-form.is-loading .btn-loading { display: inline; }

/* ===== FOOTER ===== */
.site-footer {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.footer-grid h3 {
  margin-top: 0;
  margin-bottom: .7rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li { margin-bottom: .65rem; }
.footer-grid a:hover { text-decoration: underline; }

.brand-footer {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .75rem;
}

.footer-copy {
  color: var(--text-soft);
  font-size: .92rem;
  max-width: 34ch;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: .9rem;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition:
    opacity .65s cubic-bezier(.2,.8,.2,1),
    transform .65s cubic-bezier(.2,.8,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== TILT CARD ===== */
.tilt-card {
  transform-style: preserve-3d;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.tilt-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,203,5,.24);
}

.is-hidden-by-filter { display: none !important; }

/* ===== ANIMATIONS ===== */
@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================================================
   MOBILE MENU — SIEMPRE OSCURO (#111), AMBOS TEMAS
   ================================================= */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    /* Posicionamiento */
    position: absolute;
    top: calc(100% + .5rem);
    left: 1rem;
    right: 1rem;

    /* Fondo oscuro fijo — igual en light y dark */
    background: #111111 !important;
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);

    display: grid;
    gap: 0;
    padding: .4rem;

    /* Estado cerrado */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(.97);
    transition:
      opacity var(--ease-standard),
      transform var(--ease-standard);
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  /* Links dentro del menú oscuro */
  .site-nav a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 1rem;
    border-radius: var(--radius-md);
    transition: background var(--ease-standard), color var(--ease-standard);
  }

  .site-nav a::after { display: none; }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(255, 203, 5, 0.15);
    color: #ffffff !important;
  }

  .site-nav a.is-current {
    background: rgba(255, 203, 5, 0.2);
    color: var(--yellow) !important;
  }

  .header-actions .btn-secondary {
    display: none;
  }
}

/* ===== RESPONSIVE: 1024px ===== */
@media (max-width: 1024px) {
  .hero-grid,
  .section-intro,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-panel { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .section-intro--reverse .section-heading,
  .section-intro--reverse .section-visual {
    order: initial;
  }
}

/* ===== RESPONSIVE: 768px ===== */
@media (max-width: 768px) {
  .hero,
  .section {
    padding: 3.5rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .section-intro--reverse .section-heading,
  .section-intro--reverse .section-visual {
    order: initial;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .collection-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-panel { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item--tall,
  .gallery-item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .real-scene {
    max-width: 100%;
  }

  .hero-photo-frame {
    aspect-ratio: 4/3;
  }
}

/* ===== RESPONSIVE: 540px ===== */
@media (max-width: 540px) {
  .benefit-grid { grid-template-columns: 1fr; }

  .gallery-masonry {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }

  .contact-mini-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats {
    gap: .65rem;
  }

  .stat-card {
    flex: 1 1 calc(50% - .5rem);
    min-width: unset;
  }
}

/* ===== RESPONSIVE: 480px ===== */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .header-inner {
    min-height: 4.5rem;
  }

  .brand-copy small {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .hero-photo-badge {
    font-size: .78rem;
    padding: .5rem .75rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item--tall,
  .gallery-item--wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  .type-chip {
    font-size: .78rem;
    padding: .45rem .75rem;
  }

  .step-number {
    font-size: 1.6rem;
  }

  .faq-question {
    font-size: .95rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== CORRECCIONES Y MEJORAS ===== */

/* Badges del hero como enlaces */
a.hero-photo-badge {
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease-standard), transform var(--ease-standard);
}

a.hero-photo-badge:hover {
  background: rgba(0, 0, 0, 0.88);
  transform: translateY(-2px);
}

/* Stats sin animación de counter */
.stat-card--text strong {
  font-size: 1.7rem;
}

/* Link de Maps en contacto */
.maps-link {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--ease-standard);
}

.maps-link:hover {
  color: var(--yellow-deep);
}

/* Tip intro del formulario */
.form-intro-tip {
  font-size: .9rem;
  color: var(--text-soft);
  background: linear-gradient(135deg, rgba(255,203,5,.12), rgba(98,180,255,.08));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: .85rem 1rem;
  margin: 0 0 1.2rem;
  line-height: 1.5;
}

.form-intro-tip strong {
  color: var(--text);
}

/* Footer dev credit */
.footer-dev {
  width: 100%;
  text-align: center;
  margin-top: .25rem;
  color: var(--text-soft);
  font-size: .85rem;
}

.dev-link {
  color: var(--yellow-deep);
  font-weight: 800;
  text-decoration: none;
  transition: color var(--ease-standard), opacity var(--ease-standard);
}

.dev-link:hover {
  opacity: .8;
  text-decoration: underline;
}