/* ===========================================================
   Happy Foto — Brand REAL (extraído de elementor-kit-17):
   --e-global-color-8b78346: #00EAC8     (primario marca)
   --e-global-color-e4d2214: #7E7E7E     (texto gris)
   --e-global-color-6db49a1: #000000     (negro)
   --e-global-color-cd85035: #161616     (casi negro)
   --e-global-color-19cc0c3: #F7F7F7     (fondo claro)
   font-family: 'Roboto' (primary) + 'Roboto Slab' (secondary)
   Layout: Mixtiles (clean, pills, alternating sections, big hero)
   =========================================================== */

:root {
  --brand:        #00EAC8;   /* turquesa Happy Foto */
  --brand-deep:   #00C9AB;
  --brand-soft:   #C7FBF1;
  --brand-cream:  #F0FFFB;

  --ink:          #161616;
  --ink-soft:     #333333;
  --text-gray:    #7E7E7E;   /* exact from kit */
  --line:         #ECECEC;
  --bg:           #ffffff;
  --bg-soft:      #F7F7F7;

  --radius:       20px;
  --radius-sm:    12px;
  --maxw:         1200px;
  --shadow-sm:    0 2px 6px rgba(0,0,0,.04), 0 10px 24px rgba(0,0,0,.05);
  --shadow-md:    0 10px 30px rgba(0,0,0,.08), 0 30px 60px rgba(0,0,0,.08);

  --font:         'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, sans-serif;
  --font-head:    'Roboto Slab', 'Roboto', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

button { font: inherit; }

/* ---- Typography ---- */
.eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin: 0 0 14px;
  font-weight: 700;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 .4em;
  color: var(--ink);
}
h1 em, h2 em { font-style: italic; font-weight: 700; color: var(--brand-deep); }

h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 22px; font-family: var(--font); font-weight: 700; line-height: 1.3; }

p  { margin: 0 0 1em; color: var(--text-gray); font-size: 16px; line-height: 1.65; }
p strong { color: var(--ink); }

.dots { color: var(--brand-deep); font-weight: 700; }

/* ---- Buttons (Mixtiles pill) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  text-align: center;
}
.btn--lg    { padding: 18px 34px; font-size: 16px; }
.btn--brand { background: var(--brand); color: var(--ink); }
.btn--brand:hover { background: var(--brand-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,234,200,.4); }
.btn--dark  { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---- Announcement bar ---- */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
}
.announce p { margin: 0; color: inherit; letter-spacing: .02em; }

/* ---- Navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo-img {
  height: 42px;
  width: auto;
  /* Logo es blanco — lo invertimos a negro sobre el header blanco */
  filter: invert(1) brightness(0);
  transition: filter .2s ease;
}

.nav__links {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav__links a { color: var(--ink-soft); transition: color .15s ease; }
.nav__links a:hover { color: var(--brand-deep); }

.nav__cta { padding: 11px 22px; font-size: 14px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: auto 1fr; }
}

/* ---- Hero ---- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 70px 28px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.hero__text h1 { margin-top: 12px; }
.hero__lede {
  font-size: 19px;
  max-width: 520px;
  margin: 22px 0 8px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.hero__lede strong { color: var(--ink); font-weight: 700; }
.hero__copy {
  font-size: 16px;
  max-width: 520px;
  margin: 0 0 26px;
  color: var(--text-gray);
}
.hero__copy strong { color: var(--ink); }

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__muy-facil {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-gray);
}
.hero__muy-facil strong {
  display: inline-block;
  background: var(--brand);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .05em;
  font-size: 13px;
}

/* Hero visual — foto real del producto */
.hero__visual { position: relative; }
.hero__frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.hero__sticker {
  position: absolute;
  top: -18px; right: -18px;
  width: 120px; height: 120px;
  background: var(--brand);
  color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.1;
  text-align: center;
  box-shadow: var(--shadow-md);
  transform: rotate(12deg);
  animation: wiggle 4s ease-in-out infinite;
}
@keyframes wiggle {
  0%,100% { transform: rotate(12deg); }
  50%     { transform: rotate(-6deg); }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 48px; }
  .hero__visual { max-width: 560px; margin: 0 auto; }
  .hero__sticker { right: -10px; top: -10px; width: 100px; height: 100px; font-size: 15px; }
}

/* ---- Benefits (tres iconos — réplica exacta del sitio) ---- */
.benefits {
  background: var(--brand);
  padding: 80px 28px;
}
.benefits__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  align-items: flex-start;
}
.benefit {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  align-items: center;
  color: var(--ink);
}
.benefit__icon {
  width: 70px; height: 70px;
  background: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.benefit__icon svg { width: 38px; height: 38px; }
.benefit p { color: var(--ink); font-size: 15px; margin: 0; line-height: 1.5; }
.benefit p strong { color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .benefits { padding: 48px 24px; }
  .benefits__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- Product (split — réplica de sección real) ---- */
.product {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.product__text h2 { margin-bottom: 20px; }
.product__claim {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 28px;
  line-height: 1.55;
}
.product__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.5;
  object-fit: cover;
}
.frame-picker {
  display: flex;
  gap: 12px;
  margin: 0 0 32px;
}
.frame {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: .04em;
  transition: border-color .2s, transform .15s;
}
.frame:hover { transform: translateY(-1px); }
.frame[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.frame__swatch {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line);
}
.frame--white .frame__swatch { background: #fff; }
.frame--black .frame__swatch { background: #111; border-color: #111; }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 40px; padding: 80px 24px; }
  .product__media { order: -1; }
}

/* ---- Steps (Mixtiles 3-grid) ---- */
.steps {
  background: var(--bg-soft);
  padding: 120px 28px;
}
.steps > .section-head { max-width: var(--maxw); margin-inline: auto; margin-bottom: 64px; }
.steps__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--brand);
  color: var(--ink);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-gray); font-size: 15px; margin: 0; }

@media (max-width: 860px) {
  .steps { padding: 80px 24px; }
  .steps__grid { grid-template-columns: 1fr; }
}

/* ---- Big claim ---- */
.claim {
  background: var(--bg);
  padding: 140px 28px;
  text-align: center;
}
.claim__inner { max-width: 780px; margin: 0 auto; }
.claim h2 em { color: var(--brand-deep); }
@media (max-width: 720px) { .claim { padding: 80px 24px; } }

/* ---- Section head ---- */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { font-size: 17px; color: var(--text-gray); margin-top: 12px; }

/* ---- Gallery ---- */
.gallery {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 28px;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery__grid figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--brand-cream);
  transition: transform .3s ease;
}
.gallery__grid figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery__grid figure:hover { transform: scale(1.02); }
@media (max-width: 720px) {
  .gallery { padding: 80px 24px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- CTA banner (turquesa) ---- */
.cta-banner {
  background: var(--brand);
  padding: 120px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,0,0,.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner::before { top: -100px; left: -50px; }
.cta-banner::after  { bottom: -120px; right: -60px; }
.cta-banner__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-banner h2 { color: var(--ink); margin-bottom: 14px; }
.cta-banner h2 em { color: #fff; }
.cta-banner p { color: var(--ink); opacity: .8; font-size: 18px; margin-bottom: 32px; }

/* ---- FAQ ---- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 28px;
}
.faq__list { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 4px;
}
.faq summary {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
  transition: transform .2s ease;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 14px 0 0;
  color: var(--text-gray);
  font-size: 15.5px;
  line-height: 1.7;
}
@media (max-width: 720px) {
  .faq { padding: 80px 24px; }
  .faq summary { font-size: 16px; }
}

/* ---- Footer (réplica del real: logo + social + 3 links legales) ---- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: 64px 28px 32px;
  font-size: 14px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__logo-img {
  height: 44px;
  /* Logo ya es blanco, perfecto para fondo negro */
}
.footer__social {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .2s, color .2s, border-color .2s;
}
.footer__social a:hover {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--brand);
}
.footer__col a {
  color: rgba(255,255,255,.72);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  transition: color .15s;
}
.footer__col a:hover { color: var(--brand); }
.footer__legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  font-family: 'Roboto', sans-serif;
}
.footer__legal p { color: inherit; margin: 0; }
@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    text-align: center;
    gap: 24px;
  }
  .footer__brand { grid-column: 1 / -1; justify-self: center; }
  .footer__social { justify-content: center; }
  .footer__col { text-align: center; }
}
@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
}
