/* ============================================
   DELICIOUS - SISTEMA DE DISEÑO CORPORATIVO
   Estilo: Corporativo-Industrial Premium
   ============================================ */

/* === VARIABLES CSS === */
:root {
  /* Colores de Marca - Delicious */
  --color-primary: #ee0437;
  --color-primary-dark: #d30828;
  --color-primary-light: #ff304d;
  --color-secondary: #ff4d6d;
  /* Un poco más rosado para gradientes */
  --color-accent: #FFD93D;
  --color-white: #FFFFFF;
  --color-cream: #fdf6f7;
  --color-glass: rgba(255, 255, 255, 0.7);

  --color-gray-50: #fdfafb;
  --color-gray-100: #f3ebee;
  --color-gray-200: #ead8dd;
  --color-gray-700: #4A3844;
  --color-gray-800: #2C1A23;
  --color-gray-900: #1A0F15;

  /* Tipografía - Más amigable */
  --font-heading: 'Baloo 2', 'Montserrat', cursive, sans-serif;
  --font-body: 'Poppins', 'Inter', sans-serif;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  /* Más aire */

  /* Border Radius - Súper redondeado y orgánico */
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-xl: 60px;
  --radius-full: 9999px;

  /* Sombras - Muy suaves y profundas */
  --shadow-sm: 0 4px 10px rgba(238, 4, 55, 0.05);
  --shadow-md: 0 10px 25px rgba(238, 4, 55, 0.08);
  --shadow-lg: 0 20px 40px rgba(238, 4, 55, 0.12);
  --shadow-xl: 0 30px 60px rgba(238, 4, 55, 0.15);

  /* Transiciones */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESPONSIVE VARIABLES (MOBILE FIRST) === */
@media (max-width: 768px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --radius-lg: 30px;
    --radius-xl: 40px;
  }
}

/* Transiciones de Vista SPA */
#app-content {
  transition: opacity 300ms ease, transform 300ms ease;
  width: 100%;
}

.view-transition-out {
  opacity: 0;
  transform: translateY(10px);
}

.view-transition-in {
  animation: slideInSoft 500ms cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideInSoft {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESET CSS === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* === TIPOGRAFÍA === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gray-900);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }
}

h3 {
  font-size: 1.875rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-alt {
  background-color: var(--color-gray-50);
}

/* === HEADER & NAVEGACIÓN === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  z-index: 1000;
  transition: all var(--transition-base);
  padding: 1rem 0;
}

@media (max-width: 768px) {
  .header {
    padding: 0.5rem 0;
  }
}

.header.scrolled {
  background-color: var(--color-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-base);
}

.logo {
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
  padding: 0.5rem;
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .logo {
    padding: 0.2rem;
    /* Pushes the logo higher by reducing inner padding */
  }
}

.brand-logo {
  height: 150px;
  /* Reducido de 200px para evitar solapamientos */
  width: auto;
  object-fit: contain;
  transition: all var(--transition-base);
  filter: brightness(0) invert(1);
  /* Logo blanco siempre */
}

@media (max-width: 768px) {
  .brand-logo {
    height: 100px;
    /* Mucho más compacto en móviles */
  }
}

.header.scrolled .logo {
  background-color: var(--color-primary);
  box-shadow: var(--shadow-xl);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transform: translateY(-10px);
  /* Menos desplazamiento para compactar */
  padding: 0.5rem 1rem;
  /* Mucho más compacto verticalmente */
  margin-top: -10px;
  /* Sube un poco para que no empuje el header hacia abajo */
}

.header.scrolled .brand-logo {
  height: 100px;
  /* Reducido un poco más (de 120 a 100) para ganar espacio vertical */
}

@media (max-width: 768px) {
  .header.scrolled .brand-logo {
    height: 70px;
  }

  .header.scrolled .logo {
    transform: translateY(-5px);
    margin-top: -5px;
    padding: 0.3rem 0.8rem;
  }
}

.nav-menu {
  display: flex;
  gap: var(--spacing-sm);
  list-style: none;
  align-items: center;
}

/* === MENU TOGGLE (BARS) === */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2000;
  padding: 0;
}

.nav-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--color-white);
  border-radius: var(--radius-full);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animación cuando está activo */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Header Scrolled Toggle Color */
.header.scrolled .nav-toggle span {
  background-color: var(--color-gray-900);
}

@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-md);
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1500;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    color: var(--color-gray-900) !important;
    font-size: 1.5rem;
    font-weight: 700;
  }
}

@media (min-width: 992px) {
  .header.scrolled .nav-menu {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
  }
}

.nav-link {
  font-weight: 600;
  color: var(--color-white);
  transition: all var(--transition-base);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
}

.header.scrolled .nav-link {
  color: var(--color-gray-700);
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
  transform: scale(1.05);
}

/* === HERO CON VIDEO YOUTUBE === */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.video-background {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(211, 8, 40, 0.7) 0%, rgba(238, 4, 55, 0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: saturate(1.2);
}

.hero-content {
  text-align: center;
  color: var(--color-white);
  max-width: 1000px;
  padding: var(--spacing-md);
  z-index: 10;
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 15vh;
    /* Empuja el texto hacia abajo para que no choque con el logo */
  }
}

.hero-title {
  font-size: 4.5rem;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* === BOTONES === */
.btn {
  display: inline-block;
  padding: 1.25rem 3.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(238, 4, 55, 0.4);
}

.btn-primary:active {
  transform: translateY(-2px) scale(0.98);
}

.btn-outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-5px);
}

/* === SECCIÓN HISTORIA === */
.historia {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.valor-icon-container {
  width: 180px;
  /* Tamaño aumentado */
  height: 180px;
  margin: 0 auto var(--spacing-md);
  background: radial-gradient(circle, var(--color-cream) 0%, var(--color-white) 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: organicFloat 6s ease-in-out infinite alternate;
  box-shadow: var(--shadow-lg);
  /* Sombra más pronunciada para el nuevo tamaño */
  overflow: hidden;
  padding: 0;
  /* Sin padding para que la imagen llene la forma */
  border: 4px solid var(--color-white);
  /* Borde blanco para resaltar la forma */
}

.valor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Llenar el contenedor manteniendo proporciones */
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
  transition: transform var(--transition-slow);
}

.valor-card:hover .valor-img {
  transform: scale(1.15);
  /* Efecto de zoom sobre la imagen */
}

.section-title {
  font-size: 3.5rem;
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
}

.section-subtitle {
  color: var(--color-gray-700);
  max-width: 800px;
  margin: var(--spacing-md) auto 0;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 300;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.valor-card {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-100);
  position: relative;
  z-index: 1;
}

.valor-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.valor-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--color-cream) 0%, var(--color-white) 100%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  /* Forma orgánica */
  font-size: 4.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  animation: organicFloat 6s ease-in-out infinite;
}

@keyframes organicFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  50% {
    transform: translateY(-15px) rotate(5deg);
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.valor-title {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.valor-description {
  color: var(--color-gray-600);
  line-height: 1.8;
}

/* === LÍNEAS DE PRODUCTO === */
.productos {
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

/* === CARRUSEL DE PRODUCTOS (DESFILE) === */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: var(--spacing-md) 0;
  cursor: grab;
}

/* Sombra de desvanecimiento a los lados para profundidad */
.carousel-container::before,
.carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel-container::before {
  left: 0;
  background: linear-gradient(to right, var(--color-cream), transparent);
}

.carousel-container::after {
  right: 0;
  background: linear-gradient(to left, var(--color-cream), transparent);
}

.carousel-track {
  display: flex;
  width: calc(300px * 14);
  /* 300px por item * 14 items (7 originales + 7 copias) */
  animation: scrollCarousel 40s linear infinite;
  gap: var(--spacing-lg);
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-item {
  width: 300px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.carousel-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
  cursor: pointer;
}

.carousel-item img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
  transition: all var(--transition-base);
}

.carousel-item span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  opacity: 0.8;
  transition: color var(--transition-base);
}

.carousel-item:hover {
  transform: translateY(-15px) scale(1.1);
}

.carousel-item:hover img {
  filter: drop-shadow(0 25px 45px rgba(238, 4, 55, 0.25));
}

.carousel-item:hover span {
  color: var(--color-primary);
  opacity: 1;
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }

  100% {
    /* Moverse hasta la mitad del ancho total del track (donde empiezan las copias) */
    transform: translateX(calc(-300px * 7 - var(--spacing-lg) * 7));
  }
}

/* Antiguos estilos del grid que ya no usaremos en esta sección */
.productos-grid {
  display: none;
}

.producto-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-gray-700);
}

.producto-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* === PRESENCIA NACIONAL === */
.presencia {
  padding: var(--spacing-xl) 0;
  background: var(--color-gray-900);
  color: var(--color-white);
}

.presencia .section-title {
  color: var(--color-white);
}

.presencia .section-subtitle {
  color: var(--color-gray-300);
}

.mapa-container {
  margin-top: var(--spacing-lg);
  text-align: center;
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
}

.mapa-venezuela {
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cobertura-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(238, 4, 55, 0.15);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(238, 4, 55, 0.3);
  transition: all var(--transition-base);
}

.stat-item:hover {
  transform: scale(1.05);
  background: rgba(238, 4, 55, 0.25);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--color-gray-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === CONTACTO === */
.contacto {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.contacto-container {
  max-width: 800px;
  margin: var(--spacing-lg) auto 0;
  background: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 50px rgba(238, 4, 55, 0.2);
  border: 3px solid var(--color-cream);
}

@media (max-width: 768px) {
  .contacto-container {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-md);
  }
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-gray-700);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1.25rem;
  border: 3px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-base);
  background-color: var(--color-gray-50);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(238, 4, 55, 0.15);
  background-color: var(--color-white);
  transform: translateY(-2px);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.form-submit {
  width: 100%;
  margin-top: var(--spacing-sm);
}

/* === FOOTER === */
.footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.footer-section p,
.footer-section a {
  color: var(--color-gray-200);
  /* Color aclarado para mejor contraste */
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  /* Línea más clara y elegante */
  color: var(--color-white);
  /* Texto en blanco puro */
  font-size: 0.875rem;
  opacity: 0.8;
  /* Un toque de transparencia para un acabado premium */
}

/* === MODAL DE PRODUCTO (INSTAGRAM STYLE) === */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  /* Oculto por defecto */
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.product-modal.active {
  display: flex;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  background: var(--color-white);
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  max-height: 800px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 10010;
  display: flex;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-modal.active .modal-container {
  transform: scale(1);
}

@media (max-width: 991px) {
  .modal-container {
    max-width: 90%;
    height: 85vh;
  }
}

@media (max-width: 768px) {
  .modal-container {
    max-width: 95%;
    height: 95vh;
    border-radius: var(--radius-lg);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--color-gray-900);
  cursor: pointer;
  z-index: 10020;
  line-height: 1;
}

.modal-body {
  display: flex;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
    overflow-y: auto;
  }
}

.modal-video-column {
  flex: 0 0 55%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .modal-video-column {
    flex: 0 0 350px;
    width: 100%;
  }
}

.modal-video-column iframe,
.modal-video-column video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  /* Cambiado a contain para ver el video completo */
}

.video-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-md);
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(5px);
  z-index: 10030;
  transition: opacity 0.3s ease;
}

.control-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-white);
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  transform: scale(1.2);
}

.modal-info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-lg);
  overflow-y: auto;
}

.modal-header {
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-gray-100);
  margin-bottom: var(--spacing-lg);
}

.brand-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.brand-logo-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--color-primary);
  padding: 5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-gray-900);
}

.brand-location {
  font-size: 0.8rem;
  color: var(--color-gray-500);
}

.modal-details {
  flex: 1;
}

.modal-title {
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.modal-description {
  font-size: 1rem;
  color: var(--color-gray-700);
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

.modal-presentations {
  margin-top: var(--spacing-md);
}

.modal-presentations ul {
  list-style: none;
  padding: 0;
}

.modal-presentations li {
  padding: 0.75rem 0;
  color: var(--color-gray-700);
  border-bottom: 1px solid var(--color-gray-100);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.modal-presentations li:last-child {
  border-bottom: none;
}

.modal-footer {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-gray-100);
  margin-top: auto;
}

/* Responsive modal */
@media (max-width: 992px) {
  .modal-container {
    max-width: 500px;
    height: 95vh;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-video-column {
    flex: 0 0 50%;
  }
}

/* === CARRITO DE COMPRAS (UI) === */
.cart-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(238, 4, 55, 0.4);
  cursor: pointer;
  z-index: 9500;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 769px) {
  .cart-fab {
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
}

.cart-fab.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.cart-fab:hover {
  transform: scale(1.1) rotate(10deg);
  background: var(--color-primary-dark);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-white);
  color: var(--color-primary);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-primary);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9900;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-gray-100);
}

.close-cart {
  font-size: 2rem;
  color: var(--color-gray-500);
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-lg);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-gray-50);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: var(--color-cream);
  border-radius: var(--radius-md);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-gray-900);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.btn-qty {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-gray-700);
}

.cart-footer {
  padding: var(--spacing-lg);
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-100);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  font-weight: 700;
  font-size: 1.1rem;
}

.btn-success {
  background: #25d366;
  /* WhatsApp Green */
  color: white;
  padding: 1rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.btn-success:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.empty-cart-msg {
  text-align: center;
  padding-top: 50px;
}

.empty-cart-msg p {
  color: var(--color-gray-500);
  margin-bottom: var(--spacing-lg);
}

@media (max-width: 500px) {
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
}

/* Animación de pulso para el FAB */
@keyframes cartPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.cart-fab.pulse {
  animation: cartPulse 0.4s ease-out;
}

/* === ANIMACIONES === */
.fade-in {
  opacity: 0;
  /* La animación será disparada por JavaScript (animations.js) */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .hero {
    height: 70vh;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .valores-grid,
  .productos-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
}