/* =========================================================
   Ritratto Guatemala — Design System
   Style: modern editorial + vibrant brand pop
   ========================================================= */

:root {
  /* Brand — monochrome (negro / grises / blanco) */
  --ink:        #131313;
  --ink-soft:   #2C2C2C;
  --bg:         #F6F6F4;
  --surface:    #FFFFFF;
  --surface-2:  #ECECE9;
  --muted:      #6B6B6B;
  --line:       #E4E4E0;

  --brand-1:    #2B2B2B;   /* charcoal */
  --brand-2:    #0A0A0A;   /* near black */
  --brand-3:    #141414;   /* dark panel */
  --gold:       #FFC24B;   /* warm accent */

  /* Acento de color (para dar vida, manteniendo logo y botones elegantes) */
  --accent-1:   #FF6A2B;   /* naranja */
  --accent-2:   #E23744;   /* rojo cálido */

  --wa:         #131313;   /* WhatsApp button (mono) */
  --wa-dark:    #000000;

  --grad: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing / radius / shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(23,20,31,.06);
  --shadow-md: 0 12px 30px rgba(23,20,31,.10);
  --shadow-lg: 0 24px 60px rgba(23,20,31,.16);
  --shadow-brand: 0 16px 40px rgba(255,46,99,.22);

  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: #C73A1C;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  min-height: 48px; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ico-wa { width: 20px; height: 20px; fill: currentColor; flex: none; }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn--wa { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--wa:hover { background: var(--ink); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,249,246,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 1.25rem; height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1; gap: 0; }
.brand__script { font-family: "Great Vibes", "Segoe Script", cursive; font-size: 2.25rem; color: var(--ink); line-height: .95; }
.brand__sub { font-family: var(--font-display); font-size: .58rem; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); padding-left: 6px; margin-top: -2px; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a {
  font-weight: 500; color: var(--ink-soft); font-size: .98rem; position: relative; padding: .25rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--grad); transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: .25rem; padding: .6rem 1.15rem; min-height: 44px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 10px; margin-left: auto;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; padding: .5rem 1.25rem 1.25rem; gap: .25rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav__mobile a { padding: .85rem .25rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav__mobile a:last-child { border: 0; margin-top: .5rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,106,43,.09), rgba(226,55,68,.04) 38%, transparent 72%); }
.hero__glow {
  position: absolute; top: -25%; right: -10%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(255,106,43,.30), rgba(226,55,68,.14) 45%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 1rem 0 1.25rem; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 38ch; }
.hero__lead strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero__art > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.hero__collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-auto-rows: 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.hero__collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-md); }
.hero__collage img:first-child { grid-row: 1 / 3; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.5rem clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
}
.stats li { display: flex; flex-direction: column; gap: .15rem; text-align: center; }
.stats__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats__label { font-size: .82rem; color: var(--muted); }

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3.25rem); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: .75rem 0 .5rem; }
.section-head .section-title::after { content: ""; display: block; width: 66px; height: 4px; margin: 16px auto 0; border-radius: 2px; background: var(--grad); }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }

.services { padding: clamp(3rem, 8vw, 6rem) 0; }

/* =========================================================
   SERVICE GRID
   ========================================================= */
.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__num {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  background: var(--grad); color: #fff; padding: .3rem .65rem; border-radius: 999px; letter-spacing: .04em; box-shadow: 0 4px 12px rgba(226,55,68,.35);
}
.card__body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__title { font-size: 1.22rem; }
.card__desc { color: var(--muted); font-size: .94rem; flex: 1; }
.card__cta {
  margin-top: .9rem; width: 100%; padding: .75rem 1rem; min-height: 46px;
}

/* =========================================================
   PROCESS
   ========================================================= */
.process { padding: clamp(3rem, 7vw, 5.5rem) 0; background: linear-gradient(135deg, #FFF4EC 0%, #FFEDF1 55%, #F3EEFF 100%); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem; position: relative; box-shadow: var(--shadow-sm);
}
.step__num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 1.12rem; margin: .5rem 0 .35rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.about__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__copy p { color: var(--ink-soft); margin: 1rem 0 1.5rem; font-size: 1.05rem; }
.about__copy .section-title { text-align: left; }
.about__copy .section-title::after { content: ""; display: block; width: 66px; height: 4px; margin: 16px 0 0; border-radius: 2px; background: var(--grad); }
.checks { display: grid; gap: .7rem; margin-bottom: 2rem; }
.checks li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.4rem; height: 1.4rem;
  border-radius: 50%; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/72% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/72% no-repeat;
}
.about__art img { width: 100%; border-radius: var(--r-xl); }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta__inner {
  background: var(--brand-3); color: #fff; border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4rem); text-align: center; position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 15% 20%, rgba(255,106,43,.38), transparent 42%),
                    radial-gradient(circle at 85% 80%, rgba(226,55,68,.34), transparent 45%),
                    linear-gradient(135deg, #1e1e1e, #0c0c0c);
}
.cta__inner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .65rem; }
.cta__inner p { color: rgba(255,255,255,.82); margin-bottom: 1.75rem; font-size: 1.1rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: #cfcad6; padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--accent-1), var(--accent-2)) 1; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__logo { margin-bottom: 1rem; display: flex; flex-direction: column; line-height: 1; }
.footer__logo .brand__script { color: #fff; }
.footer__logo .brand__sub { color: #b5b5b5; }
.footer__brand p { max-width: 36ch; font-size: .95rem; }
.footer__col h3 { font-size: 1rem; color: #fff; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: .65rem; }
.footer__col a, .footer__col span { color: #cfcad6; font-size: .95rem; transition: color .2s; }
.footer__col a:hover { color: var(--gold); }
.footer__services button {
  background: none; border: 0; color: #cfcad6; padding: 0; text-align: left; font-size: .95rem; transition: color .2s;
}
.footer__services button:hover { color: var(--gold); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #9b96a3; }
.footer__bar-inner a:hover { color: #fff; }

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
  transition: transform .2s var(--ease), box-shadow .2s;
  animation: wa-pop .4s var(--ease) .8s both;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(0,0,0,.42); }
@keyframes wa-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .wa-float { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 440px; margin-inline: auto; }
  .about__inner { grid-template-columns: 1fr; }
  .about__art { max-width: 420px; margin-inline: auto; order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile.is-open { display: flex; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
}
