/* =====================================================
   PREMEX – Planta de Concreto Premezclado
   styles.css — Tema Claro Profesional v3.0
   ===================================================== */

/* ---- VARIABLES GLOBALES ---- */
:root {
  /* Fondos premium — Manual de marca */
  --bg-base:       #F3F0EC;
  --bg-surface:    #FFFFFF;
  --bg-section-alt:#F3F0EC;
  --bg-deep:       #E8E4DF;

  /* Color primario - Navy (Manual de marca) */
  --brand:        #121143;
  --brand-mid:    #223381;
  --brand-light:  #9AABD8;
  --brand-dim:    rgba(18, 17, 67, 0.06);
  --brand-glow:   rgba(34, 51, 129, 0.18);

  /* Color de acción (Naranja — Manual de marca #F95025) */
  --action:        #F95025;
  --action-hover:  #D94420;

  /* Texto */
  --text-primary:  #121143;
  --text-secondary:#4A4A6A;
  --text-muted:    #9AABD8;

  /* Bordes estructurados */
  --border:        #D5D0CA;
  --border-accent: rgba(34, 51, 129, 0.25);

  /* Sombras sutiles y elegantes */
  --shadow-sm:   0 1px 2px rgba(18,17,67,0.04);
  --shadow-card: 0 4px 12px rgba(18,17,67,0.06);
  --shadow-deep: 0 12px 24px rgba(18,17,67,0.10);

  --transition-base:   150ms ease;
  --transition-medium: 300ms cubic-bezier(.4, 0, .2, 1);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Barlow Semi Condensed', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

section {
  position: relative;
}

/* LOGO — visible sobre fondos claros */
.site-logo        { height: 42px; width: auto; display: block; transition: height 0.3s ease; }
.site-logo-footer { height: 44px; width: auto; display: block; }

/* Logo grande en el hero (fondo azul), normal al hacer scroll */
#navbar-logo                   { height: 72px; }
.navbar.scrolled #navbar-logo  { height: 42px; }

/* ---- Overrides Tailwind hardcodeados ---- */
.text-\[#0F172A\]   { color: var(--text-primary)   !important; }
.text-\[#475569\]   { color: var(--text-secondary) !important; }
.text-brand-500     { color: var(--brand-mid)      !important; }
.bg-brand-500       { background-color: var(--brand) !important; }
.hover\:bg-brand-600:hover { background-color: var(--brand-mid) !important; }
.border-brand-500   { border-color: var(--border-accent) !important; }
.shadow-brand-500\/20 { box-shadow: 0 8px 24px var(--brand-dim) !important; }
.shadow-brand-500\/25 { box-shadow: 0 8px 24px rgba(18,17,67,0.18) !important; }
.bg-brand-500\/10   { background-color: var(--brand-dim) !important; }
.bg-brand-500\/20   { background-color: rgba(18,17,67,0.12) !important; }
.bg-brand-500\/30   { background-color: rgba(18,17,67,0.18) !important; }
.text-brand-500\/80 { color: rgba(18,17,67,0.8) !important; }
.border-brand-500\/30 { border-color: rgba(34,51,129,0.25) !important; }
.border-brand-500\/40 { border-color: rgba(34,51,129,0.35) !important; }
.text-\[#EAF0FF\]   { color: rgba(240,244,255,0.9) !important; }
.text-\[#F8FAFF\]   { color: #FFFFFF !important; }

/* Secciones */
.bg-\[#FFFFFF\]   { background-color: var(--bg-surface)     !important; }
.bg-\[#F4F7FD\]   { background-color: var(--bg-section-alt) !important; }
.bg-\[#F7F9FC\]   { background-color: var(--bg-section-alt) !important; }
.border-\[#D5DEEE\] { border-color: var(--border) !important; }
.border-\[#0F172A\] { border-color: var(--brand) !important; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 9999 !important;
  background: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  transition: background 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s, border-color 0.4s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 4px 24px rgba(18,17,67,0.10) !important;
  border-bottom: 1px solid rgba(18,17,67,0.08) !important;
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}

/* Nav pill links */
.nav-pill {
  position: relative;
  z-index: 1;
}
.nav-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: transparent;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: -1;
  transform: scale(0.92);
}
.nav-pill:hover::before,
.nav-pill.active::before {
  background: rgba(249,80,37,0.12);
  transform: scale(1);
}
.nav-pill:hover,
.nav-pill.active {
  color: #F95025 !important;
}
.navbar.scrolled .nav-pill:hover,
.navbar.scrolled .nav-pill.active {
  color: #F95025 !important;
}
.nav-pill::after { display: none !important; }
/* Pill container: transparent on top, subtle on scrolled */
.navbar-pill-container {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.4s, border-color 0.4s;
}
.navbar.scrolled .navbar-pill-container {
  background: rgba(18,17,67,0.05);
  border-color: rgba(18,17,67,0.08);
}

/* CTA button glow */
.navbar a[href="#contacto"].bg-accent-500 {
  border-radius: 9999px !important;
}
.navbar .text-\[#0F172A\]   { color: var(--text-primary) !important; }
.navbar .bg-\[#FFFFFF\]     { background-color: transparent !important; }

.nav-link {
  position: relative;
  color: #FFFFFF !important;
  transition: color 0.2s ease;
}
.navbar.scrolled .nav-link {
  color: var(--text-primary) !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  width: 0; height: 2px;
  background: var(--action);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--action) !important; }
.nav-link:hover::after, .nav-link.active::after { width: 60%; left: 20%; }

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  background-color: #0a0c2c;
  position: relative;
  overflow: hidden;
}

/* Video hero — ocupa todo el contenedor */
.hero-section video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}
.hero-section::before {
  width: 380px;
  height: 380px;
  left: -110px;
  top: 18%;
  background: radial-gradient(circle, rgba(34,51,129,0.14) 0%, rgba(34,51,129,0) 70%);
}
.hero-section::after {
  width: 320px;
  height: 320px;
  right: -90px;
  bottom: 10%;
  background: radial-gradient(circle, rgba(18,17,67,0.12) 0%, rgba(18,17,67,0) 70%);
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(248,249,252,0.0) 0%,
    rgba(248,249,252,0.0) 60%,
    rgba(248,249,252,0.6) 100%
  );
}

.hero-kicker {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(18,17,67,0.12);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(18,17,67,0.08);
  color: var(--brand-mid);
}

.hero-kicker-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #F95025, #121143);
  box-shadow: 0 0 0 6px rgba(249,80,37,0.18);
}

.hero-subtitle { color: var(--brand-mid) !important; letter-spacing: 0.3em; }
.hero-title    { color: var(--text-primary) !important; }
.hero-title .text-brand-500 { color: var(--brand) !important; }
.hero-slogan   { color: var(--text-secondary) !important; }
.hero-slogan .text-\[#0F172A\] { color: var(--text-primary) !important; font-weight: 600; }
.hero-logo {
  filter: drop-shadow(0 12px 24px rgba(15,23,42,0.2));
}

.hero-metrics {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.hero-metric {
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(243,240,236,0.92) 100%);
  border: 1px solid rgba(18,17,67,0.10);
  border-radius: 18px;
  padding: 1.1rem 1rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 38px rgba(18,17,67,0.08);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.hero-metric:hover {
  transform: translateY(-5px);
  border-color: rgba(34,51,129,0.22);
  box-shadow: 0 22px 46px rgba(18,17,67,0.12);
}

.hero-metric-label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-mid);
}

.hero-metric-value {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.1rem, 2.6vw, 1.55rem);
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.hero-metric-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.hero-section .btn-primary {
  background: var(--action) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(249,80,37,0.30) !important;
  transition: all 0.3s ease !important;
}
.hero-section .btn-primary:hover {
  background: var(--action-hover) !important;
  box-shadow: 0 12px 36px rgba(249,80,37,0.40) !important;
  transform: translateY(-2px);
}
.hero-section .btn-outline {
  border: 2px solid rgba(255,255,255,0.45) !important;
  color: #FFFFFF !important;
  background: transparent !important;
}
.hero-section .btn-outline:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.7) !important;
  color: #FFFFFF !important;
}

/* Trust pills */
.trust-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  animation: trust-float 6s ease-in-out infinite;
}
.trust-pill:nth-child(2n) { animation-delay: -1.5s; }
.trust-pill:nth-child(3n) { animation-delay: -3s; }
.trust-pill:hover {
  color: var(--brand);
  border-color: var(--border-accent);
  background: var(--brand-dim);
}
@keyframes trust-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.scroll-arrow { background: var(--brand) !important; opacity: 0.5; }
.hero-section .text-\[#475569\] { color: var(--text-muted) !important; }

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(8px); opacity: 0.9; }
}
.animate-bounce-slow { animation: bounce-slow 1.8s ease-in-out infinite; }

/* =====================================================
   ESTADÍSTICAS
   ===================================================== */
#estadisticas {
  background: #121143 !important;
  border-top: none !important;
  border-bottom: none !important;
  position: relative;
  overflow: hidden;
}
.stat-item { position: relative; z-index: 1; }
.stat-item {
  padding: 1.25rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform var(--transition-medium), background-color var(--transition-medium), border-color var(--transition-medium);
}
.stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0.04) 100%);
}
.stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 15%; height: 70%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.25) 50%, transparent);
}
.stat-item:last-child::after { display: none; }
#estadisticas .text-\[#F8FAFF\]  { color: #FFFFFF !important; }
#estadisticas .text-\[#EAF0FF\]  { color: rgba(220,228,255,0.85) !important; }

/* =====================================================
   CERT STRIP
   ===================================================== */
.cert-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  letter-spacing: 0.1em;
  transition: all var(--transition-base);
  cursor: default;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.cert-badge:hover {
  color: var(--brand);
  border-color: var(--border-accent);
  background: var(--brand-dim);
}

/* =====================================================
   NOSOTROS / FEATURE CARDS
   ===================================================== */
.feature-card {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-sm);
  border-radius: 12px !important;
  transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent) !important;
  box-shadow: var(--shadow-deep);
}

.nosotros-visual {
  background: var(--bg-section-alt) !important;
  border-color: var(--border) !important;
}
.nosotros-visual .border-\[#D5DEEE\] { border-color: var(--border) !important; }
.nosotros-visual .bg-brand-500\/10 { background: var(--brand-dim) !important; }
.nosotros-visual .bg-brand-500\/5  { background: rgba(18,17,67,0.04) !important; }

/* =====================================================
   PRODUCT CARDS
   ===================================================== */
.product-card {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-sm);
  border-radius: 14px !important;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
  position: relative;
  overflow: visible;
  padding: 0.7rem 0.9rem !important;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #F95025, #223381);
  opacity: 0;
  transition: opacity var(--transition-medium);
  border-radius: 14px 14px 0 0;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-deep);
  border-color: var(--border-accent) !important;
}
.product-card:hover::before { opacity: 1; }
.product-card--featured {
  border-color: rgba(34,51,129,0.25) !important;
  box-shadow: 0 0 28px rgba(34,51,129,0.12);
  overflow: visible;
}
.product-card--featured::before { opacity: 1; }
.product-card--featured:hover   { box-shadow: 0 20px 48px rgba(18,17,67,0.18); }
.product-card .text-brand-500   { color: var(--brand) !important; }
.product-card .bg-brand-500\/10 { background: var(--brand-dim) !important; }
.product-card .border-\[#D5DEEE\] { border-color: var(--border) !important; }

/* =====================================================
   MIXER SECTION
   ===================================================== */
#servicios .section-title { color: #0F172A !important; }

.mixer-section::before,
#proceso::before,
#contacto::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 20%, rgba(34,51,129,0.04) 0%, transparent 30%), radial-gradient(circle at 80% 80%, rgba(18,17,67,0.05) 0%, transparent 28%);
}
.mixer-benefit-card {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-sm);
  border-radius: 12px !important;
  transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
}
.mixer-benefit-card:hover { transform: translateY(-4px); border-color: var(--border-accent) !important; box-shadow: var(--shadow-card); }
.mixer-benefit-card .bg-brand-500\/10 { background: var(--brand-dim) !important; }
.mixer-visual {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-card);
}
.mixer-visual .border-\[#D5DEEE\]    { border-color: var(--border) !important; }
.mixer-visual .bg-brand-500\/10      { background: var(--brand-dim) !important; }
.mixer-visual .border-brand-500\/30  { border-color: var(--border-accent) !important; }
.mixer-visual .text-brand-500        { color: var(--brand-mid) !important; }

/* =====================================================
   POR QUÉ PREMEX
   ===================================================== */
.why-card {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-sm);
  border-radius: 12px !important;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); border-color: var(--border-accent) !important; }
.check-icon { background: var(--brand) !important; }
.why-card:hover .check-icon { animation: check-pulse 0.4s ease forwards; }
@keyframes check-pulse {
  0%  { transform: scale(1); }
  50% { transform: scale(1.2); box-shadow: 0 0 12px var(--brand-glow); }
  100%{ transform: scale(1); }
}

/* =====================================================
   PROCESO DE PEDIDO
   ===================================================== */
.process-step {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}
.process-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-deep);
  border-color: var(--border-accent) !important;
}
.step-number {
  background: var(--brand) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(18,17,67,0.30) !important;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}
.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(18,17,67,0.45) !important;
}

/* =====================================================
   TESTIMONIOS
   ===================================================== */
.testimonial-card {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-sm);
  border-radius: 14px !important;
  position: relative;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  right: 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem;
  line-height: 1;
  color: rgba(18,17,67,0.16);
  pointer-events: none;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-deep); border-color: var(--border-accent) !important; }
.testimonial-card span.text-brand-500.text-xl { color: #F59E0B !important; }
.testimonial-card .bg-brand-500\/20  { background: var(--brand-dim) !important; }
.testimonial-card .border-\[#D5DEEE\] { border-color: var(--border) !important; }
.testimonial-card span:not(.text-xl).text-brand-500 { color: var(--brand-mid) !important; }

/* =====================================================
   FAQ
   ===================================================== */
.faq-item {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.faq-item:hover {
  border-color: var(--border-accent) !important;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.faq-item button { cursor: pointer; }
.faq-item button:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }

.faq-item button:hover {
  background: linear-gradient(90deg, rgba(15,23,42,0.03), rgba(15,23,42,0.015));
}

/* =====================================================
   FORMULARIO DE CONTACTO
   ===================================================== */
.form-input {
  background: var(--bg-section-alt) !important;
  border-color: var(--border) !important;
  border-radius: 10px !important;
  color: var(--text-primary) !important;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.form-input:focus {
  border-color: var(--brand-mid) !important;
  box-shadow: 0 0 0 3px rgba(34,51,129,0.12);
  background: var(--bg-surface) !important;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input option { background-color: var(--bg-surface); color: var(--text-primary); }
#contacto .bg-brand-500\/10 { background: var(--brand-dim) !important; }
#contacto [x-data] {
  border-radius: 16px !important;
  box-shadow: 0 18px 44px rgba(18,17,67,0.08);
}
#contacto iframe {
  display: block;
  width: 100%;
  height: 120px;
  border: 0;
  filter: saturate(0.9) contrast(1.02);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(243,240,236,1) 100%) !important;
  border-top: 4px solid var(--action) !important;
}
footer .text-\[#0F172A\]    { color: var(--text-primary)   !important; }
footer .text-\[#475569\]    { color: var(--text-secondary) !important; }
footer .border-\[#D5DEEE\]  { border-color: var(--border) !important; }
footer h4                   { color: var(--text-primary) !important; }
footer .text-brand-500      { color: var(--brand-mid) !important; }
footer .flex.gap-3 a {
  border-radius: 999px !important;
  box-shadow: 0 6px 14px rgba(18,17,67,0.15);
  transform: translateY(0);
}
footer .flex.gap-3 a:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 20px rgba(18,17,67,0.22);
}

#contacto .space-y-6 > div,
footer ul li {
  transition: transform var(--transition-base), color var(--transition-base);
}

#contacto .space-y-6 > div:hover,
footer ul li:hover {
  transform: translateX(2px);
}

/* =====================================================
   ENCABEZADOS DE SECCIÓN
   ===================================================== */
.text-center > h2.font-condensed {
  display: inline-block;
  position: relative;
  padding-bottom: 0.35rem;
}
.text-center > h2.font-condensed::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.2rem;
  width: 76px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  opacity: 0.5;
}

/* =====================================================
   BOTÓN FLOTANTE WHATSAPP
   ===================================================== */
@keyframes wa-ping {
  0%       { transform: scale(1); opacity: 0.75; }
  75%, 100% { transform: scale(1.8); opacity: 0; }
}
.whatsapp-ping { animation: wa-ping 1.8s cubic-bezier(0,0,0.2,1) infinite; }

/* =====================================================
   NAVEGACIÓN POR PUNTOS (DOT NAV)
   ===================================================== */
#dot-nav {
  position: fixed;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  pointer-events: auto;
}

#dot-nav button {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(18,17,67,0.35);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  outline: none;
}

#dot-nav button::after {
  content: attr(title);
  position: absolute;
  right: calc(100% + 0.65rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand);
  color: #fff;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#dot-nav button:hover::after,
#dot-nav button:focus-visible::after {
  opacity: 1;
}

#dot-nav button:hover,
#dot-nav button:focus-visible {
  border-color: var(--brand);
  transform: scale(1.25);
}

#dot-nav button.active {
  background: var(--action);
  border-color: var(--action);
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(249,80,37,0.25);
}

/* Ocultar en pantallas muy pequeñas */
@media (max-width: 600px) {
  #dot-nav { display: none; }
}

/* Ajuste cuando la sección hero es oscura vs clara */
#dot-nav.on-dark button {
  border-color: rgba(255,255,255,0.5);
}
#dot-nav.on-dark button.active {
  background: var(--action);
  border-color: var(--action);
}
#dot-nav.on-dark button:hover {
  border-color: #fff;
}

/* =====================================================
   CANVAS
   ===================================================== */
#particles-canvas { pointer-events: none; width: 100%; height: 100%; }
.hero-section canvas { position: absolute; top: 0; left: 0; }

/* =====================================================
   CAMIÓN HERO – animación entrada derecha → izquierda
   ===================================================== */
@keyframes camionEntrada {
  0% {
    transform: translateX(110%) perspective(900px) rotateY(14deg) scale(0.90);
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: translateX(0) perspective(900px) rotateY(-2deg) scale(1);
    opacity: 1;
  }
}

#hero-camion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
  object-fit: contain;
  object-position: right bottom;
  filter:
    drop-shadow(-28px 0px 35px rgba(0,0,0,0.60))
    drop-shadow(-6px 28px 22px rgba(0,0,0,0.50));
  animation: camionEntrada 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

@media (max-width: 767px) {
  #hero-camion {
    opacity: 0.35;  /* en móvil solo como fondo tenue, no tapa el texto */
  }
}

/* =====================================================
   ANIMACIONES PREMIUM
   ===================================================== */

/* --- HERO: texto entra de izquierda → derecha --- */
@keyframes heroSlideLeft {
  0%   { opacity: 0; transform: translateX(-90px) skewX(3deg); }
  65%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(0)     skewX(0deg); }
}
.hero-anim-1 { animation: heroSlideLeft 0.85s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.hero-anim-2 { animation: heroSlideLeft 0.90s cubic-bezier(0.22,1,0.36,1) 0.22s both; }
.hero-anim-3 { animation: heroSlideLeft 0.90s cubic-bezier(0.22,1,0.36,1) 0.40s both; }
.hero-anim-4 { animation: heroSlideLeft 0.90s cubic-bezier(0.22,1,0.36,1) 0.56s both; }
.hero-anim-5 { animation: heroSlideLeft 0.90s cubic-bezier(0.22,1,0.36,1) 0.70s both; }

/* Badge de ubicación: pulso naranja continuo */
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(249,80,37,0.40); }
  50%       { box-shadow: 0 0 0 10px rgba(249,80,37,0); }
}
.hero-badge-pulse { animation: badgePulse 2.8s ease-in-out 1.6s infinite; }

/* --- ESTADÍSTICAS: entrada con escala + glow --- */
@keyframes statRingIn {
  0%   { opacity: 0; transform: scale(0.82) translateY(18px); }
  60%  { opacity: 1; transform: scale(1.04) translateY(-2px); }
  100% { opacity: 1; transform: scale(1)    translateY(0); }
}
.stat-item.aos-animate {
  animation: statRingIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
.stat-item:nth-child(1).aos-animate { animation-delay: 0.05s; }
.stat-item:nth-child(2).aos-animate { animation-delay: 0.18s; }
.stat-item:nth-child(3).aos-animate { animation-delay: 0.31s; }
.stat-item:nth-child(4).aos-animate { animation-delay: 0.44s; }

/* --- NOSOTROS: dotsPop en valores de marca --- */
@keyframes dotPop {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.6); box-shadow: 0 0 0 4px rgba(249,80,37,0.22); }
}
.nosotros-dot { animation: dotPop 3s ease-in-out infinite; }
.nosotros-dot:nth-child(1) { animation-delay: 0s; }
.nosotros-dot:nth-child(2) { animation-delay: 0.5s; }
.nosotros-dot:nth-child(3) { animation-delay: 1.0s; }
.nosotros-dot:nth-child(4) { animation-delay: 1.5s; }

/* --- MIXER: visual card flota suavemente --- */
@keyframes floatMixer {
  0%, 100% { transform: translateY(0px)  rotate(0.0deg); }
  40%       { transform: translateY(-11px) rotate(0.4deg); }
  70%       { transform: translateY(-5px)  rotate(-0.3deg); }
}
.mixer-visual { animation: floatMixer 6s ease-in-out infinite; }

/* --- PROCESO: números de paso — sello + anillo al entrar --- */
@keyframes stampIn {
  0%   { transform: scale(0.25) rotate(-20deg); opacity: 0; }
  55%  { transform: scale(1.22) rotate(4deg);   opacity: 1; }
  75%  { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1)    rotate(0deg);   opacity: 1; }
}
@keyframes ringPulse {
  0%    { box-shadow: 0 0 0 0   rgba(249,80,37,0.55), 0 4px 16px rgba(18,17,67,0.30); }
  70%   { box-shadow: 0 0 0 20px rgba(249,80,37,0),   0 4px 16px rgba(18,17,67,0.30); }
  100%  { box-shadow: 0 0 0 0   rgba(249,80,37,0),    0 4px 16px rgba(18,17,67,0.30); }
}
.process-step.aos-animate .step-number {
  animation: stampIn 0.65s cubic-bezier(0.22,1,0.36,1) 0.20s both,
             ringPulse 1.4s ease 0.80s 1;
}

/* Línea conectora entre pasos se dibuja al aparecer */
@keyframes lineDraw {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0%   0 0); }
}
.proceso-line {
  animation: lineDraw 1.2s cubic-bezier(0.22,1,0.36,1) 1.0s both;
}

/* --- PRODUCTOS: cards glow al entrar en vista --- */
@keyframes cardEntranceGlow {
  0%   { box-shadow: var(--shadow-sm); }
  40%  { box-shadow: 0 0 0 3px rgba(249,80,37,0.28), 0 18px 42px rgba(18,17,67,0.15); }
  100% { box-shadow: var(--shadow-sm); }
}
.product-card.aos-animate {
  animation: cardEntranceGlow 1.3s ease 0.35s 1;
}

/* --- SECCIÓN TÍTULOS: subrayado se dibuja al entrar --- */
@keyframes underlineDraw {
  from { transform: scaleX(0); transform-origin: left center; }
  to   { transform: scaleX(1); transform-origin: left center; }
}
.section-title.aos-animate::after {
  animation: underlineDraw 0.65s cubic-bezier(0.22,1,0.36,1) 0.42s both;
}

/* --- FAQ: borde izquierdo naranja crece en hover --- */
.faq-item {
  border-left: 3px solid transparent !important;
  transition: border-left-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}
.faq-item:hover {
  border-left-color: var(--action) !important;
}

/* --- FAQ: fondo oscuro semitransparente en sección dark --- */
#faq .faq-item {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: #ffffff !important;
}
#faq .faq-item:hover {
  background: rgba(255,255,255,0.10) !important;
  border-left-color: var(--action) !important;
}
#faq .faq-item button {
  color: #ffffff !important;
}
#faq .faq-item button:hover {
  background: rgba(255,255,255,0.05) !important;
}

/* --- CONTACTO: form card glow en focus-within --- */
#contacto [x-data] {
  transition: box-shadow 0.4s ease !important;
}
#contacto [x-data]:focus-within {
  box-shadow: 0 18px 44px rgba(18,17,67,0.10), 0 0 0 3px rgba(34,51,129,0.18) !important;
}

/* --- BOTONES PRIMARIOS: shimmer sweep en hover --- */
@keyframes btnShimmer {
  0%   { background-position: -220% center; }
  100% { background-position: 220% center; }
}
.btn-primary:hover,
.hero-section .btn-primary:hover {
  background-image: linear-gradient(
    90deg,
    var(--action) 0%, rgba(255,255,255,0.18) 40%,
    var(--action) 50%, rgba(255,255,255,0.12) 60%,
    var(--action) 100%
  ) !important;
  background-size: 200% !important;
  animation: btnShimmer 0.55s ease forwards !important;
}

/* =====================================================
   UTILIDADES
   ===================================================== */
.orange-line {
  display: inline-block; width: 48px; height: 3px;
  background: var(--brand);
  border-radius: 2px; margin-bottom: 1rem;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-section-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-mid); }
::selection { background-color: rgba(34,51,129,0.18); color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
a, button { -webkit-tap-highlight-color: rgba(18,17,67,0.10); }

[data-aos]             { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* Nota técnica */
.mt-10.flex.items-center.gap-3 {
  background: var(--bg-surface) !important;
  border-color: var(--border-accent) !important;
  box-shadow: var(--shadow-sm);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1023px) { .stat-item::after { display: none; } }
@media (hover: none) {
  .product-card:hover, .feature-card:hover, .mixer-benefit-card:hover, .why-card:hover {
    transform: none; box-shadow: var(--shadow-sm);
  }
  .product-card--featured:hover { box-shadow: 0 0 28px rgba(15,23,42,0.10); }
}
@supports (padding: max(0px)) {
  footer { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
  .fixed.bottom-5 { bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.75rem)); }
}
@media (max-width: 475px) {
  .hero-section { padding-top: 5rem; padding-bottom: 4rem; }
  .hero-buttons a { width: 100%; text-align: center; justify-content: center; }
  .product-card { padding: 1.25rem; }
  .form-input { font-size: 0.9375rem; }
  .why-card { padding: 1rem; }
  .hero-section::before,
  .hero-section::after { display: none; }
  #contacto iframe { height: 120px; }

  /* Calculator mobile */
  #calculadora .section-title { font-size: 1.3rem !important; }
  #calculadora .grid { gap: 0.75rem !important; }
}
@media (max-width: 767px) {
  [data-aos="fade-right"], [data-aos="fade-left"] { transform: none !important; }
  #estadisticas .grid { row-gap: 2rem; }
  .mixer-visual { min-height: 0; }
  textarea { min-height: 52px; }
  footer .border-t { text-align: center; }
  .hero-metric { text-align: center; }

  /* Calculator: full-width stacked layout */
  #calculadora .grid.lg\:grid-cols-12 {
    grid-template-columns: 1fr !important;
  }
  #calculadora .lg\:col-span-7,
  #calculadora .lg\:col-span-5 {
    grid-column: span 1 !important;
  }

  /* Product cards: single column on small phones */
  #productos .grid { grid-template-columns: 1fr !important; }

  /* Contact: stack map and form */
  #contacto .grid { grid-template-columns: 1fr !important; }
  #contacto iframe { height: 120px; }

  /* Footer: stack columns */
  footer .grid { grid-template-columns: 1fr !important; text-align: center; }
  footer .flex.gap-3 { justify-content: center; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  #nosotros .grid { grid-template-columns: 1fr; }
  #contacto .grid { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
}
select {
  -webkit-appearance: none; appearance: none;
  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='%23223381' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
/* Calculator selects: white arrow on dark bg */
#calculadora 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='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
}
/* Calculator inputs: prevent form-input override */
#calculadora input[type="number"],
#calculadora select {
  background-color: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  border-radius: 12px !important;
}

/* =====================================================
   DISEÑO FINAL — AJUSTES GLOBALES
   ===================================================== */

body {
  background-color: #F3F0EC;
}

/* Separadores sutiles entre secciones */
section {
  border-bottom: 1px solid rgba(18,17,67,0.07);
}

/* ---- Etiquetas de sección (sub-títulos) — Audiowide per manual de marca ---- */
section p.text-accent-500 {
  font-family: 'Audiowide', sans-serif !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.22em !important;
}

/* ---- Títulos de sección — limpios y serios ---- */
.section-title {
  font-family: 'Audiowide', sans-serif !important;
  font-size: clamp(1.0rem, 1.3vw, 1.4rem) !important;
  color: #121143 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
  transform: none;
  display: inline-block;
  position: relative;
}
#calculadora .section-title {
  color: #121143 !important;
  font-size: clamp(1rem, 1.3vw, 1.4rem) !important;
  margin-bottom: 0.5rem !important;
}
#calculadora .section-title::after {
  background: #F95025;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #F95025;
  margin-top: 0.3rem;
  border-radius: 2px;
}

.text-center > h2.font-condensed {
  font-family: 'Audiowide', sans-serif !important;
  font-size: clamp(1.0rem, 1.3vw, 1.4rem) !important;
  color: #121143 !important;
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  display: inline-block;
  position: relative;
}
.text-center > h2.font-condensed::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 4px;
  background: #F95025;
  border-radius: 2px;
  opacity: 1;
}

/* ---- Tarjetas: sombra real con profundidad ---- */
.feature-card,
.mixer-benefit-card,
.why-card,
.process-step,
.testimonial-card,
.faq-item,
.product-card {
  border: 1px solid rgba(18,17,67,0.09) !important;
  box-shadow: 0 1px 3px rgba(18,17,67,0.04), 0 6px 20px rgba(18,17,67,0.07) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}
.feature-card:hover,
.mixer-benefit-card:hover,
.why-card:hover,
.process-step:hover,
.testimonial-card:hover,
.faq-item:hover,
.product-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 28px rgba(18,17,67,0.11), 0 20px 50px rgba(18,17,67,0.09) !important;
  border-color: rgba(34,51,129,0.20) !important;
}

/* ---- Padding compacto de tarjetas ---- */
.product-card,
.feature-card,
.why-card,
.testimonial-card {
  padding: 1.25rem !important;
}
.mixer-benefit-card {
  padding: 1rem !important;
}
.process-step,
.faq-item {
  padding: 1rem 1.25rem !important;
}

/* ---- Padding compacto de secciones ---- */
section:not(#hero):not(#estadisticas) {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}
#estadisticas {
  padding-top: 1.75rem !important;
  padding-bottom: 1.75rem !important;
}

/* ---- Botones ---- */
.btn-primary {
  box-shadow: 0 4px 14px rgba(249,80,37,0.25) !important;
  border-radius: 3px !important;
  border: none !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(249,80,37,0.35) !important;
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(249,80,37,0.18) !important;
}
.btn-outline {
  box-shadow: none !important;
  border-radius: 3px !important;
}
.btn-outline:hover {
  box-shadow: 0 4px 14px rgba(34,51,129,0.12) !important;
  transform: translateY(-1px);
}

/* ---- h2, h3 ---- */
h2, h3 {
  letter-spacing: 0.02em;
}

/* ---- Border-radius: esquinas ligeramente redondeadas ---- */
.rounded-sm  { border-radius: 4px !important; }
.rounded-md  { border-radius: 6px !important; }
.rounded-lg  { border-radius: 8px !important; }
.rounded-xl  { border-radius: 10px !important; }
.rounded-2xl { border-radius: 12px !important; }
.rounded-3xl { border-radius: 16px !important; }
.rounded-full { border-radius: 999px !important; }
img { border-radius: 6px !important; }

/* ---- Sombras utilitarias ---- */
.shadow-sm { box-shadow: 0 1px 3px rgba(18,17,67,0.07) !important; }
.shadow-md { box-shadow: 0 4px 12px rgba(18,17,67,0.09) !important; }
.shadow-lg { box-shadow: 0 8px 24px rgba(18,17,67,0.12) !important; }

/* ---- Navbar ---- */



/* ---- Form inputs ---- */
.form-input,
textarea.form-input {
  border: 1.5px solid rgba(18,17,67,0.14) !important;
  background: #FFFFFF !important;
  color: #121143 !important;
  box-shadow: inset 0 1px 3px rgba(18,17,67,0.04) !important;
  border-radius: 6px !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
textarea.form-input:focus {
  outline: none !important;
  border-color: #223381 !important;
  box-shadow: 0 0 0 3px rgba(34,51,129,0.10), inset 0 1px 3px rgba(18,17,67,0.04) !important;
  transform: none;
}

/* ---- Footer ---- */
footer {
  border-top: 3px solid #F95025 !important;
  background-color: #121143 !important;
  background-image:
    radial-gradient(ellipse at 15% 50%, rgba(34,51,129,0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 30%, rgba(154,171,216,0.08) 0%, transparent 50%) !important;
}
footer p, footer span, footer li, footer a:not([class*="bg-"]) {
  color: #9AABD8 !important;
}
footer h4 {
  color: #FFFFFF !important;
}
footer a:hover {
  color: #F95025 !important;
}
footer .border-t {
  border-color: rgba(154,171,216,0.2) !important;
}
.site-logo-footer {
  filter: brightness(0) invert(1) !important;
}

/* ---- Gaps en grids ---- */
.gap-6  { gap: 1rem !important; }
.gap-10 { gap: 1.5rem !important; }
.gap-16 { gap: 2.5rem !important; }

/* ---- Decorativos ---- */
.warning-tape-bg {
  background: repeating-linear-gradient(
    -45deg,
    #121143, #121143 18px,
    #F95025 18px, #F95025 36px
  );
}
.bg-pattern-dots {
  background-image: radial-gradient(rgba(154,171,216,0.35) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.pattern-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  min-width: 200%;
}

/* =====================================================
   3D SECTION OBJECTS — Complex, in-section, scroll-activated
   ===================================================== */

/* Wrapper — inline next to titles */
.s3d-wrap {
  pointer-events: none;
  perspective: 600px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
}
.s3d-wrap.s3d-visible {
  opacity: 1;
}
.s3d-inline {
  width: clamp(70px, 6vw, 110px);
  height: clamp(70px, 6vw, 110px);
  position: relative;
}
.s3d-obj {
  transform-style: preserve-3d;
}

/* =========================================================
   1. TESSERACT (Hipercubo 4D) — Nosotros
   ========================================================= */
.tesseract {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: tess-rotate 20s linear infinite;
}
.tess-inner, .tess-outer {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.tess-inner {
  width: 28px; height: 28px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.tess-outer {
  width: 64px; height: 64px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.tess-face {
  position: absolute;
  border: 1.5px solid rgba(34,51,129,0.35);
  background: rgba(34,51,129,0.06);
}
.tess-inner .tess-face { width: 28px; height: 28px; }
.tess-outer .tess-face { width: 64px; height: 64px; }

.tess-inner .tf-1 { transform: translateZ(14px); }
.tess-inner .tf-2 { transform: rotateY(180deg) translateZ(14px); }
.tess-inner .tf-3 { transform: rotateY(90deg) translateZ(14px); }
.tess-inner .tf-4 { transform: rotateY(-90deg) translateZ(14px); }
.tess-inner .tf-5 { transform: rotateX(90deg) translateZ(14px); }
.tess-inner .tf-6 { transform: rotateX(-90deg) translateZ(14px); }

.tess-outer .tf-1 { transform: translateZ(32px); }
.tess-outer .tf-2 { transform: rotateY(180deg) translateZ(32px); }
.tess-outer .tf-3 { transform: rotateY(90deg) translateZ(32px); }
.tess-outer .tf-4 { transform: rotateY(-90deg) translateZ(32px); }
.tess-outer .tf-5 { transform: rotateX(90deg) translateZ(32px); }
.tess-outer .tf-6 { transform: rotateX(-90deg) translateZ(32px); }

/* Connecting edges */
.tess-edge {
  position: absolute;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(249,80,37,0.5), rgba(34,51,129,0.35));
  transform-origin: top center;
  top: 50%; left: 50%;
  height: 22px;
  transform-style: preserve-3d;
}
.te-1 { transform: translate(-50%, -50%) rotateY(0deg) rotateX(-45deg) translateZ(14px); }
.te-2 { transform: translate(-50%, -50%) rotateY(90deg) rotateX(-45deg) translateZ(14px); }
.te-3 { transform: translate(-50%, -50%) rotateY(180deg) rotateX(-45deg) translateZ(14px); }
.te-4 { transform: translate(-50%, -50%) rotateY(270deg) rotateX(-45deg) translateZ(14px); }
.te-5 { transform: translate(-50%, -50%) rotateY(0deg) rotateX(45deg) translateZ(14px); }
.te-6 { transform: translate(-50%, -50%) rotateY(90deg) rotateX(45deg) translateZ(14px); }
.te-7 { transform: translate(-50%, -50%) rotateY(180deg) rotateX(45deg) translateZ(14px); }
.te-8 { transform: translate(-50%, -50%) rotateY(270deg) rotateX(45deg) translateZ(14px); }

@keyframes tess-rotate {
  0%   { transform: rotateX(0deg)   rotateY(0deg)   rotateZ(0deg); }
  25%  { transform: rotateX(90deg)  rotateY(90deg)  rotateZ(0deg); }
  50%  { transform: rotateX(180deg) rotateY(180deg) rotateZ(90deg); }
  75%  { transform: rotateX(270deg) rotateY(90deg)  rotateZ(180deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* =========================================================
   2. ORBITAL SYSTEM — Productos
   ========================================================= */
.orbital {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: orbital-drift 25s linear infinite;
}

.orbital-core {
  position: absolute;
  width: 12px; height: 12px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(249,80,37,0.7), rgba(249,80,37,0.15));
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(249,80,37,0.35);
}

.orbital-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(34,51,129,0.25);
  border-radius: 50%;
  transform-style: preserve-3d;
}
.orbital-r1 {
  width: 46px; height: 46px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(70deg);
  animation: orbit-spin-1 8s linear infinite;
}
.orbital-r2 {
  width: 60px; height: 60px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(50deg) rotateY(30deg);
  animation: orbit-spin-2 12s linear infinite;
}
.orbital-r3 {
  width: 76px; height: 76px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(30deg) rotateY(-60deg);
  animation: orbit-spin-3 16s linear infinite;
}

.orbital-electron {
  position: absolute;
  width: 5px; height: 5px;
  background: var(--brand-mid);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,51,129,0.4);
}
.oe-1 { top: -2px;  left: 50%;  transform: translateX(-50%); }
.oe-2 { bottom: -2px; left: 50%; transform: translateX(-50%); }
.oe-3 { top: 50%;   right: -2px; transform: translateY(-50%); }
.oe-4 { top: -2px;  left: 50%;  transform: translateX(-50%); }
.oe-5 { bottom: -2px; right: 25%; }

@keyframes orbit-spin-1 { 100% { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); } }
@keyframes orbit-spin-2 { 100% { transform: translate(-50%, -50%) rotateX(50deg) rotateY(30deg) rotateZ(-360deg); } }
@keyframes orbit-spin-3 { 100% { transform: translate(-50%, -50%) rotateX(30deg) rotateY(-60deg) rotateZ(360deg); } }
@keyframes orbital-drift {
  0%, 100% { transform: rotateY(0deg) rotateX(15deg); }
  50%      { transform: rotateY(180deg) rotateX(-15deg); }
}

/* =========================================================
   3. DNA HELIX — Por Qué PREMEX
   ========================================================= */
/* DNA Helix — small horizontal variant for inline use */
.dna-helix {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: dna-spin 15s linear infinite;
}
.dna-helix-sm { overflow: visible; }

.dna-strand {
  position: absolute;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
}

/* =====================================================
   REDES SOCIALES — Social Section
   ===================================================== */

.redes-section {
  position: relative;
  background: linear-gradient(135deg, #121143 0%, #1a1a5e 40%, #121143 100%);
  overflow: hidden;
}

/* Patrón tipo textura usando el archivo del usuario */
.redes-bg-pattern {
  background-image: url('../assets/img/Patros JPRE (1).png');
  background-size: 260px auto;
  background-repeat: repeat;
  opacity: 0.06;
  mix-blend-mode: luminosity;
}

/* ---- Social Cards ---- */
.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1),
              box-shadow 0.35s cubic-bezier(.22,1,.36,1),
              border-color 0.35s ease,
              background 0.35s ease;
}

.social-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
}

/* Shine sweep on hover */
.social-card__shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  pointer-events: none;
  transition: left 0.5s ease;
}
.social-card:hover .social-card__shine {
  left: 150%;
}

/* Icon circle */
.social-card__icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}
.social-card:hover .social-card__icon {
  transform: scale(1.12) rotate(-4deg);
}

/* Per-network icon colours */
.social-card--instagram .social-card__icon {
  background: linear-gradient(135deg, #f09433, #e6683c 33%, #dc2743 66%, #bc1888);
  box-shadow: 0 8px 24px rgba(188,24,136,0.35);
}
.social-card--instagram:hover {
  box-shadow: 0 20px 48px rgba(188,24,136,0.30);
}
.social-card--facebook .social-card__icon {
  background: #1877F2;
  box-shadow: 0 8px 24px rgba(24,119,242,0.35);
}
.social-card--facebook:hover {
  box-shadow: 0 20px 48px rgba(24,119,242,0.30);
}
.social-card--tiktok .social-card__icon {
  background: #010101;
  box-shadow: 0 8px 24px rgba(1,1,1,0.5);
}
.social-card--tiktok .social-card__icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(#69C9D0, #EE1D52, #010101, #69C9D0);
  z-index: -1;
  animation: tiktok-spin 3s linear infinite;
}
@keyframes tiktok-spin {
  to { transform: rotate(360deg); }
}
.social-card--tiktok:hover {
  box-shadow: 0 20px 48px rgba(238,29,82,0.22);
}

.social-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.social-card__label {
  font-family: 'Audiowide', sans-serif;
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: 0.06em;
}
.social-card__handle {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 0.85rem;
  color: rgba(154,171,216,0.85);
  letter-spacing: 0.03em;
}
.social-card__cta {
  margin-top: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F95025;
  transition: letter-spacing 0.2s ease;
}
.social-card:hover .social-card__cta {
  letter-spacing: 0.2em;
}

/* Banner portada Facebook */
.redes-banner {
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.redes-banner img {
  border-radius: 16px !important;
}

/* Section override — keep dark bg padding consistent */
#redes.redes-section {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

/* =====================================================
   ANIMACIONES GSAP / CSS PREMIUM
   ===================================================== */

/* --- Entrada con clip-path --- */
@keyframes reveal-up {
  from { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(24px); }
  to   { opacity: 1; clip-path: inset(0% 0 0 0);   transform: translateY(0); }
}
.anim-reveal-up {
  animation: reveal-up 0.7s cubic-bezier(.22,1,.36,1) both;
}

/* --- Fade-in con desplazamiento suave --- */
@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up {
  animation: fade-slide-up 0.65s cubic-bezier(.22,1,.36,1) both;
}

/* --- Underline draw (títulos) --- */
@keyframes underline-draw {
  from { width: 0; }
  to   { width: 100%; }
}

/* --- Float suave (hero badges) --- */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}
.anim-float { animation: float-gentle 4s ease-in-out infinite; }

/* --- Contador pulsante --- */
@keyframes counter-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); color: #F95025; }
  100% { transform: scale(1); }
}
.counter.done { animation: counter-pop 0.4s ease; }

/* --- Glint en logos de redes sobre hover --- */
@keyframes glint {
  0%   { opacity: 0; left: -60%; }
  40%  { opacity: 1; }
  100% { opacity: 0; left: 110%; }
}

/* --- Gradient border animado (cards hover) --- */
/* Nota: no se aplica por defecto para evitar conflictos */

/* --- Section reveal con máscara (solo si se aplica manualmente la clase) --- */
.section-reveal-enabled {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.section-reveal-enabled.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Stagger on card grids (solo si se aplica manualmente la clase) --- */
.stagger-item-enabled {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.22,1,.36,1);
}
.stagger-item-enabled.visible {
  opacity: 1;
  transform: translateY(0);
}


.dna-node {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  left: 50%;
  transform-style: preserve-3d;
}

/* Strand A — blue */
.dna-a .dna-node {
  background: radial-gradient(circle, rgba(34,51,129,0.7), rgba(34,51,129,0.3));
  box-shadow: 0 0 6px rgba(34,51,129,0.3);
  top: calc(var(--j) * 12px + 2px);
  animation: dna-node-a 4s ease-in-out infinite;
  animation-delay: calc(var(--j) * -0.33s);
}
/* Strand B — orange (180deg offset) */
.dna-b .dna-node {
  background: radial-gradient(circle, rgba(249,80,37,0.7), rgba(249,80,37,0.3));
  box-shadow: 0 0 6px rgba(249,80,37,0.3);
  top: calc(var(--j) * 12px + 2px);
  animation: dna-node-b 4s ease-in-out infinite;
  animation-delay: calc(var(--j) * -0.33s);
}

/* Bonds connecting strands */
.dna-bonds { position: absolute; width: 100%; height: 100%; transform-style: preserve-3d; }
.dna-bond {
  position: absolute;
  height: 1.5px;
  width: 28px;
  left: 50%;
  transform: translateX(-50%);
  top: calc(var(--j) * 12px + 5px);
  background: linear-gradient(90deg, rgba(34,51,129,0.25), rgba(154,171,216,0.2), rgba(249,80,37,0.25));
  border-radius: 1px;
  animation: dna-bond-pulse 4s ease-in-out infinite;
  animation-delay: calc(var(--j) * -0.33s);
}

@keyframes dna-node-a {
  0%, 100% { transform: translateX(calc(-50% + 28px)) translateZ(0); }
  25%      { transform: translateX(-50%) translateZ(28px); }
  50%      { transform: translateX(calc(-50% - 28px)) translateZ(0); }
  75%      { transform: translateX(-50%) translateZ(-28px); }
}
@keyframes dna-node-b {
  0%, 100% { transform: translateX(calc(-50% - 28px)) translateZ(0); }
  25%      { transform: translateX(-50%) translateZ(-28px); }
  50%      { transform: translateX(calc(-50% + 28px)) translateZ(0); }
  75%      { transform: translateX(-50%) translateZ(28px); }
}
@keyframes dna-bond-pulse {
  0%, 100% { opacity: 0.5; width: 28px; }
  50%      { opacity: 0.15; width: 8px; }
}
@keyframes dna-spin {
  100% { transform: rotateY(360deg); }
}

/* =========================================================
   4. GEODESIC SPHERE — FAQ
   ========================================================= */
.geosphere {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: geosphere-rotate 22s linear infinite;
}

.geo-ring-h, .geo-ring-v, .geo-ring-d {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(249,80,37,0.3);
  border-radius: 50%;
}

.geo-rh-1 { transform: rotateX(0deg); }
.geo-rh-2 { transform: rotateX(60deg); }
.geo-rh-3 { transform: rotateX(-60deg); }

.geo-rv-1 { transform: rotateY(0deg); }
.geo-rv-2 { transform: rotateY(60deg); }
.geo-rv-3 { transform: rotateY(-60deg); }

.geo-rd-1 { transform: rotateX(45deg) rotateY(45deg); border-color: rgba(34,51,129,0.12); }
.geo-rd-2 { transform: rotateX(-45deg) rotateY(-45deg); border-color: rgba(34,51,129,0.12); }

@keyframes geosphere-rotate {
  0%   { transform: rotateX(0deg)   rotateY(0deg)   rotateZ(0deg); }
  33%  { transform: rotateX(120deg) rotateY(90deg)  rotateZ(60deg); }
  66%  { transform: rotateX(240deg) rotateY(180deg) rotateZ(120deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg); }
}

/* =========================================================
   RESPONSIVE — 3D Objects
   ========================================================= */
@media (max-width: 639px) {
  .s3d-wrap { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .s3d-inline { width: 50px; height: 50px; }
}
