/* ===========================
   GREENGMP — Dark Editorial
   Palette: #050D0A (bg) · #00C47A (emerald) · #064E3B (deep green) · #E8F5F0 (light)
   =========================== */

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

:root {
  --bg:         #050D0A;
  --bg2:        #0A1A13;
  --bg3:        #0F2318;
  --em:         #00C47A;
  --em-dark:    #009B5E;
  --em-deep:    #064E3B;
  --text:       #E8F5F0;
  --text-muted: #7FA99A;
  --border:     rgba(0,196,122,0.15);
  --border2:    rgba(232,245,240,0.08);
  --shadow:     rgba(0,0,0,0.4);
  --font-head: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --transition: 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ---- LIGHT THEME ---- */
[data-theme="light"] {
  --bg:         #FFFFFF;
  --bg2:        #F4F8F6;
  --bg3:        #E8F2EE;
  --em:         #007A4D;
  --em-dark:    #005E3A;
  --em-deep:    #004D30;
  --text:       #0A1A13;
  --text-muted: #4A6B5E;
  --border:     rgba(0,122,77,0.2);
  --border2:    rgba(10,26,19,0.1);
  --shadow:     rgba(0,0,0,0.1);
}

/* Transición global al cambiar tema */
body, body * {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

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

/* ---- LIGHT MODE OVERRIDES ---- */
[data-theme="light"] #splash { background: var(--bg); }
[data-theme="light"] .splash-wordmark { color: var(--em); }

[data-theme="light"] #nav.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 0 var(--border2), 0 2px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .nav-links a { color: var(--text-muted); }
[data-theme="light"] .nav-links a:hover { color: var(--text); }
[data-theme="light"] .nav-links .nav-cta { color: var(--em); border-color: var(--border); }
[data-theme="light"] .nav-links .nav-cta:hover { background: var(--em); color: #fff; }
[data-theme="light"] .nav-toggle span { background: var(--text); }

[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.75) 50%,
    rgba(230,245,238,0.5) 100%
  );
}
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,122,77,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,122,77,0.06) 1px, transparent 1px);
}
[data-theme="light"] .hero-title { color: var(--text); }
[data-theme="light"] .hero-sub { color: var(--text-muted); }
[data-theme="light"] .hero-badge { background: rgba(0,122,77,0.07); border-color: var(--border); }
[data-theme="light"] .hero-stats { }
[data-theme="light"] .btn-ghost { border-color: var(--border2); color: var(--text); }
[data-theme="light"] .btn-ghost:hover { border-color: var(--em); color: var(--em); }

[data-theme="light"] .about-img-badge { background: rgba(255,255,255,0.92); }
[data-theme="light"] .about-img-badge span:first-child { color: var(--text); }

[data-theme="light"] .service-card { background: #fff; border-color: var(--border2); box-shadow: 0 2px 16px rgba(0,0,0,0.05); }
[data-theme="light"] .service-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.1), 0 0 0 1px var(--border); }
[data-theme="light"] .card-number { color: rgba(0,122,77,0.07); }

[data-theme="light"] .client-card { background: #fff; border-color: var(--border2); box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
[data-theme="light"] .client-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
[data-theme="light"] .client-quote { border-left-color: var(--border); color: var(--text-muted); }
[data-theme="light"] .client-result { border-top-color: var(--border2); }
[data-theme="light"] .client-logo-wrap { border-bottom-color: var(--border2); }

[data-theme="light"] .cold-divider { background: linear-gradient(90deg, transparent, var(--border), transparent); }

[data-theme="light"] .embalaje-visual {
  background: linear-gradient(135deg, var(--bg3) 0%, rgba(0,122,77,0.08) 100%);
}
[data-theme="light"] .embalaje-visual::before {
  background-image:
    linear-gradient(rgba(0,122,77,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,122,77,0.06) 1px, transparent 1px);
}

[data-theme="light"] .contact-form-wrap { background: #fff; border-color: var(--border2); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: var(--bg2);
  border-color: var(--border2);
  color: var(--text);
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: var(--em);
  background: rgba(0,122,77,0.03);
}
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder { color: rgba(74,107,94,0.4); }

[data-theme="light"] .footer-agency { color: var(--text-muted); }
[data-theme="light"] .footer-agency:hover { color: var(--em); }
[data-theme="light"] .footer-social a { background: var(--bg2); }

[data-theme="light"] #nav:not(.scrolled) .nav-links a { color: var(--text); }
[data-theme="light"] #nav:not(.scrolled) .nav-links .nav-cta { color: var(--em); }

/* --- Theme toggle button --- */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--em);
  color: var(--em);
  background: rgba(0,196,122,0.06);
  transform: rotate(20deg);
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(0,122,77,0.06);
}
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

/* --- SPLASH --- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-inner { text-align: center; }
.splash-logo img { width: 140px; margin: 0 auto 32px; }
.splash-wordmark {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--em);
  margin-bottom: 32px;
  display: block;
}
.splash-bar {
  width: 180px;
  height: 2px;
  background: var(--border);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}
.splash-fill {
  height: 100%;
  width: 0%;
  background: var(--em);
  border-radius: 2px;
  animation: splashFill 2s ease-out forwards;
}
@keyframes splashFill { to { width: 100%; } }

/* --- NAV --- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
#nav.scrolled {
  background: rgba(5,13,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img { height: 36px; width: auto; }
.nav-wordmark {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--em);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--em);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 100px;
  transition: background 0.25s, color 0.25s;
}
.nav-links .nav-cta:hover { background: var(--em); color: var(--bg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--em);
  color: var(--bg);
  border: 2px solid var(--em);
}
.btn-primary:hover {
  background: transparent;
  color: var(--em);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,196,122,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border2);
}
.btn-ghost:hover {
  border-color: var(--em);
  color: var(--em);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(232,245,240,0.4);
}
.btn-outline-light:hover {
  background: rgba(232,245,240,0.1);
  border-color: var(--text);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* --- SECTION LABELS --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--em);
  margin-bottom: 20px;
}
.section-tag.light { color: rgba(232,245,240,0.7); }
.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}
.section-title em {
  font-style: normal;
  color: var(--em);
}
.section-title.light { color: var(--text); }
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.6) brightness(0.35);
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5,13,10,0.96) 0%,
    rgba(5,13,10,0.80) 50%,
    rgba(6,78,59,0.40) 100%
  );
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,196,122,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,196,122,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--em);
  background: rgba(0,196,122,0.08);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--em);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
  overflow: hidden;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span { display: block; }
.hero-title .accent { color: var(--em); }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--em);
}
.stat-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 36px; background: var(--border2); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  transition: color 0.25s;
  animation: bounce 2s ease infinite;
  z-index: 1;
}
.hero-scroll:hover { color: var(--em); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- NOSOTROS --- */
.about {
  padding: 120px 0;
  background: var(--bg2);
  position: relative;
}

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

.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.about-img-wrap:hover img { transform: scale(1.03); }
.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,13,10,0.7) 100%);
  z-index: 1;
}

.about-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(5,13,10,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-img-badge span:first-child {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.badge-sub { font-size: 0.75rem; color: var(--em); letter-spacing: 0.04em; }

.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.pillar-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(0,196,122,0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--em);
  margin-top: 2px;
}
.pillar div { display: flex; flex-direction: column; gap: 3px; }
.pillar strong { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.pillar span { font-size: 0.85rem; color: var(--text-muted); }

/* --- SERVICIOS --- */
.services {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-header .section-tag { justify-content: center; }
.section-header .section-subtitle { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 40px 32px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--em), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
}
.service-card:hover::before { opacity: 1; }

.card-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(0,196,122,0.06);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}
.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,196,122,0.08);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--em);
  margin-bottom: 24px;
  transition: background 0.3s, border-color 0.3s;
}
.service-card:hover .card-icon {
  background: rgba(0,196,122,0.15);
  border-color: var(--em);
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.card-tags li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--em);
  background: rgba(0,196,122,0.06);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}
.card-line {
  height: 1px;
  background: linear-gradient(90deg, var(--em), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover .card-line { opacity: 0.4; }

/* Card CTA link */
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--em);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  transition: gap 0.25s, opacity 0.25s;
  opacity: 0.85;
}
.card-cta:hover { gap: 10px; opacity: 1; }

.services-bg-accent {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,196,122,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* --- CLIENTES --- */
.clients {
  padding: 120px 0;
  background: var(--bg2);
  position: relative;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.client-card {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.client-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.client-logo-wrap {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border2);
  min-height: 80px;
  display: flex;
  align-items: center;
}
.client-logo-wrap img {
  max-height: 52px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.25s;
}
.client-card:hover .client-logo-wrap img { opacity: 1; }
.client-name-fallback {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.client-body {
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.client-service-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--em);
}

.client-body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.client-quote {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  position: relative;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}

.client-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--em);
  font-weight: 500;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--border2);
  margin-top: 4px;
}
.client-result svg { flex-shrink: 0; margin-top: 1px; }

@media (max-width: 900px) {
  .clients-grid { grid-template-columns: 1fr; }
}

/* --- CADENA DE FRÍO --- */
.cold {
  padding: 120px 0;
  background: var(--bg2);
}

.cold-section-header {
  text-align: center;
  margin-bottom: 72px;
}
.cold-section-header .section-tag { justify-content: center; }
.cold-section-header .section-subtitle { margin: 0 auto; }

.cold-subsection {
  margin-bottom: 0;
}

.cold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 80px 0;
  position: relative;
}
.cold-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--em);
  box-shadow: 0 0 16px var(--em);
}

.cold-grid-reversed {
  direction: rtl;
}
.cold-grid-reversed > * {
  direction: ltr;
}

.cold-sub-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--em);
  background: rgba(0,196,122,0.08);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.cold-sub-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}
.cold-sub-title em {
  font-style: normal;
  color: var(--em);
}

/* Embalaje visual placeholder */
.cold-embalaje-wrap {
  aspect-ratio: 4/5;
  background: var(--bg3);
  border-radius: 20px;
  overflow: visible !important;
}
.embalaje-visual {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--bg3) 0%, rgba(6,78,59,0.4) 100%);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.embalaje-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,196,122,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,196,122,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: 20px;
}
.embalaje-icon {
  width: 100px;
  height: 100px;
  background: rgba(0,196,122,0.08);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--em);
  position: relative;
  z-index: 1;
}
.embalaje-temp-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.temp-range {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--em);
  letter-spacing: -0.04em;
  line-height: 1;
}
.temp-tag-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.embalaje-certif {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--em);
  background: rgba(0,196,122,0.06);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 100px;
  position: relative;
  z-index: 1;
}

.embalaje-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .cold-grid-reversed { direction: ltr; }
  .cold-divider { margin: 56px 0; }
  .embalaje-actions { flex-direction: column; align-items: flex-start; }
  .embalaje-actions .btn { width: 100%; justify-content: center; }
}

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

.cold-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}
.cold-text strong { color: var(--text); }

.cold-benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.benefit-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(0,196,122,0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--em);
  margin-top: 2px;
}
.benefit div { display: flex; flex-direction: column; gap: 4px; }
.benefit strong { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.benefit span { font-size: 0.85rem; color: var(--text-muted); }

.cold-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.brand-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--em);
  background: rgba(0,196,122,0.08);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
}

.cold-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.cold-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.cold-img-wrap:hover img { transform: scale(1.03); }

.cold-temp-card {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(5,13,10,0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  min-width: 130px;
}
.temp-value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--em);
  line-height: 1;
  margin-bottom: 4px;
}
.temp-label { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.08em; }
.temp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--em);
  margin: 8px auto 0;
  animation: pulse 2s infinite;
}

/* --- PRÓXIMAMENTE --- */
.soon {
  position: relative;
  overflow: hidden;
}
.soon-inner {
  position: relative;
  padding: 140px 0;
}
.soon-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.soon-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.3) brightness(0.2);
}
.soon-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,78,59,0.85) 0%,
    rgba(5,13,10,0.95) 100%
  );
}
.soon-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.soon-text {
  font-size: 1.1rem;
  color: rgba(232,245,240,0.8);
  line-height: 1.75;
  margin-bottom: 36px;
}
.soon-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.target-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(232,245,240,0.08);
  border: 1px solid rgba(232,245,240,0.15);
  padding: 10px 18px;
  border-radius: 100px;
}
.target-tag svg { opacity: 0.7; }

/* --- CONTACTO --- */
.contact {
  padding: 120px 0;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.25s;
}
.contact-item:hover { color: var(--em); }
.contact-item svg { flex-shrink: 0; color: var(--em); }

.contact-form-wrap {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 48px 40px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s, background 0.25s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237FA99A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group select option { background: var(--bg2); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--em);
  background: rgba(0,196,122,0.03);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(127,169,154,0.5); }

/* --- FOOTER --- */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}
.footer-brand .footer-logo { height: 32px; margin-bottom: 16px; }
.footer-wordmark {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--em);
  display: block;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.footer-nav a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.25s; }
.footer-nav a:hover { color: var(--em); }
.footer-social {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: flex-start;
}
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s;
}
.footer-social a:hover {
  background: rgba(0,196,122,0.1);
  border-color: var(--border);
  color: var(--em);
  transform: translateY(-2px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border2);
  font-size: 0.8rem;
  color: rgba(127,169,154,0.5);
}
.footer-agency {
  color: rgba(127,169,154,0.7);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-agency:hover { color: var(--em); }

/* --- WHATSAPP FLOTANTE --- */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.wa-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 16px 48px rgba(37,211,102,0.45), 0 4px 12px rgba(0,0,0,0.3);
}
.wa-tooltip {
  position: absolute;
  right: 72px;
  background: var(--bg2);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* --- ANIMATIONS --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
  transition-delay: var(--delay, 0s);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94) var(--card-delay, 0s),
              transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94) var(--card-delay, 0s);
}
.reveal-card.visible { opacity: 1; transform: translateY(0); }

/* Safety net: if JS fails or is slow, reveal after 6s */
@keyframes forceVisible {
  to { opacity: 1; transform: none; }
}
.reveal-up, .reveal-left, .reveal-right, .reveal-card {
  animation: forceVisible 0.1s 6s forwards;
}

/* --- MOBILE --- */
@media (max-width: 900px) {
  .about-grid, .cold-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-visual { order: -1; }
  .cold-visual { order: -1; }
  .about-img-wrap, .cold-img-wrap { aspect-ratio: 16/9; max-height: 360px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-social { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: rgba(5,13,10,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border2);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 32px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-links .nav-cta { padding: 12px 24px; }
  .nav-toggle { display: flex; z-index: 1000; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .hero { padding: 100px 0 60px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .about, .services, .cold, .contact { padding: 80px 0; }
  .soon-inner { padding: 100px 0; }

  .contact-form-wrap { padding: 32px 24px; }

  .wa-float { bottom: 24px; right: 20px; width: 54px; height: 54px; }
  .wa-tooltip { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .service-card { padding: 28px 24px; }
}
