/* ==========================================================================
   EvolucionaT — Sistema de Diseño
   ========================================================================== */

:root {
  /* Paleta */
  --color-red: #E63329;
  --color-red-dark: #C42820;
  --color-red-light: #FF4A3F;
  --color-charcoal: #2D2D2D;
  --color-graphite: #6B6B6B;
  --color-light-gray: #F4F4F5;
  --color-border: #E5E7EB;
  --color-white: #FFFFFF;
  --color-blue: #1E40AF;
  --color-success: #10B981;

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Espaciado */
  --container-max: 1240px;
  --section-py: clamp(4rem, 8vw, 7rem);

  /* Bordes y sombras */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.12);
  --shadow-red: 0 12px 28px rgba(230, 51, 41, 0.25);

  /* Transiciones */
  --t-fast: 150ms ease;
  --t-base: 250ms cubic-bezier(.4,0,.2,1);
  --t-slow: 450ms cubic-bezier(.4,0,.2,1);
}

/* ==========================================================================
   Reset y base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { color: var(--color-graphite); }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: var(--section-py) 0; }
.section-light { background: var(--color-light-gray); }
.section-dark { background: var(--color-charcoal); color: var(--color-white); }
.section-dark p { color: rgba(255,255,255,0.75); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 1rem;
}
.section-head h2 { margin-bottom: 1rem; }
.section-head p { font-size: 1.125rem; }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--t-base);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: var(--color-red-dark); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(230,51,41,0.35); }
.btn-secondary {
  background: var(--color-white);
  color: var(--color-charcoal);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-charcoal); transform: translateY(-2px); }
.btn-ghost { color: var(--color-charcoal); }
.btn-ghost:hover { color: var(--color-red); }
.btn-dark {
  background: var(--color-charcoal);
  color: var(--color-white);
}
.btn-dark:hover { background: #1a1a1a; transform: translateY(-2px); }
.btn-icon { width: 18px; height: 18px; transition: transform var(--t-base); }
.btn:hover .btn-icon { transform: translateX(3px); }

/* ==========================================================================
   Header / Navegación
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all var(--t-base);
}
.header.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}
.nav-logo .logo-icon { width: 52px; height: 52px; }
.nav-logo .accent { color: var(--color-red); }
.nav { height: 92px; }
@media (max-width: 960px) {
  .nav { height: 80px; }
  .nav-logo { font-size: 1.5rem; }
  .nav-logo .logo-icon { width: 44px; height: 44px; }
  .nav-menu { inset: 80px 0 auto 0; }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-charcoal);
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--color-red);
  transition: width var(--t-base);
}
.nav-menu a:hover::after { width: 100%; }
.nav-menu a:hover { color: var(--color-red); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-charcoal);
  position: relative;
  transition: all var(--t-base);
}
.menu-toggle span::before, .menu-toggle span::after {
  content: '';
  position: absolute;
  width: 22px; height: 2px;
  background: var(--color-charcoal);
  transition: all var(--t-base);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.open span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-menu {
    position: fixed;
    inset: 80px 0 auto 0;
    flex-direction: column;
    background: var(--color-white);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-150%);
    transition: transform var(--t-base);
    align-items: flex-start;
  }
  .nav-menu.open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .nav-cta .btn-secondary { display: none; }
  /* Botón demo más compacto en tablet */
  .nav-cta .btn-primary { padding: 0.55rem 1rem; font-size: 0.85rem; }
}

/* En móvil ocultamos el botón "Solicitar Demo" del navbar para no tapar el logo.
   El usuario lo encuentra al abrir el menú hamburguesa → Contacto */
@media (max-width: 640px) {
  .nav-cta .btn-primary { display: none; }
  .nav-logo { font-size: 1.25rem; gap: 0.5rem; }
  .nav-logo .logo-icon { width: 38px; height: 38px; }
  .nav { height: 70px; }
  .nav-menu { inset: 70px 0 auto 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(230,51,41,0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(30,64,175,0.05), transparent 60%),
    var(--color-white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(230,51,41,0.08);
  color: var(--color-red);
  border-radius: 99px;
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--color-red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--color-red); }
.hero-sub {
  font-size: 1.2rem;
  color: var(--color-graphite);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.6;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-meta .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-charcoal);
}
.hero-meta .stat span {
  font-size: 0.85rem;
  color: var(--color-graphite);
}
.hero-meta .divider {
  width: 1px; height: 32px;
  background: var(--color-border);
}

/* Hero visual: cards apiladas */
.hero-visual {
  position: relative;
  height: 580px;
}
.float-card {
  position: absolute;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  animation: float 6s ease-in-out infinite;
}
.float-card .card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--color-red);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  flex-shrink: 0;
}
.float-card .card-icon svg { width: 22px; height: 22px; }
.float-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-charcoal);
  font-weight: 700;
  margin-bottom: 0.125rem;
}
.float-card span {
  font-size: 0.8rem;
  color: var(--color-graphite);
}
.float-card.alt .card-icon { background: var(--color-charcoal); }
.float-card.blue .card-icon { background: var(--color-blue); }

.fc-1 { top: 0%; left: 0; animation-delay: 0s; }
.fc-2 { top: 16%; right: 0; animation-delay: 1s; }
.fc-3 { top: 33%; left: 10%; animation-delay: 2s; }
.fc-4 { top: 50%; right: 6%; animation-delay: 0.5s; }
.fc-5 { top: 67%; left: 2%; animation-delay: 1.5s; }
.fc-6 { top: 86%; right: 4%; animation-delay: 2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}

@media (max-width: 960px) {
  .hero { padding: 8rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { height: 460px; }
  .hero-meta { gap: 1.25rem; }
  .hero-meta .divider { display: none; }
}

/* ==========================================================================
   Logos clientes
   ========================================================================== */
.clients {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.clients-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-graphite);
  margin-bottom: 1.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}
.client-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-graphite);
  opacity: 0.7;
  transition: opacity var(--t-base);
  text-align: center;
}
.client-logo:hover { opacity: 1; color: var(--color-charcoal); }

/* ==========================================================================
   Productos (cards grid)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card:hover::before { transform: scaleX(1); }

.product-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-red);
}
.product-icon svg { width: 28px; height: 28px; }
.product-card.dark .product-icon {
  background: linear-gradient(135deg, var(--color-charcoal), #444);
  box-shadow: 0 12px 28px rgba(45,45,45,0.25);
}
.product-card.blue .product-icon {
  background: linear-gradient(135deg, var(--color-blue), #1e3a8a);
  box-shadow: 0 12px 28px rgba(30,64,175,0.25);
}

.product-card h3 { margin-bottom: 0.625rem; color: var(--color-charcoal); }
.product-card p { font-size: 0.95rem; flex: 1; margin-bottom: 1.25rem; }

.product-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  background: var(--color-light-gray);
  color: var(--color-graphite);
  border-radius: 99px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-red);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}
.product-link:hover { gap: 0.65rem; }

@media (max-width: 960px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .products-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pilares / Por qué EvolucionaT
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.pillar {
  text-align: left;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: all var(--t-base);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(230,51,41,0.1);
  color: var(--color-red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--color-charcoal);
}
.pillar p { font-size: 0.95rem; }

@media (max-width: 960px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Industrias / Sectores
   ========================================================================== */
.industries {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.industry {
  background: var(--color-white);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--t-base);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-charcoal);
}
.industry:hover { background: var(--color-charcoal); color: var(--color-white); transform: translateY(-3px); }
.industry svg { width: 28px; height: 28px; margin: 0 auto 0.625rem; display: block; color: var(--color-red); transition: color var(--t-base); }
.industry:hover svg { color: var(--color-white); }

@media (max-width: 960px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .industries { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   CTA estadísticas (banda)
   ========================================================================== */
.stats-band {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #1a1a1a 100%);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(230,51,41,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.stat-item { text-align: center; position: relative; }
.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}
.stat-item .stat-accent { color: var(--color-red-light); }
.stat-item span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.stats-band.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 2.5rem 1.5rem; gap: 1.5rem; }
  .stats-band.cols-3 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Servicios secundarios
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service {
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--t-base);
  background: var(--color-white);
}
.service:hover {
  border-color: var(--color-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-light-gray);
  color: var(--color-charcoal);
  margin-bottom: 1.25rem;
}
.service:hover .service-icon { background: var(--color-red); color: var(--color-white); }
.service-icon svg { width: 26px; height: 26px; }
.service h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.625rem;
  color: var(--color-charcoal);
}
.service p { font-size: 0.95rem; }

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

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  background: var(--color-charcoal);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(230,51,41,0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30,64,175,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 { color: var(--color-white); margin-bottom: 1rem; }
.cta-final p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 2rem; font-size: 1.125rem; }
.cta-final .btn-primary { background: var(--color-red); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #0F0F0F;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { color: var(--color-white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-base);
}
.footer-social a:hover { background: var(--color-red); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

.footer h5 {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.footer ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer a { font-size: 0.9rem; transition: color var(--t-fast); }
.footer a:hover { color: var(--color-red-light); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 60px; height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 99;
  transition: all var(--t-base);
  animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; }

/* ==========================================================================
   Animaciones de scroll
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Páginas internas (productos, contacto)
   ========================================================================== */
.page-hero {
  padding: 11rem 0 5rem;
  background:
    radial-gradient(ellipse at top, rgba(230,51,41,0.08), transparent 60%),
    var(--color-light-gray);
  text-align: center;
}
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--color-graphite);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: var(--color-red); }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { font-size: 1.2rem; max-width: 720px; margin: 0 auto 2rem; }

.product-hero {
  padding: 11rem 0 5rem;
  background:
    radial-gradient(ellipse at top right, rgba(230,51,41,0.08), transparent 60%),
    var(--color-white);
}
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.product-hero h1 .accent { color: var(--color-red); }
.product-hero .breadcrumb { font-size: 0.85rem; color: var(--color-graphite); margin-bottom: 1.25rem; }
.product-hero .breadcrumb a { color: var(--color-red); }

.product-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}
.product-hero-image img { width: 100%; display: block; }

@media (max-width: 960px) {
  .product-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature {
  padding: 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--t-base);
}
.feature:hover { border-color: var(--color-red); }
.feature-check {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(230,51,41,0.1);
  color: var(--color-red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.875rem;
}
.feature-check svg { width: 18px; height: 18px; }
.feature h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-charcoal);
}
.feature p { font-size: 0.9rem; }

@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features-grid { grid-template-columns: 1fr; } }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base);
}
.gallery-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info { padding: 2.5rem; background: var(--color-charcoal); color: var(--color-white); border-radius: var(--radius-lg); }
.contact-info h3 { color: var(--color-white); margin-bottom: 1rem; }
.contact-info p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--color-red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 18px; height: 18px; color: white; }
.contact-item strong { display: block; color: var(--color-white); margin-bottom: 0.125rem; font-size: 0.95rem; }
.contact-item span, .contact-item a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.contact-item a:hover { color: var(--color-red-light); }

.contact-form {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-charcoal);
}
.form-control {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--t-fast);
  background: var(--color-white);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(230,51,41,0.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Honeypot — invisible para humanos, visible para bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* Alerta de error en formulario */
.form-alert {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Utilidades
   ========================================================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
