/* ═══════════════════════════════════════════════════════════════
   ViveStone — Cuarzos y Sinterizados Premium
   Stylesheet — v1.0
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────────── */
:root {
  --primary:        #2BBFBF;
  --primary-dark:   #1FA8A8;
  --primary-light:  #e8f9f9;
  --dark:           #1A3140;
  --dark-bg:        #0D1B2A;
  --white:          #FFFFFF;
  --off-white:      #F8F9FA;
  --gray-light:     #F1F3F5;
  --gray-mid:       #6C757D;
  --gray-dark:      #343A40;
  --whatsapp:       #25D366;
  --instagram:      #E4405F;

  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;

  --radius:         12px;
  --radius-sm:      8px;
  --shadow:         0 4px 24px rgba(0,0,0,0.08);
  --shadow-md:      0 8px 40px rgba(0,0,0,0.12);
  --shadow-lg:      0 16px 60px rgba(0,0,0,0.18);
  --transition:     0.3s ease;
  --nav-height:     72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
address { font-style: normal; }

/* ── Container ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

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

.section-header h2 { margin-bottom: 16px; }
.section-header p  { color: var(--gray-mid); font-size: 1.05rem; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43,191,191,0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

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

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: filter var(--transition);
}
.navbar.scrolled .nav-logo img { filter: none; }

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

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(43,191,191,0.08);
}
.navbar.scrolled .nav-link { color: var(--dark); }
.navbar.scrolled .nav-link:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-cta {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.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-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,27,42,0.80) 0%,
    rgba(13,27,42,0.55) 60%,
    rgba(13,27,42,0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
  max-width: 740px;
}

.hero-tag {
  display: inline-block;
  background: rgba(43,191,191,0.2);
  border: 1px solid rgba(43,191,191,0.5);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.highlight { color: var(--primary); }

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: bounceDown 2s infinite;
}
.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════════════════════════
   NOSOTROS
   ═══════════════════════════════════════════════════════════════ */
.nosotros {
  padding: 100px 0;
  background: var(--white);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.nosotros-image {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}
.nosotros-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.nosotros-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.nosotros-badge .badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.nosotros-badge .badge-txt {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 4px;
}

.nosotros-text { padding-left: 16px; }
.nosotros-text h2 { margin-bottom: 20px; }
.nosotros-text p  { color: var(--gray-mid); margin-bottom: 16px; }

.nosotros-stats {
  display: flex;
  gap: 32px;
  margin: 32px 0 36px;
  padding: 28px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.stat-item { text-align: center; }
.stat-item .stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-mid);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCTOS
   ═══════════════════════════════════════════════════════════════ */
.productos {
  padding: 100px 0;
  background: var(--off-white);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 28px;
  border-radius: 100px;
  border: 2px solid var(--gray-light);
  background: var(--white);
  color: var(--gray-mid);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.producto-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.producto-card.hidden {
  display: none;
}

.producto-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.producto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.producto-card:hover .producto-img img { transform: scale(1.06); }

.badge-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.badge-cat.cuarzo      { background: var(--primary); color: var(--white); }
.badge-cat.sinterizado { background: var(--dark); color: var(--white); }

.producto-info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.producto-info h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--dark);
}
.btn-cotizar {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  transition: var(--transition);
}
.btn-cotizar:hover { color: var(--primary-dark); letter-spacing: 0.02em; }

/* ═══════════════════════════════════════════════════════════════
   POR QUÉ NOSOTROS
   ═══════════════════════════════════════════════════════════════ */
.porque {
  padding: 100px 0;
  background: var(--dark-bg);
}
.porque .section-tag { color: var(--primary); }
.porque h2 { color: var(--white); }

.porque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.porque-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.porque-card:hover {
  background: rgba(43,191,191,0.08);
  border-color: rgba(43,191,191,0.3);
  transform: translateY(-4px);
}

.porque-icon {
  width: 52px;
  height: 52px;
  background: rgba(43,191,191,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.porque-icon svg { width: 26px; height: 26px; }

.porque-card h3 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1rem;
}
.porque-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   GALERÍA
   ═══════════════════════════════════════════════════════════════ */
.galeria {
  padding: 100px 0;
  background: var(--white);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.galeria-item--large {
  grid-column: span 2;
}

.galeria-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.galeria-item--large { aspect-ratio: 16/9; }

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.galeria-item:hover img { transform: scale(1.05); }

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-overlay span {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.galeria-cta {
  text-align: center;
  margin-top: 48px;
}
.galeria-cta p {
  color: var(--gray-mid);
  margin-bottom: 16px;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════════════════════════════ */
.contacto {
  padding: 100px 0;
  background: var(--off-white);
}

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

/* Form */
.contacto-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group:last-of-type { margin-bottom: 24px; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}
.form-group label span { color: var(--primary); }

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43,191,191,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #adb5bd; }

.form-legal {
  font-size: 0.78rem;
  color: var(--gray-mid);
  margin-top: 12px;
  text-align: center;
}
.form-legal a {
  color: var(--primary);
  font-weight: 500;
}
.form-legal a:hover { text-decoration: underline; }

.form-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  display: none;
}
.form-msg.success {
  background: #d1fae5;
  color: #065f46;
  display: block;
}
.form-msg.error {
  background: #fee2e2;
  color: #991b1b;
  display: block;
}

/* Info */
.contacto-info { display: flex; flex-direction: column; gap: 0; }

.info-items { margin-bottom: 28px; }

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-light);
}
.info-item:last-child { border-bottom: none; }

.info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.info-icon svg { width: 22px; height: 22px; }

.info-item h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
}
.info-item p { font-size: 0.9rem; color: var(--gray-mid); line-height: 1.5; }
.info-item a { color: var(--gray-mid); transition: color var(--transition); }
.info-item a:hover { color: var(--primary); }

.btn-whatsapp-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  transition: background var(--transition), transform var(--transition);
}
.btn-whatsapp-big:hover {
  background: #20b958;
  transform: translateY(-2px);
}

.mapa {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mapa iframe { display: block; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,0.6);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
}
.social-link:hover { transform: translateY(-3px); }
.social-link.whatsapp:hover  { background: var(--whatsapp); color: var(--white); }
.social-link.instagram:hover { background: var(--instagram); color: var(--white); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--primary); }

.footer-col address p {
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.55);
}
.footer-col address a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col address a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   WHATSAPP FAB
   ═══════════════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fabPulse 3s infinite;
}
.whatsapp-fab svg { width: 28px; height: 28px; }
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  animation: none;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════════════════ */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════════
   STAT COUNTER ANIMATION
   ═══════════════════════════════════════════════════════════════ */
.stat-item .stat-num,
.nosotros-badge .badge-num {
  transition: opacity 0.3s;
}

/* ═══════════════════════════════════════════════════════════════
   PORQUE CARDS — floating animation
   ═══════════════════════════════════════════════════════════════ */
.porque-card:nth-child(1) { animation: float 6s ease-in-out infinite; }
.porque-card:nth-child(2) { animation: float 6s ease-in-out 1.5s infinite; }
.porque-card:nth-child(3) { animation: float 6s ease-in-out 3s infinite; }
.porque-card:nth-child(4) { animation: float 6s ease-in-out 4.5s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.porque-card:hover { animation: none; }

/* ═══════════════════════════════════════════════════════════════
   PRODUCT FILTER — smooth transition
   ═══════════════════════════════════════════════════════════════ */
.producto-card {
  transition: transform var(--transition), box-shadow var(--transition),
              opacity 0.35s ease, scale 0.35s ease;
}
.producto-card.hiding {
  opacity: 0;
  scale: 0.95;
  pointer-events: none;
}
.producto-card.showing {
  opacity: 1;
  scale: 1;
}

/* ═══════════════════════════════════════════════════════════════
   HERO — word highlight shimmer
   ═══════════════════════════════════════════════════════════════ */
.highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--primary) 0%, #5ee7e7 50%, var(--primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

/* ═══════════════════════════════════════════════════════════════
   GALERÍA — item scale-in on load
   ═══════════════════════════════════════════════════════════════ */
.galeria-item {
  animation: scaleIn 0.6s ease both;
}
.galeria-item:nth-child(1) { animation-delay: 0.1s; }
.galeria-item:nth-child(2) { animation-delay: 0.25s; }
.galeria-item:nth-child(3) { animation-delay: 0.4s; }

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════════
   PORQUE ICON — spin on hover
   ═══════════════════════════════════════════════════════════════ */
.porque-icon {
  transition: transform 0.4s ease, background 0.3s ease;
}
.porque-card:hover .porque-icon {
  background: rgba(43,191,191,0.25);
  transform: rotate(8deg) scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .nosotros-grid  { grid-template-columns: 1fr; gap: 48px; }
  .nosotros-image { max-width: 560px; margin: 0 auto; }
  .nosotros-badge { right: 0; }
  .nosotros-text  { padding-left: 0; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .contacto-grid  { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { color: var(--dark) !important; width: 100%; padding: 12px 8px; }

  .nav-cta  { display: none; }
  .hamburger { display: flex; }

  .hero-content { max-width: 100%; }
  .hero-btns    { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  .nosotros      { padding: 72px 0; }
  .nosotros-image img { height: 320px; }

  .productos     { padding: 72px 0; }
  .productos-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }

  .porque        { padding: 72px 0; }
  .porque-grid   { grid-template-columns: 1fr; }

  .galeria       { padding: 72px 0; }
  .galeria-grid  { grid-template-columns: 1fr; }
  .galeria-item--large { grid-column: span 1; }

  .contacto      { padding: 72px 0; }
  .contacto-form { padding: 28px 20px; }
  .form-row      { grid-template-columns: 1fr; }

  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer        { padding-top: 48px; }
}

@media (max-width: 480px) {
  .productos-grid { grid-template-columns: 1fr 1fr; }
  .nosotros-stats { gap: 16px; }
}
