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

:root {
  --primary: #d63a2f;
  --primary-dark: #b32d24;
  --text: #1a1a1a;
  --text-light: #5a5a5a;
  --bg: #ffffff;
  --bg-alt: #faf7f3;
  --border: #ececec;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --max-w: 1200px;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-head: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.8vw, 2.85rem); }
h3 { font-size: 1.45rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ---------- Logo ---------- */
.logo {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.logo-img-solid {
  display: none; /* natural-color logo only appears once the nav turns white */
}

.logo-fallback {
  display: none; /* shown via inline onerror only if the logo image fails to load */
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.logo-amp {
  color: var(--primary);
  font-size: 1.9rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

/* Red logo over the hero, natural-color logo once scrolled */
.nav .logo-img-hero { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)); }
.nav.scrolled .logo-img-hero { display: none; }
.nav.scrolled .logo-img-solid { display: block; }
.nav:not(.scrolled) .logo-fallback,
.nav:not(.scrolled) .logo-fallback .logo-amp,
.nav:not(.scrolled) .logo-fallback .logo-name { color: #fff; }

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

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
  position: relative;
}

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

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}

.nav-links a:not(.btn):hover { color: var(--primary); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

.nav.scrolled .nav-toggle span { background: var(--text); }

/* Anchor offset so sections don't hide under the fixed nav */
section[id] { scroll-margin-top: 80px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(214, 58, 47, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: var(--text);
  color: white;
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-light:hover {
  background: #fff;
  color: var(--text);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 38px; font-size: 1.05rem; }

/* ---------- Hero (full screen) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #2a2a2a;
  transform: scale(1.08);
  animation: heroZoom 14s var(--ease) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 15, 15, 0.78) 0%, rgba(15, 15, 15, 0.5) 45%, rgba(15, 15, 15, 0.2) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 76px;
}

.hero-content {
  max-width: 760px;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(3rem, 7vw, 6rem);
  margin: 22px 0 28px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* On-load entrance animation */
.hero-content > * {
  opacity: 0;
  transform: translateY(32px);
  animation: heroUp 0.9s var(--ease) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.25s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.55s; }
.hero-content > *:nth-child(4) { animation-delay: 0.7s; }

@keyframes heroUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: heroUp 0.9s var(--ease) 1s forwards;
}

.hero-scroll-mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll-dot {
  width: 3px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  75% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

#productos {
  position: relative;
  background:
    radial-gradient(880px 360px at 50% -6%, rgba(214, 58, 47, 0.07), transparent 70%),
    var(--bg);
}

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

.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-header .eyebrow::before,
.section-header .eyebrow::after {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.65;
}

.section-header h2 { margin-bottom: 16px; }

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ---------- Cards grid ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border: 1px solid var(--border);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.7s var(--ease);
}

.card:hover .card-photo { transform: scale(1.08); }

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.82) 0%, rgba(18, 18, 18, 0.30) 40%, rgba(18, 18, 18, 0) 66%);
  transition: opacity 0.4s var(--ease);
}

.card-cap {
  position: relative;
  z-index: 2;
  padding: 20px 22px;
  color: #fff;
}

.card-cap h3 {
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0;
  max-height: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), max-height 0.35s var(--ease);
}

.card-cta em {
  font-style: normal;
  transition: transform 0.35s var(--ease);
}

.card:hover .card-cta {
  opacity: 1;
  max-height: 30px;
  transform: translateY(0);
}

.card:hover .card-cta em { transform: translateX(5px); }

.card-body { padding: 20px 22px 24px; }
.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---------- Two-col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.two-col h2 { margin-bottom: 22px; }

.two-col p {
  color: var(--text-light);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.bullets {
  list-style: none;
  margin-top: 28px;
}

.bullets li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 500;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 2px;
  background: var(--primary);
}

.img-block {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding: 54px 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #242424 0%, #1a1a1a 55%, #3a201d 135%);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 12%, rgba(214, 58, 47, 0.30), transparent 45%);
  pointer-events: none;
}

.stat {
  text-align: center;
  position: relative;
  transition: transform 0.3s var(--ease);
}

.stat:hover { transform: translateY(-5px); }

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #ff5b4f;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.18), transparent 42%),
              radial-gradient(circle at 12% 92%, rgba(0, 0, 0, 0.20), transparent 40%);
  pointer-events: none;
}

.cta-band .container { position: relative; z-index: 1; }
.cta-band .eyebrow { color: rgba(255, 255, 255, 0.85); }
.cta-band h2 { color: #fff; margin-bottom: 16px; }

.cta-band p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.12rem;
  max-width: 580px;
  margin: 0 auto 32px;
}

.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover {
  background: #1a1a1a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* ---------- Contact ---------- */
.contact-card {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.contact-card h2 { margin-bottom: 14px; }

.contact-lead {
  color: var(--text-light);
  margin-bottom: 36px;
  font-size: 1.1rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}

.contact-info > div {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-info > div:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.contact-info strong::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  vertical-align: -2px;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.contact-info strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-info p + p { margin-top: 8px; }

.contact-info a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.contact-info a:hover { color: var(--primary); }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  background: #111;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer .logo,
.footer .logo .logo-name {
  color: white;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
}

/* ---------- WhatsApp floating ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 62px;
  height: 62px;
  background: var(--whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  z-index: 99;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
  text-decoration: none;
  animation: pulse 2.5s infinite;
}

.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.08);
  animation: none;
}

@keyframes pulse {
  0% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.lightbox.open { opacity: 1; }

.lightbox[hidden] { display: none; }

.lightbox-figure {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease);
}

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

.lightbox-figure figcaption {
  color: white;
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { order: -1; }
  .hero-img { aspect-ratio: 16 / 10; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 12px 0 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links a {
    padding: 14px 24px;
    width: 100%;
  }

  /* Dropdown has a white background, so links stay dark regardless of scroll state */
  .nav-links a:not(.btn),
  .nav:not(.scrolled) .nav-links a:not(.btn) { color: var(--text); }

  .nav-links a:not(.btn)::after { display: none; }

  .nav-links .btn {
    margin: 14px 24px 0;
    justify-content: center;
  }

  .hero { padding: 56px 0 72px; }
  .section { padding: 72px 0; }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }

  .logo-img { height: 38px; }

  .lightbox { padding: 20px; }
  .lightbox-close { top: 16px; right: 16px; }
}
