/* ==========================================================================
   Variables y Theming
   ========================================================================== */
:root {
  /* Paleta de Colores Base - Tema Claro */
--bg-color: #ffffff;
  --bg-secondary: #f4f6f9;
  --text-main: #1a1a1a;
  --text-muted: #555555;
  --border-color: #e0e0e0;
  
  /* Colores Corporativos */
  --corp-blue: #0255BC;
  --corp-red: #FF0000;
  
  /* Colores Secundarios (Líneas) */
  --accent-blue: #0A74DA;
  --accent-red: #D90000;
  --accent-green: #2ecc71;
  --accent-orange: #f39c12;
  --accent-yellow: #f1c40f;
  --accent-vibrant-blue: #00c3ff;

  /* Colores de Línea Pecuaria */
  --accent-porcino: var(--corp-red);
  --accent-bovino: #8b4513; 
  --accent-aves: #f1c40f;
  --accent-mascotas: #00c3ff;
  
  /* Text & Surfaces */
  --text-primary: var(--text-main);
  --text-white: #ffffff;
  --text-black: #000000;
  --surface: var(--bg-color);

/* Tipografía Oficial (Manual de Identidad) */
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  
/* Sistema de Espaciado & Bordes */
  --space-md: 2rem;
  --space-lg: 4rem;
  --radius-md: 16px;
  --radius-pill: 9999px;
  
  /* Varias */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Sombras y Transiciones */
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);


  /* View Transition Names */
  view-transition-name: root;
}

[data-theme="dark"] {
  --bg-color: #0f172a;
  --bg-secondary: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --border-color: #334155;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.4);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.5);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.6);
  --surface: #1e293b;
  --text-primary: #f8fafc;
}

/* Fix for standard inputs and labels in dark mode */
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #64748b;
}

[data-theme="dark"] select option {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}

[data-theme="dark"] label {
  color: var(--text-main);
}

.moon-icon {
  display: none;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.section-container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: color-mix(in srgb, var(--bg-color) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 1100;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s, backdrop-filter 0.3s;
}

.site-header.menu-active {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  height: 80px;
}

.brand-logo .logo-img {
  height: 48px;
  width: auto;
  transition: filter var(--transition-fast), content var(--transition-fast);
}

[data-theme="dark"] .brand-logo .logo-img {
  content: url("../img/logo_noche.png");
}


/* === Mobile Menu Toggle === */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 6px;
  z-index: 1100;
  transition: var(--transition-fast);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger active state (convert to X) */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 767px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-color);
    z-index: 1050;
    padding: 100px 5% 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1.25rem;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .btn-simulador {
    margin-top: 1rem;
    text-align: center;
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Social icons in mobile nav */
  .nav-list {
    align-items: flex-start;
  }
  .nav-soc-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin: 0;
  }
  .nav-soc-item {
    display: inline-flex;
  }
  /* Group icons in a row */
  .nav-soc-item + .nav-soc-item {
    margin-top: 0;
  }
  /* Wrap the two social icons in a flex row using adjacent sibling trick via parent */
  .nav-soc-item:first-of-type {
    margin-right: 0.75rem;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
  .main-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Social icons inside the nav — modern elegant override */
.nav-soc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  box-shadow: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-soc:hover {
  transform: translateY(-3px) scale(1.12);
}

/* Facebook nav override */
.nav-soc.fsoc-fb {
  background: transparent;
  box-shadow: none;
}
.nav-soc.fsoc-fb:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #fff;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
}

/* WhatsApp nav override */
.nav-soc.fsoc-wa {
  background: transparent;
  box-shadow: none;
}
.nav-soc.fsoc-wa:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.nav-soc-divider {
  width: 1px;
  height: 22px;
  background: var(--border-color);
  margin: 0 4px;
  flex-shrink: 0;
}

.nav-soc-item {
  display: flex;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition-fast);
}
.nav-link:hover {
  color: var(--corp-blue);
}

.btn-simulador {
  background: var(--corp-blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: background var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 4px 6px -1px rgba(0, 82, 161, 0.2);
}

.btn-simulador:hover {
  background: var(--corp-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px -1px rgba(227, 30, 36, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.action-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-main);
  transition: background var(--transition-fast);
}
.action-btn:hover {
  background: var(--bg-secondary);
}

.cart-island {
  position: relative;
}
.cart-counter {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--corp-red);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-main);
  transition: background var(--transition-fast);
  view-transition-name: theme-toggle;
}
.theme-toggle:hover {
  background: var(--bg-secondary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; /* offset header */
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)), url('../img/fondo.jpeg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hex-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-md);
  color: #fff;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: var(--space-sm);
  letter-spacing: -1px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: var(--space-lg);
  font-weight: 300;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  view-transition-name: cta-button;
}

.primary-cta {
  background-color: var(--corp-red);
  color: white;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4);
}
.primary-cta:hover {
  transform: translateY(-2px);
  background-color: #e60000;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}

/* ==========================================================================
   Nutrición Section — Premium Split Layout
   ========================================================================== */
.nutricion-section {
  background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 60%, #0f1923 100%);
  padding: 6rem 5%;
  position: relative;
  overflow: hidden;
}

/* Subtle ambient bg glow */
.nutricion-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,122,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.nutricion-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 900px) {
  .nutricion-container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* === Tag === */
.nutricion-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FF7A00;
  background: rgba(255,122,0,0.12);
  border: 1px solid rgba(255,122,0,0.35);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}

/* === Title === */
.nutricion-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
}

.nutricion-title em {
  font-style: normal;
  background: linear-gradient(90deg, #FF7A00, #FFB74D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Description === */
.nutricion-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

/* === Feature List === */
.nutricion-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.nf-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border-left: 3px solid #FF7A00;
  transition: background 0.3s ease, transform 0.3s ease;
}

.nf-item:hover {
  background: rgba(255,122,0,0.10);
  transform: translateX(4px);
}

.nf-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.nf-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.nf-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.5;
}

/* === Stats Row === */
.nutricion-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 1.5rem;
}

.nstat {
  display: flex;
  flex-direction: column;
}

.nstat-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #FF7A00;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.nstat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.50);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* === Visual Side === */
.nutricion-visual {
  position: relative;
}

.nutricion-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.nutricion-img-bg {
  width: 100%;
  height: 480px;
  background-image: url('../img/cerdos.png');
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}

.nutricion-img-wrap:hover .nutricion-img-bg {
  transform: scale(1.04);
}

/* Gradient overlay on image */
.nutricion-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.7) 0%, transparent 60%);
  pointer-events: none;
}

/* === Floating Badge === */
.nutricion-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,122,0,0.95);
  border-radius: 14px;
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(255,122,0,0.40);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.nb-icon {
  font-size: 1.4rem;
  font-weight: 900;
  background: rgba(255,255,255,0.25);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Dark mode overrides */
[data-theme="light"] .nutricion-section {
  background: linear-gradient(135deg, #1a1f2e 0%, #0d1117 100%);
}


/* ==========================================================================
   Líneas Pecuarias — Hexagonal Cards
   ========================================================================== */
.products-section {
  background: var(--bg-color);
}

.products-container-query {
  container-type: inline-size;
  container-name: products;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 2rem;
  justify-content: center;
  padding: 2rem 0 3rem;
}

/* === Hex Card Wrapper === */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
  position: relative;
  width: 200px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: none;
}

/* === Hex Image Shell === */
.card-image {
  width: 200px;
  height: 220px;
  position: relative;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, #FF7A00 0%, #FF9E35 45%, #FFB74D 100%);
  display: grid;
  place-items: center;
  transition: filter 0.35s ease;
  overflow: visible;
}

/* Inner image container keeps the clip */
.card-image::before {
  content: '';
  position: absolute;
  inset: 3px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: #fff9f2;
  z-index: 0;
}

.card-image img {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 72%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 8px rgba(255, 122, 0, 0.25));
}

.scale-img-pig {
  transform: scale(1.25);
}

.product-card:hover .card-image img {
  transform: scale(1.12);
}

.product-card:hover .card-image .scale-img-pig {
  transform: scale(1.35);
}

/* Glow ring on hover */
.product-card:hover .card-image {
  filter: drop-shadow(0 0 18px rgba(255, 140, 0, 0.65));
}

/* === Consumption Overlay inside hex === */
.consumption-overlay {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(255, 122, 0, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.5rem;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.product-card:hover .consumption-overlay {
  opacity: 1;
  transform: scale(1);
}

.consumption-overlay h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease 0.1s;
}

.product-card:hover .consumption-overlay h4 {
  opacity: 1;
  transform: translateY(0);
}

.consumption-overlay ul {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.consumption-overlay li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.72rem;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}

.product-card:hover .consumption-overlay li { opacity: 1; transform: translateY(0); }
.product-card:hover .consumption-overlay li:nth-child(1) { transition-delay: 0.12s; }
.product-card:hover .consumption-overlay li:nth-child(2) { transition-delay: 0.17s; }
.product-card:hover .consumption-overlay li:nth-child(3) { transition-delay: 0.22s; }
.product-card:hover .consumption-overlay li:nth-child(4) { transition-delay: 0.27s; }
.product-card:hover .consumption-overlay li:nth-child(5) { transition-delay: 0.32s; }

.consumption-overlay li:last-child { border-bottom: none; }

.consumption-overlay li span:first-child { font-weight: 700; }
.consumption-overlay li span:last-child  { font-weight: 600; color: #ffe0b2; }

/* === Card Label below hex === */
.card-content {
  text-align: center;
  margin-top: 1rem;
  padding: 0;
}

.card-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.card-subtitle {
  font-size: 0.8rem;
  color: #FF7A00;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Accent overrides — all unified to orange hex style, accents kept subtle */
.product-card[data-accent="blue"]    .card-image { background: linear-gradient(135deg, #1565C0, #42A5F5); }
.product-card[data-accent="green"]   .card-image { background: linear-gradient(135deg, #2E7D32, #66BB6A); }
.product-card[data-accent="yellow"]  .card-image { background: linear-gradient(135deg, #F9A825, #FFD54F); }
.product-card[data-accent="vibrant-blue"] .card-image { background: linear-gradient(135deg, #0052A1, #00B4FF); }
.product-card[data-accent="blue"]    .consumption-overlay { background: rgba(21, 101, 192, 0.94); }
.product-card[data-accent="green"]   .consumption-overlay { background: rgba(46, 125, 50, 0.94); }
.product-card[data-accent="yellow"]  .consumption-overlay { background: rgba(249, 168, 37, 0.94); }
.product-card[data-accent="vibrant-blue"] .consumption-overlay { background: rgba(0, 82, 161, 0.94); }

/* ==========================================================================
   Concept Section (Earth to Farm)
   ========================================================================== */
.concept-section {
  background: var(--bg-color);
  padding: var(--space-xl) 5%;
  position: relative;
  overflow: hidden;
}

.concept-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .concept-content {
    grid-template-columns: 1fr 1.2fr;
  }
}

.concept-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.concept-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.concept-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.concept-features li span {
  color: var(--corp-blue);
  font-size: 1.2rem;
}

.concept-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-smooth);
}

.concept-image-container:hover {
  transform: scale(1.02);
}

.concept-main-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-section {
  background: var(--bg-secondary);
}

.process-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-lg) auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.process-img-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.process-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Value Add (3D)
   ========================================================================== */
.value-add-section {
  background: var(--bg-color);
  padding: var(--space-xl) 5%;
}

.value-add-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .value-add-container {
    grid-template-columns: 1fr 1fr;
  }
}

.model-island {
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--bg-secondary) 0%, var(--bg-color) 70%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.model-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
}

.interaction-prompt {
  background: var(--corp-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: background var(--transition-fast);
}
.interaction-prompt:hover {
  background: var(--accent-blue);
}

.qr-demo-btn {
  margin-top: 15px;
  background: var(--corp-red);
}

.motion-text {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: var(--space-md);
  background: linear-gradient(90deg, var(--corp-blue), var(--corp-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.value-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog-section {
  background: var(--bg-secondary);
}

.blog-container-query {
  container-type: inline-size;
  container-name: blog;
}

.blog-grid {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-md);
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for the pasarela */
.blog-grid::-webkit-scrollbar {
  height: 8px;
}
.blog-grid::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
}
.blog-grid::-webkit-scrollbar-thumb {
  background: var(--corp-blue);
  border-radius: var(--radius-pill);
}

.blog-card {
  flex: 0 0 auto;
  width: 90%;
  max-width: 320px;
  scroll-snap-align: start;
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--corp-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
}

.blog-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.blog-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.read-more {
  font-weight: 600;
  color: var(--corp-red);
  font-size: 0.9rem;
}
.read-more:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Simulator Section
   ========================================================================== */
.simulator-section {
  background: var(--bg-secondary);
  padding: var(--space-xl) 5%;
}

.simulator-container {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .simulator-container {
    grid-template-columns: 1fr 1fr;
  }
}

.simulator-form-panel p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.simulator-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--corp-blue);
}

.simulator-results-panel {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.res-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: var(--space-md);
  border-left: 2px solid var(--border-color);
  padding-left: 1rem;
  max-height: 250px;
  overflow-y: auto;
}

.res-stage {
  position: relative;
  padding: 0.2rem 0;
}
.res-stage::before {
  content: '';
  position: absolute;
  left: -1.35rem;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--corp-blue);
}

.res-stage-name {
  font-weight: 600;
  display: block;
  font-size: 0.88rem;
}

.res-stage-val {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.res-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-top: auto;
}

.res-box {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.highlight-box {
  background: var(--corp-blue);
  color: white;
}

.res-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.res-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.sim-note {
  font-size: 0.75rem;
  color: var(--text-white);
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #000;
  color: #fff;
  padding: var(--space-xl) 5% var(--space-md) 5%;
}
[data-theme="light"] .site-footer {
  background: #0d1117; 
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: var(--space-lg);
}

@media (min-width: 600px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr 2fr;
  }
}

.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.footer-logo .logo-img-footer {
  height: 56px;
  width: auto;
}

.brand-col address {
  font-style: normal;
  color: #aaa;
  line-height: 1.8;
}

.links-col h4, .newsletter-col h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.links-col ul li {
  margin-bottom: var(--space-xs);
}
.links-col a {
  color: #aaa;
  transition: color var(--transition-fast);
}
.links-col a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.social-icons a {
  color: #aaa;
  transition: color var(--transition-fast);
}
.social-icons a:hover {
  color: #fff;
}

.newsletter-form {
  display: flex;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  padding: 0.25rem;
}
.newsletter-form input {
  flex: 1;
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  color: #fff;
  outline: none;
}
.newsletter-form input::placeholder {
  color: #aaa;
}
.submit-btn {
  background: var(--corp-blue);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.submit-btn:hover {
  background: var(--accent-blue);
}

.footer-bottom {
  max-width: 1280px;
  margin: var(--space-md) auto 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* ==========================================================================
   View Transitions API Global Rule
   ========================================================================== */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
}

/* ==========================================================================
   QR Video Modal & Animation
   ========================================================================== */
.qr-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qr-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qr-modal-content {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  max-width: 900px;
  width: 90%;
  padding: var(--space-md);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qr-modal-overlay.active .qr-modal-content {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .qr-modal-content {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-lg);
  }
}

.qr-close-btn {
  position: absolute;
  top: 15px; right: 15px;
  font-size: 2rem;
  color: var(--text-muted);
  width: 40px; height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}

.qr-close-btn:hover {
  background: var(--corp-red);
  color: white;
}

.qr-video-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: #222;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 2px #555;
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 25px;
  background: #222;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Scan View Overlay */
.scan-view {
  width: 100%;
  height: 100%;
  background: url('../img/bovino.png') center/cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.scan-view::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.qr-target {
  width: 180px;
  height: 180px;
  border: 4px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.qr-target::before, .qr-target::after,
.qr-target span::before, .qr-target span::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-color: #2ecc71;
  border-style: solid;
}
.qr-target::before { top: -4px; left: -4px; border-width: 4px 0 0 4px; }
.qr-target::after { top: -4px; right: -4px; border-width: 4px 4px 0 0; }
.qr-target span { position: absolute; inset: 0; }
.qr-target span::before { bottom: -4px; left: -4px; border-width: 0 0 4px 4px; }
.qr-target span::after { bottom: -4px; right: -4px; border-width: 0 4px 4px 0; }

.scan-line {
  width: 100%;
  height: 3px;
  background: #2ecc71;
  box-shadow: 0 0 10px #2ecc71, 0 0 20px #2ecc71;
  position: absolute;
  top: 0; left: 0;
  animation: scan 2s linear infinite;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.scan-text {
  position: relative;
  z-index: 2;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Nutritional View */
.nutritional-view {
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  animation: slideUp 0.4s ease-out forwards;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.nutritional-view h4 {
  color: var(--corp-blue);
  font-size: 1.1rem;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 10px;
}

.nutri-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.nutri-row span:last-child {
  font-weight: 700;
  color: var(--text-main);
}

.lote-info {
  margin-top: 20px;
  padding: 10px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
  font-family: monospace;
}

.qr-modal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qr-modal-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--corp-blue);
}

.qr-modal-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}



/* ==========================================================================
   Process Section — Bento Grid
   ========================================================================== */
.process-section {
  background: var(--bg-color);
  padding: 6rem 5%;
}

.process-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* Header */
.process-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.process-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FF7A00;
  background: rgba(255,122,0,0.10);
  border: 1px solid rgba(255,122,0,0.30);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1rem;
}

.process-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.process-title em {
  font-style: normal;
  background: linear-gradient(90deg, #FF7A00, #FFB74D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Bento Grid */
.process-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .process-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 340px 260px;
  }
  .pbento-lg {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }
}

/* Bento Card Base */
.pbento-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: default;
}

.pbento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}

.pbento-card:hover img {
  transform: scale(1.06);
}

/* Heights */
.pbento-lg  { min-height: 340px; }
.pbento-sm  { min-height: 240px; }

/* Gradient overlay on image cards */
.pbento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.20) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  gap: 0.5rem;
}

.pbento-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #FF7A00;
  line-height: 1;
  opacity: 0.85;
}

.pbento-overlay strong {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.pbento-overlay p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.70);
  margin: 0;
  line-height: 1.5;
}

/* Stat Card */
.pbento-stat {
  background: linear-gradient(135deg, #FF7A00 0%, #e05800 100%);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pbento-stat-inner {
  text-align: center;
  padding: 2rem;
  color: #fff;
}

.pbento-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}

.pbento-stat-label {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.90;
  display: block;
  margin-bottom: 1.25rem;
}

.pbento-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

.pbento-checks li {
  font-size: 0.88rem;
  padding: 0.3rem 0;
  opacity: 0.85;
  border-bottom: 1px solid rgba(255,255,255,0.20);
}

.pbento-checks li:last-child { border-bottom: none; }

/* ==========================================================================
   Simulador de Consumo — Premium Section
   ========================================================================== */
.simulator-section {
  position: relative;
  padding: 6rem 5%;
  background: linear-gradient(135deg, #0a0f1e 0%, #0d1117 50%, #0f1a2e 100%);
  overflow: hidden;
}

/* Ambient orbs */
.simulator-section::before,
.simulator-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.simulator-section::before {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(0,82,161,0.20) 0%, transparent 70%);
}
.simulator-section::after {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, rgba(255,122,0,0.15) 0%, transparent 70%);
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Simulator headline */
.simulator-section .section-container > h2,
.simulator-section h2:first-child {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.simulator-container {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .simulator-container {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* ── Form Panel ── */
.simulator-form-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 2.5rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

/* Orange top-edge accent */
.simulator-form-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF7A00, #0052A1);
  border-radius: 24px 24px 0 0;
}

.simulator-form-panel h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.simulator-form-panel > p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.simulator-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.60);
}

.form-group select,
.form-group input[type="number"] {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select option {
  background: #1a1f2e;
  color: #fff;
}

.form-group select:focus,
.form-group input[type="number"]:focus {
  border-color: #FF7A00;
  background: rgba(255,122,0,0.08);
}

.form-group input[type="number"]::placeholder {
  color: rgba(255,255,255,0.30);
}

.simulator-form .cta-button {
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #FF7A00, #e05800);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(255,122,0,0.30);
}

.simulator-form .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,122,0,0.45);
}

/* ── Results Panel ── */
.simulator-results-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 85vh;
  overflow-y: auto;
}

.simulator-results-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0052A1, #FF7A00);
  border-radius: 24px 24px 0 0;
}

.simulator-results-panel h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.simulator-results-panel > p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.50);
  line-height: 1.6;
  margin: 0;
}

/* Timeline (stages) */
.res-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 5px;
}

.res-stage {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border-left: 3px solid #FF7A00;
  flex-wrap: wrap;
}

.res-stage-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.res-stage-val {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.60);
  text-align: right;
}

.res-stage-val strong {
  color: #FFB74D;
}

/* Totals */
.res-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.res-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.res-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
}

.res-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(255,122,0,0.25), rgba(255,183,77,0.15));
  border-color: rgba(255,122,0,0.40);
}

.highlight-box .res-value {
  color: #FFB74D;
}

.sim-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.30);
  line-height: 1.5;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* article-category badge */
.article-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,122,0,0.20);
  color: #FF7A00;
  border: 1px solid rgba(255,122,0,0.35);
}

/* ==========================================================================
   Blog / Noticias — Hexagonal Cards
   ========================================================================== */
.blog-section {
  padding: 6rem 5%;
  background: var(--bg-secondary);
}

.blog-section .section-title {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text-main);
}

.blog-container-query {
  container-type: inline-size;
  container-name: blog;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@container blog (min-width: 600px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@container blog (min-width: 1000px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === Blog Card === */
.blog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-color);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
  animation: blogFadeUp 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 0.10s);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.15);
}

@keyframes blogFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Hexagonal Photo === */
.blog-hex-wrap {
  width: 100%;
  background: linear-gradient(135deg, #FF7A00, #FFB74D);
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Subtle pattern overlay on orange strip */
.blog-hex-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    60deg,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 20px
  );
  pointer-events: none;
}

.blog-hex {
  width: 160px;
  height: 176px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  transition: filter 0.3s ease;
}

.blog-card:hover .blog-hex {
  filter: drop-shadow(0 0 14px rgba(255,122,0,0.60));
}

.blog-hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.blog-card:hover .blog-hex img {
  transform: scale(1.08);
}

/* === Blog Text Content === */
.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  width: 100%;
}

.blog-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FF7A00;
  background: rgba(255,122,0,0.10);
  border: 1px solid rgba(255,122,0,0.25);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  width: fit-content;
}

.blog-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
}

.blog-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.blog-read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FF7A00;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  transition: gap 0.2s ease;
}

.blog-read-more:hover {
  gap: 0.6rem;
}

.blog-read-more .arrow {
  transition: transform 0.2s ease;
}

.blog-read-more:hover .arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Footer — Premium Dark Design
   ========================================================================== */
.site-footer {
  background: linear-gradient(135deg, #0a0f1e 0%, #0d1117 100%);
  color: rgba(255,255,255,0.65);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,122,0,0.50), transparent);
}

/* Top section */
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 5% 3rem;
}

@media (min-width: 700px) {
  .footer-top {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

/* Brand col */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.footer-brand > p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  max-width: 280px;
}

/* Social icons */
.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.fsoc {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease;
}

/* Only apply gradient backgrounds to footer icons, not nav icons */
.fsoc:not(.nav-soc) { color: #fff; }

.fsoc:hover { transform: translateY(-3px) scale(1.10); }

.fsoc-fb:not(.nav-soc) { background: linear-gradient(135deg, #1877F2, #0d5bbf); box-shadow: 0 4px 12px rgba(24,119,242,0.30); }
.fsoc-fb:not(.nav-soc):hover { box-shadow: 0 8px 20px rgba(24,119,242,0.50); }

.fsoc-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 4px 12px rgba(220,39,67,0.30); }
.fsoc-ig:hover { box-shadow: 0 8px 20px rgba(220,39,67,0.50); }

.fsoc-wa:not(.nav-soc) { background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 4px 12px rgba(37,211,102,0.30); }
.fsoc-wa:not(.nav-soc):hover { box-shadow: 0 8px 20px rgba(37,211,102,0.50); }

/* Links group */
.footer-links-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.90);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
  color: #FF7A00;
  padding-left: 4px;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 5%;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.30);
  margin: 0;
}

.footer-bottom strong {
  color: rgba(255,255,255,0.60);
  font-weight: 600;
}

/* ==========================================================================
   SPIT Developer Modal
   ========================================================================== */

/* Footer dev credit */
.footer-dev {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

.spit-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  padding: 0;
  transition: color 0.2s ease;
  font-family: 'Outfit', sans-serif;
}

.spit-link:hover {
  color: #FF7A00;
}

/* Overlay */
.spit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.spit-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Modal box */
.spit-modal-box {
  background: linear-gradient(145deg, #0d1117, #161b27);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  position: relative;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.spit-modal-overlay.active .spit-modal-box {
  transform: scale(1) translateY(0);
}

/* Close button */
.spit-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.60);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.spit-close-btn:hover {
  background: rgba(255,122,0,0.20);
  color: #FF7A00;
}

/* Header */
.spit-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.spit-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.spit-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

.spit-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.40);
  margin: 0;
}

/* Body */
.spit-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.spit-qr {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  object-fit: cover;
  padding: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.30);
}

.spit-cta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
  text-align: center;
}

/* WhatsApp button */
.spit-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 10px rgba(208, 239, 220, 0.3);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
  width: 100%;
  justify-content: center;
}

.spit-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,211,102,0.45);
}

/* === SPIT Inline Card (inside footer) === */
.spit-card {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 5%;
  animation: spitSlideIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes spitSlideIn {
  from { opacity:0; transform:translateY(-16px); }
  to   { opacity:1; transform:translateY(0); }
}

.spit-card-inner {
  max-width: 400px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 1.75rem;
  position: relative;
}

/* reuse existing spit-modal-* classes but they already exist in the CSS */

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #FF7A00, #e05800);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(255,122,0,0.30);
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(255,122,0,0.45);
}

.scroll-top svg {
  transition: transform 0.3s ease;
}

.scroll-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .scroll-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   Sección de Contacto (Premium Form)
   ========================================================================== */
.contact-section {
  background: var(--bg-secondary);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .contact-section {
  background: #0f1218;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.contact-info .section-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--corp-blue), var(--accent-vibrant-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 480px;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.info-icon {
  width: 52px;
  height: 52px;
  background: rgba(2, 85, 188, 0.08);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.info-item:hover .info-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(2, 85, 188, 0.15);
}

.info-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.info-item p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Elegant Form */
.contact-form-container {
  background: var(--bg-color);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
}

[data-theme="dark"] .contact-form-container {
  background: #1a1f26;
  border-color: rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.elegant-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem 1.2rem;
  background: var(--bg-secondary);
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.3s ease;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: #252b36;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: var(--bg-color);
  border-color: var(--corp-blue);
  box-shadow: 0 0 0 4px rgba(2, 85, 188, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.form-response {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-response.success {
  display: block;
  background: rgba(46, 204, 113, 0.1);
  color: #27ae60;
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.form-response.error {
  display: block;
  background: rgba(231, 76, 60, 0.1);
  color: #c0392b;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Sección Nosotros (Mission, Vision, Values)
   ========================================================================== */
.about-section {
  padding: var(--space-xl) 0;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.about-identity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 5rem;
}

@media (min-width: 900px) {
  .about-identity-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.identity-card {
  padding: 3rem;
  border-radius: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.identity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.identity-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 1rem 0 1.5rem;
}

.identity-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--corp-blue), var(--accent-vibrant-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mission-card .identity-title em {
  background: linear-gradient(90deg, var(--corp-red), #ff4d4d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.identity-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Values */
.values-container {
  text-align: center;
}

.values-header {
  margin-bottom: 4rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.value-item {
  padding: 2.5rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.value-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--corp-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--corp-blue);
}

.value-item:hover::before {
  transform: scaleX(1);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.value-item h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.value-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

[data-theme="dark"] .identity-card,
[data-theme="dark"] .value-item {
  background: #1a1f26;
  border-color: rgba(255,255,255,0.05);
}

/* ==========================================================================
   Ficha Técnica (Product Modal)
   ========================================================================== */
.product-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9000;
  display: none; /* Controlled by JS */
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.product-modal-container.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: var(--bg-color);
  border-radius: 30px;
  padding: 3rem;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  z-index: 10;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: var(--corp-red);
  color: white;
  transform: rotate(90deg);
}

/* Technical Table */
.tech-sheet-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

.tech-sheet-header h2 {
  font-size: 1.8rem;
  color: var(--corp-blue);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.tech-table th, .tech-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.tech-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-info-box {
  background: rgba(var(--corp-blue-rgb, 2, 85, 188), 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  margin-top: 1.5rem;
  border-left: 4px solid var(--corp-blue);
}

.view-sheet-btn {
  padding: 0.8rem 1.5rem;
  background: var(--corp-blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-sheet-btn:hover {
  background: var(--accent-vibrant-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 85, 188, 0.3);
}

/* ==========================================================================
   Casos de Éxito
   ========================================================================== */
.success-stories-section {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
}

.success-header {
  text-align: center;
  margin-bottom: 4rem;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.success-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.success-img-wrap {
  width: 100%;
  height: 100%;
}

.success-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.success-item:hover img {
  transform: scale(1.1);
}

.success-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: white;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.success-item:hover .success-overlay {
  transform: translateY(0);
}

.success-category {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--corp-red);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 5px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.success-overlay h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.success-overlay p {
  font-size: 0.9rem;
  opacity: 0.8;
}

[data-theme="dark"] .success-stories-section {
  background: #0f1218;
}

/* ==========================================================================
   Product Dedicated Pages (Individual)
   ========================================================================== */
.product-page {
  background: var(--bg-color);
  color: var(--text-main);
}

.product-hero-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
}

.product-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.product-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.category-tag {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--corp-red);
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tech-details-section {
  padding: var(--space-xl) 0;
}

.tech-group {
  margin-bottom: 4rem;
}

.tech-title {
  font-size: 2.5rem;
  color: var(--corp-blue);
  margin-bottom: 1rem;
}

.tech-desc {
  font-size: 1.1rem;
  color: var(--text-main);
  opacity: 0.8;
  max-width: 800px;
  margin-bottom: 2rem;
}

/* Specific Gallery for Product Pages */
.success-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: white;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Utility for technical tables in pages */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

@media (max-width: 768px) {
  .product-hero-section {
    height: 50vh;
  }
  .tech-title {
    font-size: 2rem;
  }
}

/* Links for Product Cards */
.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.product-card-link:hover {
  transform: translateY(-5px);
}

/* ==========================================================================
   Shopping Cart & Checkout System
   ========================================================================== */

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    background: var(--bg-secondary);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 10001;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart Header */
.cart-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
}

.cart-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin: 0;
    color: var(--corp-blue);
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Body */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.cart-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 0.75rem;
    padding: 0.4rem;
    background: var(--bg-color);
    border-radius: 12px;
    margin-bottom: 3px;
    border: 1px solid var(--border-color);
    align-items: center;
    transition: transform 0.2s ease;
}

.cart-item:hover {
    transform: scale(1.02);
}

.cart-item img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-info h4 {
    margin: 0 0 0.15rem 0;
    font-size: 0.82rem;
}

.cart-item-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-weight: 500;
    color: var(--corp-blue);
}

.remove-item {
    background: none;
    border: none;
    color: var(--corp-red);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Footer */
.cart-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.checkout-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--corp-blue), #003a70);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.checkout-btn:disabled {
    filter: grayscale(1);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Empty Cart State */
.empty-cart-msg {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-cart-msg i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Checkout Modal */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 10002;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.checkout-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal {
    width: 100%;
    max-width: 420px;
    background: var(--bg-color);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin: auto;
}

.checkout-modal-overlay.active .checkout-modal {
    transform: translateY(0);
}

.checkout-modal h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--corp-blue);
    font-family: 'Outfit', sans-serif;
}

.close-checkout {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* Form Styles */
.checkout-form .form-group {
    margin-bottom: 1.2rem;
}

.checkout-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.checkout-form input, 
.checkout-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-main);
}

.whatsapp-submit-btn {
    width: 100%;
    padding: 1rem;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.whatsapp-submit-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Floating Cart Counter Update */
.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--corp-red);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid var(--bg-color);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Add to Cart Notification */
.add-notify {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--corp-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 5000;
    transform: translateY(100px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.add-notify.active {
    transform: translateY(0);
}

/* ==========================================================================
   Floating Social Buttons
   ========================================================================== */
.floating-social-container {
    position: fixed;
    right: 25px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    pointer-events: none; /* Let clicks pass through container */
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    text-decoration: none;
    pointer-events: auto; /* Re-enable clicks for buttons */
}

.float-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    color: #fff;
}

.float-fb {
    background: linear-gradient(135deg, #1877F2 0%, #0c59ba 100%);
}

.float-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.float-btn svg {
    display: block;
}
