/* ============================================================
   Cimbra Panindícuaro — styles.css
   Paleta: 60% #2D3B2D | 30% #F5F0E8 | 10% #6B7F5E
   ============================================================ */

/* --- Variables --- */
:root {
  --dark:       #2D3B2D;
  --dark-2:     #243024;
  --dark-3:     #1e281e;
  --cream:      #F5F0E8;
  --cream-2:    #EDE6D8;
  --cream-3:    #D4C9B4;
  --accent:     #6B7F5E;
  --accent-h:   #5a6c4e;
  --text-dark:  #1e281e;
  --text-cream: #F5F0E8;
  --text-muted: rgba(245,240,232,0.70);
  --text-muted-dark: rgba(30,40,30,0.65);
  --line-dark:  rgba(245,240,232,0.12);
  --line-cream: rgba(30,40,30,0.12);
  --radius:     8px;
  --radius-lg:  14px;
  --shadow:     0 4px 24px rgba(0,0,0,0.18);
  --transition: 0.22s ease;
  --nav-h:      68px;
  --font:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ol, ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; }

/* --- Contenedor --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 2.5rem);
}

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--dark-3);
  border-bottom: 1px solid var(--line-dark);
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.is-scrolled {
  background: rgba(30,40,30,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 2.5rem);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
}
.nav-brand-main {
  font-size: 1rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.nav-brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--cream); background: var(--line-dark); }

.nav-cta {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dark);
  background: var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  margin-left: 0.5rem;
  transition: background var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-h); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(20,30,20,0.92) 0%, rgba(20,30,20,0.80) 55%, rgba(20,30,20,0.45) 100%),
    linear-gradient(to bottom, rgba(20,30,20,0.50) 0%, transparent 30%, transparent 65%, rgba(20,30,20,0.70) 100%);
}

/* Fondo sólido cuando no hay imagen */
.hero-bg--no-img {
  background: linear-gradient(160deg, var(--dark-3) 0%, var(--dark) 100%);
}
.hero-bg--no-img .hero-img { display: none; }
.hero-bg--no-img .hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 2.5rem);
  background: rgba(18,26,18,0.55);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  margin-left: clamp(1.2rem, 5vw, 3rem);
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8c496;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.50);
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0,0,0,0.60);
}
.hero-title em {
  font-style: normal;
  color: #a8c496;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1rem;
  line-height: 1.6;
  max-width: 56ch;
  text-shadow: 0 1px 6px rgba(0,0,0,0.50);
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.02rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 54ch;
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.hero-desc strong {
  color: #ffffff;
  font-weight: 700;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-trust {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.40);
}
.hero-trust::before {
  content: "✓";
  color: #a8c496;
  font-weight: 800;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: #25D366;
  color: #fff;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  box-shadow: 0 4px 18px rgba(37,211,102,0.30);
}
.btn-primary:hover {
  background: #1fb856;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37,211,102,0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border: 2px solid rgba(245,240,232,0.35);
}
.btn-ghost:hover {
  background: rgba(245,240,232,0.08);
  border-color: var(--cream);
}

.btn-product {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  width: 100%;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.btn-product:hover {
  background: var(--accent-h);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
}
.btn-accent:hover {
  background: var(--accent-h);
  transform: translateY(-1px);
}

.btn-contact {
  background: var(--accent);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 1.1rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px rgba(107,127,94,0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-contact:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(107,127,94,0.45);
}

/* ============================================================
   SECCIONES BASE
   ============================================================ */
.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--dark {
  background: var(--dark);
}

.section--cream {
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.section-title--dark {
  color: var(--dark);
}

.section-desc {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin-inline: auto;
  line-height: 1.65;
}
.section-desc--dark {
  color: var(--text-muted-dark);
}

/* ============================================================
   CATÁLOGO DE PRODUCTOS
   ============================================================ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

.catalog-card {
  background: #fff;
  border: 1.5px solid var(--line-cream);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

@media (hover: hover) {
  .catalog-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transform: translateY(-2px);
  }
}

.catalog-card--muted {
  background: var(--cream);
  border-style: dashed;
}

.catalog-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-cream);
  padding-bottom: 0.75rem;
}

.catalog-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.catalog-period {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted-dark);
  white-space: nowrap;
}

.catalog-use {
  font-size: 0.84rem;
  color: var(--text-muted-dark);
  line-height: 1.5;
  flex: 1;
}

.catalog-consult {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

.catalog-prices {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.catalog-price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.catalog-price-main {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.catalog-price-cash { color: var(--accent); }

.catalog-price-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted-dark);
  line-height: 1.3;
}
.catalog-price-label em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.catalog-price-divider {
  font-size: 1.1rem;
  color: var(--cream-3);
  font-weight: 300;
  align-self: center;
  padding: 0 0.1rem;
}

.catalog-note {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  text-align: center;
  line-height: 1.65;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line-cream);
  max-width: 64ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* ============================================================
   FORMULARIO DE CONSULTA
   ============================================================ */
.consulta-form-wrap {
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 560px;
  margin-inline: auto;
  border: 1px solid var(--line-cream);
}

.consulta-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.consulta-sub {
  font-size: 0.88rem;
  color: var(--text-muted-dark);
  margin-bottom: 1.5rem;
}

.consulta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.consulta-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.consulta-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dark);
}

.consulta-select,
.consulta-textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--dark);
  background: #fff;
  border: 1.5px solid var(--cream-3);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  width: 100%;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.consulta-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7F5E' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

.consulta-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.55;
}

.consulta-select:focus,
.consulta-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107,127,94,0.12);
}

.consulta-select::placeholder,
.consulta-textarea::placeholder { color: var(--text-muted-dark); opacity: 0.6; }

.btn-consulta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  font-family: var(--font);
  font-size: 0.97rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
}
.btn-consulta:hover {
  background: #1fb856;
  transform: translateY(-1px);
}

/* ============================================================
   POR QUÉ CONFIAR
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.trust-card {
  background: rgba(245,240,232,0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--transition), border-color var(--transition);
}

@media (hover: hover) {
  .trust-card:hover {
    background: rgba(245,240,232,0.09);
    border-color: rgba(107,127,94,0.35);
  }
}

.trust-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  flex-shrink: 0;
}
.trust-icon svg { width: 100%; height: 100%; }

.trust-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.trust-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Testimonios */
.testimonials {
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.testimonials-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--cream);
  text-align: center;
  margin-bottom: 2rem;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  background: rgba(245,240,232,0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-text::before {
  content: """;
  font-size: 2.5rem;
  line-height: 0.5;
  vertical-align: -0.5rem;
  color: var(--accent);
  font-style: normal;
  margin-right: 2px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-dark);
}
.testimonial-author strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cream);
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   CÓMO FUNCIONA
   ============================================================ */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
}

.step + .step {
  border-top: 1px solid var(--line-cream);
}

.step-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent);
  min-width: 2.5rem;
  flex-shrink: 0;
  padding-top: 2px;
  letter-spacing: 0.03em;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted-dark);
  line-height: 1.6;
}

.steps-cta {
  text-align: center;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-content {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.contact-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.contact-sub {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.contact-info {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}
.contact-info strong { color: var(--cream); }

.contact-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--accent);
}
.contact-zone strong { color: var(--accent); }

.map-wrapper {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--line-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-3);
  border-top: 1px solid var(--line-dark);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 0.35rem;
}
.footer-brand p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.footer-nav a {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--cream); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.wa-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-float-label {
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}
.wa-float:hover {
  background: #1fb856;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.52);
}

/* ============================================================
   REVEAL ANIMATIONS (fade in on scroll)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}
/* Defensive: elements with data-split stay visible */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   GALERÍA DE CONFIANZA
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.gallery-item--main {
  grid-column: 1 / -1;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: rgba(245,240,232,0.05);
  border: 1px solid var(--line-dark);
}

.gallery-item--main {
  aspect-ratio: 16/7;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .gallery-item:hover .gallery-img { transform: scale(1.04); }
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  padding: 1rem;
  text-align: center;
}
.gallery-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
  opacity: 0.7;
}
.gallery-placeholder span {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.65;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(18,26,18,0.88) 0%, transparent 100%);
  color: rgba(245,240,232,0.92);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 1.5rem 1rem 0.75rem;
  line-height: 1.4;
}

.gallery-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 54ch;
  margin-inline: auto;
  padding-top: 0.5rem;
}

/* Desktop: 4 columnas en la galería */
@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .gallery-item--main {
    grid-column: 1 / -1;
    aspect-ratio: 21/7;
  }
  .gallery-item { aspect-ratio: 4/3; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--dark-3);
    border-bottom: 1px solid var(--line-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
  }
  .nav-menu.is-open { display: flex; }
  .nav-link { font-size: 0.95rem; padding: 0.65rem 0.75rem; }
  .nav-cta { margin: 0.25rem 0 0; text-align: center; padding: 0.75rem; justify-content: center; }
  .nav-toggle { display: flex; }

  .hero-content { padding-inline: clamp(1.2rem, 5vw, 2.5rem); }

  .trust-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Secciones menos altas en tablet */
  .section { padding-block: clamp(2.5rem, 6vw, 5rem); }
  .section-header { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
  .testimonials { padding-top: clamp(1.75rem, 4vw, 3rem); }
  .products-grid { gap: 1rem; }
  .trust-grid { gap: 1rem; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --nav-h: 56px; }

  /* Secciones más compactas */
  .section { padding-block: 2rem; }
  .section-header { margin-bottom: 1.5rem; }
  .section-title { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .section-desc { font-size: 0.9rem; }

  /* Hero compacto */
  .hero { min-height: auto; padding-bottom: 2rem; }
  .hero-content {
    padding: 1.75rem 1.1rem;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-top: 1rem;
  }
  .hero-eyebrow { font-size: 0.7rem; margin-bottom: 0.6rem; }
  .hero-title { font-size: clamp(1.7rem, 8vw, 2.4rem); margin-bottom: 0.75rem; }
  .hero-sub { font-size: 0.92rem; margin-bottom: 0.6rem; }
  .hero-desc { font-size: 0.88rem; margin-bottom: 1.25rem; }
  .hero-trust { font-size: 0.78rem; }

  /* Botones en columna */
  .hero-btns { flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
  .btn-primary, .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Productos */
  .products-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .product-card--wide { grid-column: 1; }
  .product-card { padding: 1.25rem; gap: 0.85rem; }
  .product-name { font-size: 1.1rem; }
  .calc-input { width: 90px; }

  /* Confianza */
  .trust-card { padding: 1.25rem; gap: 0.75rem; }
  .trust-icon { width: 38px; height: 38px; }
  .trust-title { font-size: 1rem; }
  .trust-desc { font-size: 0.88rem; }
  .testimonials { padding-top: 1.5rem; }
  .testimonials-title { font-size: 1.1rem; margin-bottom: 1.25rem; }
  .testimonial-card { padding: 1.1rem; gap: 0.85rem; }
  .testimonial-text { font-size: 0.88rem; }

  /* Pasos */
  .step { gap: 0.85rem; padding: 1.1rem 0; }
  .step-num { min-width: 1.75rem; font-size: 0.9rem; }
  .step-title { font-size: 0.97rem; }
  .step-desc { font-size: 0.86rem; }
  .steps-list { margin-bottom: 2rem; }

  /* Galería */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .gallery-item--main { aspect-ratio: 16/9; }
  .gallery-item { aspect-ratio: 1/1; }
  .gallery-caption { font-size: 0.72rem; padding: 1rem 0.6rem 0.5rem; }
  .gallery-placeholder span { font-size: 0.7rem; }

  /* Contacto */
  .contact-title { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .contact-sub { font-size: 0.9rem; }
  .btn-contact { font-size: 1rem; padding: 0.95rem 1.75rem; }
  .map-wrapper { margin-top: 1.5rem; }

  /* WhatsApp flotante */
  .wa-float-label { display: none; }
  .wa-float { padding: 0.85rem; border-radius: 50%; }

  /* Footer */
  .footer { padding-block: 1.75rem; }
  .footer-inner { flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
  .footer-nav { gap: 0.1rem; }
}

/* Grandes pantallas */
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   SAFARI / IOS FIXES
   ============================================================ */
html { -webkit-overflow-scrolling: touch; }
