/* ===== VARIABLES GLOBALES ===== */
:root {
  --bg: #000000;
  /* Negro sólido */
  --surface: #0a0a0a;
  /* Casi negro para sutil contraste en tarjetas */
  --border: #334155;
  /* Borde muy fino y claro */
  --muted: #94A3B8;
  --text: #F1F5F9;
  /* Blanco titanio */
  --accent: var(--color-red-600);
  /* Rojo Dicleci (Principal) */

  /* Sistema de Color Extendido (Tokens Fase 3) */
  --color-red-500: #ef4444;
  --color-red-600: #dc2626;
  /* Brand Primary */
  --color-red-700: #b91c1c;
  --color-red-800: #991b1b;
  /* Brand Dark / Hover */
  --color-surface-dark: #1d1d1f;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;

  --glass: rgba(30, 41, 59, 0.6);
  --radius: 12px;
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .9, .25, 1);
  --hero-bg-dark: var(--bg);
  --hero-bg-light: #ffffff;
  /* Escala tipográfica modular (ratio 1.250 - Major Third) */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.563rem;
  /* 25px */
  --text-3xl: 1.953rem;
  /* 31px */
  --text-4xl: 2.441rem;
  /* 39px */
  --text-5xl: 3.052rem;
  /* 49px */
  --text-6xl: 3.815rem;
  /* 61px */

  /* Line heights */
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
}

/* ===== RESETS Y BASES (Mejora #20 - Smooth Scroll) ===== */
html {
  scroll-behavior: smooth;
}

/* Deshabilitar smooth scroll cuando hay modales activos */
html:has(.modal-servicio.active),
html:has(.email-modal.show) {
  scroll-behavior: auto;
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  transition: background-color 1.5s ease, color 1.5s ease;
}

/* Párrafos y texto base */
p {
  margin: 0 0 1rem 0;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

/* Clases utilitarias de texto */
.text-xs {
  font-size: var(--text-xs);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-base {
  font-size: var(--text-base);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

.text-3xl {
  font-size: var(--text-3xl);
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.leading-tight {
  line-height: var(--leading-tight);
}

.leading-normal {
  line-height: var(--leading-normal);
}

.leading-relaxed {
  line-height: var(--leading-relaxed);
}

.tracking-tight {
  letter-spacing: var(--tracking-tight);
}

.tracking-normal {
  letter-spacing: var(--tracking-normal);
}

.tracking-wide {
  letter-spacing: var(--tracking-wide);
}

* {
  box-sizing: border-box;
}

/* Mejora #14: Asegurar que elementos con reducción de movimiento respeten preferencias */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
}

/* ===== UTILIDADES ===== */
.muted {
  color: var(--muted);
}

.kicker {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ===== REVEAL ANIMATION (Mejora #20) ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger effect para elementos múltiples */
.reveal:nth-child(1) {
  transition-delay: 0s;
}

.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal:nth-child(5) {
  transition-delay: 0.4s;
}

/* Animación fade-in para elementos generales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animación para elementos al hacer scroll */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 980px) {
  .section-inner {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  h3 {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
}

/* ===== TONE SWITCHING FOR DRAMATIC SCROLL ===== */
body.tone-dark {
  background-color: #000000;
  color: var(--text);
}

body.tone-dark .venta-equipo,
body.tone-dark .nuestros-productos {
  background-color: transparent;
  /* dejar que el body marque el tono */
  color: #f4f5f6;
}

/* transición suave al cambiar de tono */
section {
  transition: background-color 0.6s ease, color 0.6s ease;
  background-color: transparent !important;
  /* asegurar que el body marque el tono global */
}

/* Tono suave (gris claro) cuando la sección comienza a entrar */
body.tone-soft {
  background-color: #f3f4f6;
  /* gris claro neutro */
  color: #0b0b0c;
}

body.tone-soft .venta-equipo,
body.tone-soft .nuestros-productos {
  background-color: transparent;
  color: inherit;
}

/* Nota: overlay global removido — el fondo se controla directamente en `body` */

/* ===== ANIMACIONES COPIADAS/INSPIRADAS DE `ultimo2.html` ===== */
/* Animación para el primer slide en móvil vertical cuando recibe la clase 'animar-slide' */
#carousel .slides>div.animar-slide {
  animation: slideIn 0.7s var(--ease) forwards;
  will-change: transform, opacity;
}

@keyframes slideIn {
  from {
    transform: translateY(18px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

/* Estado activo para el bloque de contadores (se añade la clase 'activo' desde JS) */
#contador.activo .counter,
.contador-ininterrumpida.activo .counter {
  animation: counterPop 0.8s cubic-bezier(.2, .9, .25, 1) forwards;
  will-change: transform, opacity;
  color: var(--accent);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(225, 29, 72, 0.4);
}

@keyframes counterPop {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

/* ===== Reglas añadidas por mejoras: mover estilos inline a CSS ===== */
.video-background {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .45s ease;
  z-index: 2;
}

.hero-media.ready {
  opacity: 1;
}

.hero-noscript {
  display: none;
}

.hero-noscript-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-content {
  text-align: left;
  color: #fff;
  width: 100%;
}

.hero-title {
  font-weight: 300 !important;
  font-size: 48px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  margin: 0;
  text-align: left;
}

/* Forzar que el título del index no sea grueso y esté a la izquierda */
.hero-video h1,
.hero-title {
  font-weight: 300 !important;
  text-align: left !important;
}

.hero-video h1 strong,
.hero-video h1 b,
.hero-video h1 span,
.hero-title strong,
.hero-title b {
  font-weight: 300 !important;
}

.feature-gallery-wrapper {
  padding: 100px 40px 100px 40px;
}

.feature-iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.iframe-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.7);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.iframe-cta:focus {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.titulo-primary {
  color: #000;
}

.titulo-muted {
  color: #fff;
}

.slide.slide-hero {
  min-width: 100%;
  height: 360px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-red-600) 0%, var(--color-red-800) 100%);
  position: relative;
  overflow: hidden;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  color: var(--text);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  /* Ocultar por defecto */
  z-index: 5;
  /* no sobreponer otros bloques */
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

/* Mostrar flechas solo en el carrusel de promociones dentro de #carousel */
#carousel .carousel-prev,
#carousel .carousel-next {
  display: block;
  position: absolute;
  z-index: 10;
}

/* Forzar ocultación de flechas en el HERO (por si algún z-index las superpone) */
.hero-video .carousel-prev,
.hero-video .carousel-next {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Ocultar cualquier flecha de carrusel 3D en el hero (venta-prev/venta-next) */
.hero-video .venta-prev,
.hero-video .venta-next {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contador-section {
  padding: 40px;
  background: transparent;
  color: inherit;
  text-align: center;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
}

.hidden-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ===== MEJORA #14: ESTILOS DE ACCESIBILIDAD ADICIONALES ===== */
/* Indicador de error visual para campos de formulario */
input.error,
textarea.error,
select.error {
  border-color: #ef4444 !important;
  background-color: #fef2f2;
}

input.error:focus,
textarea.error:focus,
select.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Mejora de contraste para enlaces */
a {
  text-decoration-skip-ink: auto;
}

/* Asegurar contraste mínimo en textos */
.text-muted,
.muted {
  color: #6b7280;
}

/* Indicador visual de carga */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Estados hover más visibles */
button:hover:not(:disabled),
.btn:hover,
.send-btn:hover {
  filter: brightness(1.1);
}

/* Focus visible mejorado */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ===== Nuevas reglas extraídas de estilos inline ===== */
.brand-text {
  line-height: 1;
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.brand-sub {
  font-size: 16px;
  color: var(--muted);
}

.brand {
  text-decoration: none;
}

.link-reset {
  text-decoration: none;
  color: inherit;
}

.video-card {
  position: relative;
}

.carousel-anchor {
  position: absolute;
  width: 250px;
  height: 200px;
  text-decoration: none;
}

.promociones-section {
  padding: 40px;
}

.promociones-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promociones-title {
  margin: 6px 16px 0;
}

.slides {
  display: flex;
  gap: 14px;
  transition: transform .6s var(--ease);
}

.slide-link-block {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-rotated {
  min-width: 100%;
  height: 360px;
  border-radius: 12px;
  background: linear-gradient(120deg, #121212, #060606);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  padding: 20px;
}

.slide-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transform: rotate(var(--rotation));
  transition: transform .3s ease;
  display: block;
}

.contador-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.contador-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 60px;
  letter-spacing: -0.5px;
}

.contador-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
}

.counter-heading {
  font-size: 64px;
  font-weight: 700;
  margin: 0;
}

.plus {
  color: #fff;
  margin-right: 6px;
}

.counter-text {
  font-size: 18px;
  color: #ccc;
  margin-top: 8px;
}

/* Sección de descargas eliminada: estilos removidos */

/* ===== SECCIÓN ¿POR QUÉ COMPRAR DIRECTO? ===== */
.por-que-directo {
  padding: 100px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.section-header-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.text-highlight {
  color: var(--color-red-600);
  position: relative;
}

.section-subtitle {
  font-size: 18px;
  color: #9ca3af;
  line-height: 1.6;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.beneficio-card {
  background: #1f1f1f;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.beneficio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.4);
  border-color: var(--color-red-600);
}

.featured-card {
  background: linear-gradient(135deg, var(--color-red-600) 0%, #ef4444 100%);
  color: #ffffff;
}

.featured-card .beneficio-title,
.featured-card .beneficio-description {
  color: #ffffff;
}

.beneficio-icon {
  width: 64px;
  height: 64px;
  background: rgba(220, 38, 38, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.featured-card .beneficio-icon {
  background: rgba(255, 255, 255, 0.2);
}

.beneficio-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--color-red-600);
}

.featured-card .beneficio-icon svg {
  fill: #ffffff;
}

.beneficio-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.beneficio-description {
  font-size: 15px;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 16px;
}

.beneficio-description strong {
  color: var(--color-red-600);
  font-weight: 600;
}

.featured-card .beneficio-description strong {
  color: #fef3c7;
}

.beneficio-link {
  color: var(--color-red-600);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.beneficio-link:hover {
  color: var(--color-red-800);
  transform: translateX(4px);
}

.featured-link {
  color: #ffffff;
  text-decoration: underline;
}

.featured-link:hover {
  color: #fef3c7;
}

.cta-compra-directa {
  background: linear-gradient(135deg, var(--color-red-600) 0%, var(--color-red-800) 100%);
  border-radius: 16px;
  padding: 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.4);
}

.cta-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.cta-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 32px;
  }

  .beneficios-grid {
    grid-template-columns: 1fr;
  }

  .cta-compra-directa {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

}

/* ===== SECCIÓN CROSS-SELL FUERZA ===== */
.cross-sell-fuerza {
  padding: 100px 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
}

.cross-sell-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.cross-sell-tag {
  display: inline-block;
  background: rgba(220, 38, 38, 0.2);
  color: #ef4444;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cross-sell-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cross-sell-title .text-highlight {
  color: #ef4444;
}

.cross-sell-description {
  font-size: 18px;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 32px;
}

.cross-sell-description strong {
  color: #ffffff;
  font-weight: 700;
}

.cross-sell-beneficios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #e2e8f0;
}

.benefit-item svg {
  width: 20px;
  height: 20px;
  fill: #10b981;
  flex-shrink: 0;
}

.cross-sell-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cross-sell-visual {
  position: relative;
}

.visual-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.visual-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-red-600) 0%, var(--color-red-800) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.visual-icon svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.visual-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.price-highlight {
  font-size: 36px;
  font-weight: 800;
  color: #ef4444;
  margin: 0 0 8px 0;
}

.price-description {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.visual-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.visual-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  color: #cbd5e1;
}

.visual-list li:last-child {
  border-bottom: none;
}

@media (max-width: 968px) {
  .cross-sell-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cross-sell-title {
    font-size: 32px;
  }

  .cross-sell-beneficios {
    grid-template-columns: 1fr;
  }
}

/* ===== ESTILOS PORTAL B2B / INDUSTRIAL TECH ===== */
.b2b-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.b2b-input {
  background-color: #0F172A;
  /* Fondo más oscuro para input */
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
}

.b2b-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.2);
}

/* ===== BOTONES FLOTANTES ===== */
#whatsapp-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 70px;
  height: 70px;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

#whatsapp-button:hover {
  transform: scale(1.1);
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

#whatsapp-button img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(37, 211, 102, 0.4));
}

#whatsapp-chat {
  position: fixed;
  bottom: 110px;
  right: 25px;
  width: 320px;
  background: #E5DDD5;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

#whatsapp-chat.show {
  display: flex;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-header {
  background: #075E54;
  color: white;
  padding: 12px;
  display: flex;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  padding: 4px;
}

.chat-title {
  font-weight: 600;
  font-size: 14px;
}

.chat-status {
  font-size: 12px;
  color: #c7ffc9;
}

.chat-body {
  background: #ECE5DD;
  padding: 12px;
  height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 75%;
  font-size: 14px;
  line-height: 1.4;
}

.message.received {
  background: #fff;
  color: #000;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message.sent {
  background: #DCF8C6;
  align-self: flex-end;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-footer {
  display: flex;
  border-top: 1px solid #ccc;
  background: #f5f5f5;
}

#chat-input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  outline: none;
  background: transparent;
}

#chat-send {
  border: none;
  background: #25D366;
  color: white;
  font-size: 18px;
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#chat-send:hover {
  background: #20ba5a;
}

.btn-floating.email {
  position: fixed;
  bottom: 110px;
  right: 32px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1d1d1f;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9998;
}

.btn-floating.email:hover {
  transform: translateY(-4px) scale(1.05);
  background: #000000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-floating.email svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.email-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.email-modal.show {
  display: flex;
  opacity: 1;
  overflow-y: auto;
  padding: 24px;
}

.email-modal-content {
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s;
  line-height: 1;
}

.close-modal:hover {
  color: #1d1d1f;
}

.email-modal-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.email-modal-content>p {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1d1d1f;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: all 0.2s ease;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-red-600);
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.hidden-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.quote-modal-content {
  position: relative;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 48px);
  padding-top: 32px;
}

.quote-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4f4f5;
  border: 1px solid #e5e7eb;
  color: #7f1d1d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.quote-modal-head h2 {
  font-size: 1.55rem;
  line-height: 1.08;
  margin-bottom: 10px;
}

.quote-modal-head p {
  color: #6b7280;
  margin-bottom: 0;
}

.quote-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.quote-modal-badges span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quote-grid .form-group {
  margin-bottom: 0;
}

.quote-grid .full-width {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .quote-form .quote-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== BOTONES LATERALES DE CARRUSELES (PRODUCTOS) ===== */
.carousel-track-wrap {
  position: relative;
}

.carousel-track-wrap .carousel-btn.prev-side,
.carousel-track-wrap .carousel-btn.next-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.carousel-track-wrap .carousel-btn.prev-side:hover,
.carousel-track-wrap .carousel-btn.next-side:hover {
  background: var(--accent, var(--color-red-600));
  border-color: var(--accent, var(--color-red-600));
  transform: translateY(-50%) scale(1.1);
}

.carousel-track-wrap .carousel-btn.prev-side {
  left: 8px;
}

.carousel-track-wrap .carousel-btn.next-side {
  right: 8px;
}

.carousel-track-wrap .carousel-btn.prev-side svg,
.carousel-track-wrap .carousel-btn.next-side svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .carousel-track-wrap .carousel-btn.prev-side {
    left: 4px;
    width: 36px;
    height: 36px;
  }

  .carousel-track-wrap .carousel-btn.next-side {
    right: 4px;
    width: 36px;
    height: 36px;
  }

  .carousel-track-wrap .carousel-btn.prev-side svg,
  .carousel-track-wrap .carousel-btn.next-side svg {
    width: 16px;
    height: 16px;
  }
}
/* Ocultar reCAPTCHA badge */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; display: none !important; }

