/* ==========================================================
   GG Deco Art · Landing Page · styles.css
   Paleta: madera oscura (#2a1a0a) + ámbar (#c8871a) + crema (#fffdf5)
   Tipografía: Playfair Display + Inter (igual que base)
   ========================================================== */

:root {
  /* Brand colors — warm artisanal palette */
  --gold: #c8871a;
  /* Amber — accent principal */
  --gold-dark: #a06812;
  /* Amber oscuro — hover */
  --cream: #fffdf5;
  /* Fondo crema cálido */
  --sand: #f5e4c0;
  /* Arena dorada */
  --wood: #3d2010;
  /* Madera oscura */
  --wood-mid: #5c3520;
  /* Madera media */
  --ink: #1e1208;
  /* Tinta muy oscura */
  --muted: #7a6045;
  /* Texto secundario */
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(30, 18, 8, 0.14);
  --shadow-warm: 0 20px 45px rgba(200, 135, 26, 0.15);
  --radius: 18px;

  /* Color aliases para compatibilidad con componentes heredados */
  --green-500: var(--gold);
  --green-600: var(--gold);
  --green-700: var(--gold-dark);
  --green-900: var(--wood);

  --font-display: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 12px;
}

.italic {
  font-style: italic;
}

.section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 55px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-900);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-foot {
  text-align: center;
  margin-top: 45px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: #881e04;
  box-shadow: 0 10px 25px rgba(161, 37, 5, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-outline {
  border: 1.5px solid var(--green-600);
  color: var(--green-700);
  background: transparent;
}

.btn-outline:hover {
  background: var(--green-600);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--green-900);
}

.btn-light:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 6px 25px rgba(5, 81, 39, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.brand-logo:hover {
  opacity: 0.85;
}

/* Footer: logo con fondo claro para que los colores originales sean visibles */
.brand-logo-footer {
  height: 100px;
  width: auto;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  display: block;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a:not(.btn) {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.navbar.scrolled .nav-links a:not(.btn) {
  color: var(--ink);
}

.nav-links a:not(.btn):hover {
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--white);
}

.navbar.scrolled .nav-toggle {
  color: var(--green-900);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    url("images/ilustraciones/WhatsApp Image 2026-09-17 at 10.35.56.jpeg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(10, 6, 2, 0.88) 0%, rgba(30, 18, 5, 0.78) 45%, rgba(15, 10, 5, 0.45) 75%, rgba(0, 0, 0, 0.15) 100%);
}

/* Hero scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2.2s ease infinite;
}

.hero-scroll i {
  font-size: 1.1rem;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
  padding: 0;
  margin-top: 80px;
}

.hero .eyebrow {
  color: var(--sand);
  font-size: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-title .italic {
  color: var(--sand);
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 55px;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--wood);
  padding: 40px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 48px;
  text-align: center;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}

.stat-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* ---------- Galería ---------- */
.galeria {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 14px;
}

.gallery-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card--wide {
  grid-column: span 2;
}

.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 12, 4, 0.88) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Propiedades (legacy - kept for compatibility) ---------- */
.propiedades {
  background: var(--cream);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(5, 81, 39, 0.2);
}

.property-img {
  height: 220px;
  background: #e9e9e9 url("images/aa_frescura.jpg") center/cover no-repeat;
  position: relative;
}

.prop-2 {
  background-image: url("images/aa_campo.jpg");
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--green-600);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 999px;
}

.badge-hot {
  background: var(--gold);
}

.property-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 8px;
}

.property-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-900);
  margin-bottom: 8px;
}

.property-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.property-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--sand);
  padding-top: 18px;
}

/* ---------- Ventajas / Info Nutricional ---------- */
.ventajas {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.feature-item {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px;
  border-top: 3px solid var(--gold);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: var(--green-700);
  color: var(--sand);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.feature-item h4 {
  font-size: 1.15rem;
  color: var(--green-900);
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Contacto ---------- */
.contacto {
  background: var(--cream);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 55px;
  align-items: start;
}

.contacto-info p {
  color: var(--muted);
  margin-bottom: 26px;
}

.contacto-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacto-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.contacto-list i {
  width: 44px;
  height: 44px;
  background: var(--sand);
  color: var(--green-700);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--sand);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
}

.form-group textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--green-700);
  min-height: 1.2em;
}

/* ---------- Proceso ---------- */
.proceso {
  background: var(--cream);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  flex: 1;
  min-width: 170px;
  max-width: 200px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 12px;
}

.step-icon {
  width: 52px;
  height: 52px;
  background: var(--gold);
  color: var(--white);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin: 0 auto 16px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--wood);
  margin-bottom: 10px;
}

.step-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.step-connector {
  width: 32px;
  height: 2px;
  background: var(--sand);
  align-self: center;
  flex-shrink: 0;
  margin-top: -20px;
}

.proceso-nota {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--wood);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 10px;
}

.proceso-nota i {
  color: var(--gold);
  font-size: 1.4rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.proceso-nota p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.proceso-nota strong {
  color: var(--gold);
}

/* ---------- Diferenciadores ---------- */
.diferenciadores {
  background: var(--white);
}

/* ---------- Gabriel — Historia ---------- */
.gabriel {
  background: var(--cream);
}

.gabriel-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.gabriel-img-wrap {
  position: relative;
}

.gabriel-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow);
  display: block;
}

.gabriel-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--gold);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(200, 135, 26, 0.4);
}

.gabriel-content p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.98rem;
  line-height: 1.7;
}

.gabriel-lead {
  font-size: 1.12rem !important;
  color: var(--ink) !important;
  font-weight: 500;
}

.gabriel-quote {
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  margin: 24px 0 0;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--wood);
  line-height: 1.6;
  box-shadow: var(--shadow);
}

.gabriel-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  font-family: var(--font-body);
}

/* ---------- Tags de diseños ---------- */
.contacto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  background: var(--sand);
  color: var(--wood-mid);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(200, 135, 26, 0.25);
  transition: background 0.2s, color 0.2s;
}

.tag:hover {
  background: var(--gold);
  color: var(--white);
}

/* ---------- CTA Banner ---------- */
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.cta-banner {
  background: var(--wood);
  overflow: hidden;
}

.cta-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

/* Columna izquierda */
.cta-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  padding: 64px 56px 64px 7%;
  background:
    linear-gradient(135deg, rgba(61, 32, 16, 0.0) 0%, rgba(20, 10, 3, 0.55) 100%),
    var(--wood);
}

.cta-left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  color: var(--cream);
  line-height: 1.2;
  margin: 0;
}

.cta-left p {
  color: rgba(255, 253, 245, 0.75);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.cta-left .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.4rem;
}

/* Columna derecha: imagen */
.cta-right {
  position: relative;
  overflow: hidden;
}

.cta-img-wrap {
  width: 100%;
  height: 100%;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.cta-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-img-wrap:hover img {
  transform: scale(1.04);
}

/* Degradé de transición izquierda-imagen */
.cta-right::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 0;
  width: 90px;
  background: linear-gradient(to right, var(--wood), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Badge sobre la imagen */
.cta-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(200, 135, 26, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .cta-banner-grid {
    grid-template-columns: 1fr;
  }

  .cta-left {
    padding: 48px 24px;
  }

  .cta-img-wrap {
    min-height: 280px;
  }

  .cta-right::before {
    display: none;
  }
}


/* ---------- Footer ---------- */
.footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 65px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 45px;
}

/* brand-dark: logo image handles its own styling via .brand-logo-footer */
.footer-brand p {
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.7);
}

.footer h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--sand);
}

.social {
  display: flex;
  gap: 12px;
}

.social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--white);
  transition: background 0.2s, color 0.2s;
}

.social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  text-align: center;
}

/* ---------- Animaciones ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE — Mobile-first
   Breakpoints: 480 · 600 · 768 · 900 · 1100
   ========================================================== */

/* ── Tablet ancho (≤ 1100px) ── */
@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-card--featured {
    grid-column: span 2;
  }
}

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {

  /* Navbar */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(300px, 78vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    padding: 100px 32px;
    background: var(--wood);
    transition: right 0.35s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 900;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a:not(.btn),
  .navbar.scrolled .nav-links a:not(.btn) {
    color: var(--white);
    font-size: 1.05rem;
  }

  .nav-cta {
    align-self: flex-start;
  }

  /* Hero */
  .hero-content {
    text-align: center;
    padding: 0 20px;
  }

  .hero-actions {
    justify-content: center;
  }

  /* Galería */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-card--featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-card--wide {
    grid-column: span 2;
  }

  /* Stats */
  .stats-inner {
    gap: 0;
  }

  .stat-item {
    padding: 16px 28px;
  }

  /* Proceso */
  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .step {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .step-connector {
    width: 2px;
    height: 24px;
    margin-top: 0;
  }

  /* Gabriel */
  .gabriel-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gabriel-img {
    aspect-ratio: 4/3;
    max-height: 420px;
  }

  .gabriel-badge {
    bottom: -14px;
    right: 14px;
  }

  /* Contacto */
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Mobile grande (≤ 768px) ── */
@media (max-width: 768px) {

  /* CTA Banner: columnas → filas */
  .cta-banner-grid {
    grid-template-columns: 1fr;
  }

  .cta-left {
    padding: 48px 24px;
    text-align: center;
  }

  .cta-left .cta-actions {
    justify-content: center;
  }

  .cta-img-wrap {
    min-height: 280px;
  }

  .cta-right::before {
    display: none;
  }

  /* Secciones */
  .section {
    padding: 65px 0;
  }

  /* Galería: reduce row height en tablet */
  .gallery-grid {
    grid-auto-rows: 200px;
  }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {

  /* Secciones */
  .section {
    padding: 52px 0;
  }

  /* Hero */
  .hero {
    background-attachment: scroll; /* evita bug en iOS */
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Galería: 1 columna */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-card--featured,
  .gallery-card--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Stats: columna */
  .stats-inner {
    flex-direction: column;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .stat-num {
    font-size: 2.4rem;
  }

  /* Proceso */
  .proceso-nota {
    flex-direction: column;
    padding: 22px;
    gap: 12px;
  }

  /* CTA acciones */
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Formulario */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom p {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  /* Section headings */
  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
}

/* ── Mobile pequeño (≤ 480px) ── */
@media (max-width: 480px) {

  /* Navbar logo */
  .brand-logo {
    height: 36px;
  }

  /* Hero más compacto */
  .hero {
    min-height: 100svh; /* safe area en iOS */
  }

  .hero-content {
    padding: 0 16px;
  }

  /* Galería */
  .gallery-grid {
    grid-auto-rows: 220px;
    gap: 10px;
  }

  /* Stats: fuente más pequeña */
  .stat-num {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Paso a paso */
  .step-num {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  /* CTA banner imagen más corta en móvil muy pequeño */
  .cta-img-wrap {
    min-height: 220px;
  }

  /* Botones full-width */
  .btn-lg {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  /* Lightbox footer texto más pequeño */
  .lightbox-footer p {
    font-size: 0.82rem;
  }
}


/* ==========================================================
   LIGHTBOX
   ========================================================== */

/* Zoom hint icon inside gallery overlay */
.gallery-zoom-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(200, 135, 26, 0.18);
  backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-lightbox-trigger {
  cursor: zoom-in;
}

.gallery-lightbox-trigger:hover .gallery-zoom-hint {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox container */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Frosted-glass backdrop */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 4, 0.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

/* Image wrapper */
.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  max-width: min(90vw, 900px);
  width: 100%;
}

.lightbox-img-wrap {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(200, 135, 26, 0.15);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.is-open .lightbox-img-wrap {
  transform: scale(1);
}

.lightbox-img-wrap img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--ink);
}

/* Caption + counter row */
.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.25rem;
}

.lightbox-footer p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 253, 245, 0.8);
  letter-spacing: 0.01em;
}

.lightbox-counter {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Close button */
.lightbox-close {
  position: fixed;
  top: 1.4rem;
  right: 1.6rem;
  z-index: 2;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid rgba(200, 135, 26, 0.3);
  background: rgba(61, 32, 16, 0.6);
  backdrop-filter: blur(10px);
  color: var(--cream);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: rotate(90deg) scale(1.08);
}

/* Prev / Next navigation */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(200, 135, 26, 0.3);
  background: rgba(61, 32, 16, 0.55);
  backdrop-filter: blur(10px);
  color: var(--cream);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

.lightbox-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 600px) {
  .lightbox-nav { display: none; }
  .lightbox-footer { flex-direction: column; gap: 0.3rem; text-align: center; }
}