/* ══════════════════════════════════════════════════════
   styles.css — DestaPue Landing Page
   Estructura:
     1. Variables & Reset
     2. Utilidades (botones, container)
     3. Topbar
     4. Navbar
     5. Hero
     6. Services
     7. Process
     8. Benefits
     9. CTA Section
    10. Footer
    11. Scroll Reveal (clases iniciales)
    12. Galería
    13. Responsive
   ══════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────
   1. VARIABLES & RESET
   ────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:   #0B1F3A;
  --navy2:  #112847;
  --steel:  #1E3A5F;
  --gold:   #C9933A;
  --gold2:  #E8B060;
  --white:  #F5F4F0;
  --gray:   #8A9BB0;
  --light:  #EEF2F7;

  --ff-display: 'DM Serif Display', Georgia, serif;
  --ff-body:    'DM Sans', sans-serif;

  --radius:    6px;
  --radius-lg: 14px;
  --shadow:    0 8px 40px rgba(11,31,58,.18);
  --transition: .25s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* evita scroll horizontal en cualquier sección */
}

body {
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
  max-width: 100vw;
}

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

/* SVG base — tamaño controlado por clase .icon */
svg { display: block; }

/* Clase utilitaria para iconos en botones y tarjetas */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
/* WhatsApp tiene más detalle visual, se ve mejor un poco más grande */
.icon--wa {
  width: 24px;
  height: 24px;
}


/* ──────────────────────────────────────────────────────
   2. UTILIDADES
   ────────────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1160px;
  margin-inline: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform .18s;
}
.btn-primary:hover {
  background: var(--gold2);
  transform: translateY(-2px);
}
.btn-primary--large {
  font-size: 1.1rem;
  padding: 18px 38px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.45);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: .95rem;
  padding: 13px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline:hover {
  border-color: var(--gold2);
  background: rgba(201,147,58,.12);
}
.btn-outline--large {
  font-size: 1.05rem;
  padding: 17px 36px;
}

.section-header        { text-align: center; margin-bottom: 60px; }
.section-header--left  { text-align: left;   margin-bottom: 36px; }

.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-tag--light { color: var(--gold2); }
.section-tag--gold  { color: var(--gold2); }

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }

.section-subtitle {
  font-size: 1rem;
  color: var(--gray);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
}
.section-subtitle--light { color: rgba(255,255,255,.5); }
.section-subtitle--muted { color: rgba(255,255,255,.55); margin-bottom: 44px; }


/* ──────────────────────────────────────────────────────
   3. TOPBAR
   ────────────────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  padding: 9px 0;
  text-align: center;
  letter-spacing: .02em;
}
.topbar strong { color: var(--gold2); }
.topbar a { color: var(--gold2); text-decoration: underline; }


/* ──────────────────────────────────────────────────────
   4. NAVBAR
   ────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy2);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.35); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.logo-icon svg { width: 20px; height: 20px; fill: #fff; }

/* Logo imagen — activa cuando el cliente entregue el archivo */
.logo-img {
  height: 111px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  /* Fondo negro del logo: mezcla screen para que desaparezca en navbar oscuro */
  mix-blend-mode: screen;
}
/* El logo ya incluye "DESTAPUE" — ocultamos el texto duplicado */
.logo .logo-text { display: none; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold2); }

.nav-cta {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--gold2); }


/* ──────────────────────────────────────────────────────
   5. HERO
   ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,147,58,.18) 0%, transparent 70%);
  pointer-events: none;
  overflow: hidden; /* no empuja el layout */
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,147,58,.15);
  border: 1px solid rgba(201,147,58,.35);
  color: var(--gold2);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero-title em { color: var(--gold2); font-style: italic; }

.hero-desc {
  font-size: 1.05rem;
  color: rgba(245,244,240,.7);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-item { text-align: left; }
.stat-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  color: var(--gold2);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hero-visual { display: flex; flex-direction: column; gap: 16px; }

.trust-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.stars        { color: var(--gold2); font-size: 1.1rem; letter-spacing: 2px; }
.rating-num   { font-family: var(--ff-display); font-size: 1.4rem; color: var(--white); }
.rating-count { font-size: .82rem; color: var(--gray); }

.review-list  { display: flex; flex-direction: column; gap: 14px; }
.review-item  { background: rgba(255,255,255,.04); border-radius: 10px; padding: 14px 16px; }
.review-text  { font-size: .88rem; color: rgba(255,255,255,.75); line-height: 1.6; margin-bottom: 10px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--steel);
  display: grid; place-items: center;
  font-size: .78rem; font-weight: 700;
  color: var(--gold2); flex-shrink: 0;
}
.author-name { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.8); }
.author-date { font-size: .75rem; color: var(--gray); }

.urgency-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,147,58,.12);
  border: 1px solid rgba(201,147,58,.3);
  border-radius: 10px;
  padding: 16px 20px;
}
.urgency-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(76,175,80,.25);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(76,175,80,.25); }
  50%       { box-shadow: 0 0 0 7px rgba(76,175,80,.08); }
}
.urgency-text        { font-size: .88rem; color: rgba(255,255,255,.85); }
.urgency-text strong { color: var(--gold2); }


/* ──────────────────────────────────────────────────────
   6. SERVICES
   ────────────────────────────────────────────────────── */
.services {
  padding: 100px 0;
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid #DDE4EE;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  cursor: default;
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--light);
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  transition: background .3s;
}
.service-card:hover .service-icon { background: rgba(201,147,58,.12); }
.service-icon svg {
  width: 26px; height: 26px;
  stroke: var(--navy);
  transition: stroke .3s;
}
.service-card:hover .service-icon svg { stroke: var(--gold); }

.service-name {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-desc { font-size: .9rem; color: var(--gray); line-height: 1.7; }


/* ──────────────────────────────────────────────────────
   7. PROCESS
   ────────────────────────────────────────────────────── */
.process {
  background: var(--navy);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.process::before {
  content: '';
  position: absolute; inset: 0;
  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: 50px 50px;
  pointer-events: none;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 14px);
  right: calc(12.5% + 14px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201,147,58,.2) 100%);
  z-index: 0;
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--steel);
  border: 2px solid rgba(201,147,58,.4);
  display: grid; place-items: center;
  margin: 0 auto 24px;
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--gold2);
  transition: background .3s, border-color .3s, color .3s;
}
.step-card:hover .step-num { background: var(--gold); border-color: var(--gold); color: #fff; }
.step-title { font-family: var(--ff-display); font-size: 1.1rem; color: var(--white); margin-bottom: 10px; }
.step-desc  { font-size: .86rem; color: rgba(255,255,255,.5); line-height: 1.65; }


/* ──────────────────────────────────────────────────────
   8. BENEFITS
   ────────────────────────────────────────────────────── */
.benefits { padding: 100px 0; background: var(--light); }
.benefits-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.benefits-visual {
  background: var(--navy);
  border-radius: 20px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.benefits-visual::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(201,147,58,.12);
  pointer-events: none;
}
.big-number {
  font-family: var(--ff-display);
  font-size: 5rem;
  color: var(--gold2);
  line-height: 1;
  margin-bottom: 8px;
}
.big-label { font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 40px; }
.mini-stats { display: flex; flex-direction: column; gap: 20px; }
.mini-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}
.mini-stat-label { font-size: .88rem; color: rgba(255,255,255,.6); }
.mini-stat-val   { font-weight: 700; color: var(--gold2); font-size: 1.05rem; }

.benefits-list { display: flex; flex-direction: column; gap: 28px; }
.benefit-item  { display: flex; gap: 18px; align-items: flex-start; }
.benefit-check {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(201,147,58,.1);
  display: grid; place-items: center;
  margin-top: 2px;
}
.benefit-check svg {
  width: 18px; height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2.5;
}
.benefit-title { font-family: var(--ff-display); font-size: 1.1rem; color: var(--navy); margin-bottom: 6px; }
.benefit-desc  { font-size: .9rem; color: var(--gray); line-height: 1.65; }


/* ──────────────────────────────────────────────────────
   9. CTA SECTION
   ────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,147,58,.14) 0%, transparent 70%);
  pointer-events: none;
}
.cta-container { position: relative; z-index: 1; }
.cta-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-input {
  flex: 1 1 220px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.18);
  color: #fff;
  font-family: var(--ff-body);
  font-size: .95rem;
  padding: 14px 18px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}
.cta-input::placeholder { color: rgba(255,255,255,.4); }
.cta-input:focus        { border-color: var(--gold2); }
.cta-guarantee { font-size: .82rem; color: rgba(255,255,255,.4); margin-bottom: 36px; }
.cta-guarantee strong { color: rgba(255,255,255,.7); }
.cta-feedback {
  min-height: 22px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: .01em;
}
.cta-feedback.is-error   { color: #FF7070; }
.cta-feedback.is-success { color: #7EE8A2; }
.cta-input.is-error      { border-color: #FF7070; }
.btn-primary.is-loading  { opacity: .7; pointer-events: none; cursor: not-allowed; }
.cta-actions { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }


/* ──────────────────────────────────────────────────────
   10. FOOTER
   ────────────────────────────────────────────────────── */
footer {
  background: #07131F;
  color: rgba(255,255,255,.45);
  padding: 48px 0;
  font-size: .85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { color: rgba(255,255,255,.6); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color var(--transition); }
.footer-links a:hover { color: var(--gold2); }


/* ──────────────────────────────────────────────────────
   11. SCROLL REVEAL — estados iniciales (Anime.js los anima)
   ────────────────────────────────────────────────────── */
.reveal       { opacity: 0; transform: translateY(28px); }
.reveal-left  { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }



/* ──────────────────────────────────────────────────────
   HERO IMAGE CARD
   ────────────────────────────────────────────────────── */
.hero-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: var(--steel);  /* placeholder mientras carga */
}
.hero-img-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.hero-img-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11,31,58,.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201,147,58,.3);
  color: var(--gold2);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
}
.hero-img-badge .urgency-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────
   12. GALERÍA — Photo cards
   ────────────────────────────────────────────────────── */
.gallery {
  padding: 100px 0;
  background: var(--light);
}

/* Grid: card tall izquierda + columna apilada derecha + fila inferior */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
/* La card tall se estira para igualar la columna derecha */
.photo-card--tall {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.photo-card--tall .photo-card__img-wrap {
  flex: 1;
  aspect-ratio: unset;
  min-height: 260px;
}
.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Base de la photo card */
.photo-card {
  background: var(--white);
  border: 1px solid #DDE4EE;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.photo-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* Contenedor de imagen */
.photo-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--steel);  /* placeholder mientras carga */
}
.photo-card--tall .photo-card__img-wrap { aspect-ratio: 4 / 3; }

.photo-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.photo-card:hover .photo-card__img-wrap img { transform: scale(1.04); }

/* Tag superpuesto */
.photo-card__overlay {
  position: absolute;
  top: 14px;
  left: 14px;
}
.photo-card__tag {
  display: inline-block;
  background: rgba(11,31,58,.75);
  backdrop-filter: blur(6px);
  color: var(--gold2);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(201,147,58,.3);
}

/* Cuerpo de texto */
.photo-card__body { padding: 20px 22px 22px; }
.photo-card__title {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.photo-card__desc { font-size: .87rem; color: var(--gray); line-height: 1.6; }

/* Fila inferior: dos cards anchas abarcan una columna cada una */
.photo-card--wide { grid-column: span 1; }


/* ──────────────────────────────────────────────────────
   13. RESPONSIVE
   ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner     { grid-template-columns: 1fr; gap: 40px; }
  .services-grid  { grid-template-columns: 1fr 1fr; }
  .steps-grid     { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .benefits-inner { grid-template-columns: 1fr; }
  .nav-links      { display: none; }
  .gallery-grid   { grid-template-columns: 1fr; }
  .gallery-col    { flex-direction: row; }
}

@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid    { grid-template-columns: 1fr; }
  .hero-stats    { flex-wrap: wrap; gap: 20px; }
  .cta-actions   { flex-direction: column; align-items: center; }
  .gallery-col   { flex-direction: column; }
  .photo-card--tall .photo-card__img-wrap { aspect-ratio: 4 / 3; }

  /* Elementos que pueden desbordar en móvil */
  .hero-orb      { display: none; }
  .hero-inner    { padding: 48px 0; }
  .trust-card    { padding: 20px; }
  .hero-img-card img { height: 180px; }
  .cta-section::before { width: 100vw; left: 0; transform: none; }
}