* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

.mobile-text {
  display: none;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  padding-top: 80px;
  background: linear-gradient(to bottom, #f4f4f4 0%, #ffffff 100%);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  position: relative;
}

.hero {
  scroll-margin-top: 100px;
}

.distribuidores,
.nosotros,
.contacto,
.faq {
  scroll-margin-top: 130px;
}

.hero,
.distribuidores,
.nosotros,
.contacto {
  padding: 30px 0;
  width: calc(100% - 1.5rem);
  margin: 20px auto;
  border-radius: 15px;
}

.header,
.hero,
.distribuidores,
.contacto {
  box-shadow: 0 4px 20px rgba(0, 0, 1, 0.75);
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* -------------------------------------------------------------
 * ENCABEZADO Y MENU
 * ------------------------------------------------------------- */
.header {
  background-color: #f4f4f4;
  color: #1b9a00;
  padding: 15px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  height: 100px;
  transition: height 0.3s ease;
  z-index: 1001;
}

.header.scrolled {
  padding: 5px 0;
}

.header.scrolled .logo {
  height: 60px;
}

/* NavegaciÃ³n */
.nav {
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.nav a {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #ff0000;
}

/* BotÃ³n hamburguesa */
.menu-toggle {
  display: block;
  background: none;
  border: none;
  background-color: #a20000;
  box-shadow: 0 2px 5px rgba(0, 0, 1, 0.75);
  color: white;
  padding: 5px 10px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 1002;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background-color: #ff0000;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.5);
}

@media (min-width: 871px) {
  #nav {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 30px;
    background: linear-gradient(135deg, #111 0%, #a20000 100%);
    box-shadow: 0 4px 15px rgba(162, 0, 0, 0.3);
    transition: all 0.3s ease;
  }

  .menu-toggle:hover {
    background: linear-gradient(135deg, #a20000 0%, #ff0000 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
  }

  .menu-toggle::after {
    content: "MENU";
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
  }
}

/* --- DESKTOP FULLSCREEN MENU OVERLAY --- */
.desktop-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(145deg, #111111 0%, #2a2a2a 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
  overflow-y: auto;
}

.desktop-menu-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.close-desktop-menu {
  position: fixed;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 10000;
}

.close-desktop-menu:hover {
  color: #ff4d4d;
  transform: scale(1.1);
}

.dmo-content {
  display: flex;
  flex: 1;
  padding: 80px 10%;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.dmo-left {
  flex: 1;
  max-width: 400px;
  padding-right: 40px;
}

.dmo-logo {
  max-width: 270px;
  margin-bottom: 30px;
}

.dmo-left h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
  text-transform: uppercase;
}

.dmo-left p {
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 40px;
  line-height: 1.6;
}

.dmo-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.dmo-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dmo-nav a {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.dmo-num {
  font-size: 1rem;
  color: #ff4d4d;
  font-weight: 700;
  margin-top: 10px;
}

.dmo-nav a:hover {
  color: #ff4d4d;
  transform: translateX(10px);
}

.dmo-footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 10%;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.dmo-footer-info a,
.dmo-footer-social a {
  color: #aaa;
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.3s ease;
}

.dmo-footer-info a:hover,
.dmo-footer-social a:hover {
  color: #fff;
}

/* Responsividad para el Menú Desktop en pantallas medianas o bajas */
@media (max-width: 1200px) {
  .dmo-left h2 {
    font-size: 2rem;
  }
  .dmo-nav a {
    font-size: 2.2rem;
  }
  .dmo-logo {
    max-width: 200px;
  }
}

@media (max-width: 1024px) {
  .dmo-content {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 100px 8% 40px;
    gap: 40px;
  }
  .dmo-right {
    justify-content: flex-start;
    width: 100%;
  }
  .dmo-nav {
    width: 100%;
  }
  .dmo-left {
    max-width: 100%;
    padding-right: 0;
  }
  .dmo-footer {
    flex-direction: column;
    gap: 15px;
    padding: 20px 8%;
  }
}

@media (max-height: 700px) {
  .dmo-content {
    padding-top: 80px;
    padding-bottom: 20px;
  }
  .dmo-left h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  .dmo-left p {
    margin-bottom: 20px;
    font-size: 1rem;
  }
  .dmo-logo {
    max-width: 180px;
    margin-bottom: 15px;
  }
  .dmo-nav a {
    font-size: 1.8rem;
    gap: 10px;
  }
  .dmo-footer {
    padding-top: 15px;
    padding-bottom: 15px;
  }
}

@media (max-width: 870px) {
  .desktop-menu-overlay {
    display: none !important;
  }
}

/* Botón CTA compartido, debajo del slider */
.slider-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0;
  width: calc(100% - 1.5rem);
  margin: -4px auto 0;
  background: linear-gradient(to bottom, #111 0%, #1a1a1a 100%);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 1, 0.75);
}

/* -------------------------------------------------------------
 * SECCIÃ“N HERO
 * ------------------------------------------------------------- */
.hero {
  position: relative;
  max-width: 1380px;
  width: calc(100% - 1.5rem);
  margin: 20px auto;
  aspect-ratio: 1380 / 650;
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #000;
  min-height: 400px;
  background-position: center center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide.content-left {
  justify-content: flex-start;
  text-align: left;
}

.slide.content-left .slide-content {
  padding-left: 60px;
  margin-left: 0;
  margin-right: auto;
}

.slide.content-right {
  justify-content: flex-end;
  text-align: right;
}

.slide.content-right .slide-content {
  padding-right: 60px;
  margin-left: auto;
  margin-right: 0;
}

.slide.content-center {
  justify-content: center;
  text-align: center;
}

.slide.content-center .slide-content {
  margin-left: auto;
  margin-right: auto;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.slide-content {
  position: relative;
  z-index: 4;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  padding: 0 20px;
  max-width: 900px;
  margin-top: 10%;
}

.slide-content h1,
.slide-content h2 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}

.slide-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(162, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active,
.dot:hover {
  background: #a20000;
  transform: scale(1.2);
}

.btn {
  background: linear-gradient(90deg, #000, #a20000);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: #ff0000;
  transform: translateY(-3px);
}

.btn-message {
  background: linear-gradient(90deg, #000, #a20000);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn-message:hover {
  background: #ff0000;
  transform: translateY(-3px);
}

/* -------------------------------------------------------------
 * DISTRIBUIDORES
 * ------------------------------------------------------------- */
.distribuidores {
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 85% 85%, rgba(0, 0, 0, 0.2) 0%, transparent 25%),
    linear-gradient(135deg, #a20000 0%, #4a0000 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 60px 0;
}

.distribuidores::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.distribuidores .container {
  position: relative;
  z-index: 1;
}

.tarjetas-distribuidores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

/* ---- Flip 3D Container ---- */
.tarjeta-marca-flip {
  perspective: 1200px;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  position: relative;
  container-type: inline-size;
}

.tarjeta-marca-flip:hover {
  transform: translateY(-6px);
}

.tarjeta-marca-flip,
.tarjeta-marca-flip:hover {
  transition: transform 0.35s ease;
}

/* Flip hint icon */
.tarjeta-marca-flip::after {
  content: "⟳";
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 5;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.5);
  transition: opacity 0.3s ease, transform 0.5s ease;
  pointer-events: none;
}

.tarjeta-marca-flip:hover::after,
.tarjeta-marca-flip.flipped::after {
  opacity: 0;
  transform: rotate(180deg);
}

.tarjeta-marca-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.tarjeta-marca-flip:hover .tarjeta-marca-inner,
.tarjeta-marca-flip.flipped .tarjeta-marca-inner {
  transform: rotateY(180deg);
}

/* Prevent 3D layers from blocking pointer events when flipped */
.tarjeta-marca-flip:hover .tarjeta-marca,
.tarjeta-marca-flip.flipped .tarjeta-marca {
  pointer-events: none;
}

.tarjeta-marca-flip:hover .tarjeta-marca-back,
.tarjeta-marca-flip.flipped .tarjeta-marca-back {
  pointer-events: auto;
}

/* ---- Front Face (unchanged card design) ---- */
.tarjeta-marca {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tarjeta-marca::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  transition: background 0.3s ease;
}

.tarjeta-marca h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.tarjeta-marca h3,
.tarjeta-marca p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.tarjeta-marca p {
  font-size: 0.95rem;
  line-height: 1.3;
}

/* ---- Back Face ---- */
.tarjeta-marca-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  pointer-events: none; /* Block by default so it doesn't overlap the front face */
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 18px 18px;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, #2a2a2a 0%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Subtle dot pattern on back */
.tarjeta-marca-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  border-radius: 12px;
}

.tarjeta-marca-back h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.tarjeta-marca-back .back-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #111111, #888888, #111111);
  border-radius: 2px;
  margin: 4px auto 8px;
  position: relative;
  z-index: 1;
}

.tarjeta-marca-back p {
  font-size: clamp(0.85rem, 4.5cqi, 1.2rem);
  line-height: 1.5;
  color: #c0c0d0;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.btn-marca-web {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e1e1e;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.btn-marca-web:hover {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* -------------------------------------------------------------
 * MENÃš LATERAL (Distribuidor)
 * ------------------------------------------------------------- */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  background-color: rgba(30, 30, 30, 0.75);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 10px;
  color: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-right: solid 2px rgba(255, 255, 255, 0.25);
}

.sidebar.open {
  width: 300px;
}

/* Contenido del menÃº */
.sidebar-content {
  padding: 20px;
  margin-top: 20px;
}

.sidebar h3 {
  color: #ff4d4d;
  font-size: 1.5rem;
  margin-top: 0;
}

.sidebar h4 {
  font-size: 1.2rem;
  margin-top: 10px;
}

.sidebar p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* BotÃ³n de cerrar */
.close-btn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: 0.3s;
}

.close-btn:hover {
  color: #ff4d4d;
}

/* BotÃ³n de acciÃ³n dentro del sidebar */
.sidebar-btn {
  display: inline-block;
  background-color: #a20000;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.sidebar-btn:hover {
  background-color: #ff0000;
}

/* -------------------------------------------------------------
 * NOSOTROS — Split Layout + Pillars
 * ------------------------------------------------------------- */
.nosotros {
  background: transparent;
  padding: 0 !important;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  margin: 0 auto;
}

/* --- Upper: white split section --- */
.nosotros-upper {
  background: #ffffff;
  padding: 60px 0;
  width: calc(100% - 1.5rem);
  max-width: 1380px;
  margin: 20px auto 0;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.nosotros-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.nosotros-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #111;
  line-height: 1.2;
  margin: 0 0 30px;
  letter-spacing: -0.5px;
}

.nosotros-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  margin: 0 0 18px;
}

.nosotros-text p:last-child {
  margin-bottom: 0;
}

.nosotros-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nosotros-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 15px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.nosotros-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
}

/* --- Lower: dark pillars bar --- */
.nosotros-pillars {
  background: linear-gradient(145deg, #1a1a1a 0%, #111111 100%);
  padding: 40px 0;
  width: calc(100% - 1.5rem);
  max-width: 1380px;
  margin: 0 auto 20px;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
  position: relative;
  overflow: hidden;
}

/* Subtle dot pattern */
.nosotros-pillars::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 25px 25px;
  pointer-events: none;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.pillar-card {
  padding: 25px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}

.pillar-card:first-child {
  border-left: none;
}

.pillar-card:hover {
  transform: translateY(-4px);
}

.pillar-card h3 {
  color: #a20000;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 10px;
}

.pillar-line {
  width: 35px;
  height: 2px;
  background: linear-gradient(90deg, #a20000, #ff4d4d);
  border-radius: 2px;
  margin-bottom: 14px;
}

.pillar-card p {
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Responsive: Nosotros --- */
@media (max-width: 870px) {
  .nosotros-upper {
    padding: 40px 0;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .nosotros-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .nosotros-image {
    order: -1;
  }

  .nosotros-image img {
    max-width: 100%;
  }

  .nosotros-heading {
    font-size: 1.6rem;
    text-align: center;
  }

  .nosotros-text p {
    text-align: center;
    font-size: 0.95rem;
  }

  .nosotros-pillars {
    display: none;
  }
}

@media (max-width: 480px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------
 * REDES SOCIALES (RRSS)
 * ------------------------------------------------------------- */
.rrss {
  background: #ffffff;
  padding: 60px 0;
  text-align: center;
  width: calc(100% - 1.5rem);
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.intro-rrss {
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #666;
}

.rrss-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}

.social-feed {
  background: white;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 400px;
  min-width: 0;
  overflow: hidden;
}

.embed-container {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  flex: 1;
}

.embed-container blockquote {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.embed-container iframe,
.embed-container blockquote {
  max-width: 100%;
}

.fb-embed-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f2f5;
}

.fb-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-weight: bold;
  font-size: 0.85rem;
}

.feed-header img {
  width: 20px;
  height: 20px;
}

/* ============================
   CONTACTO
=============================== */
.contacto {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(64, 0, 0, 0.9) 100%);
  color: #fff;
  padding: 80px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.contacto h2 {
  font-size: 2rem;
  text-align: left;
  margin-top: 0px;
  margin-bottom: 30px;
  color: #ffffff;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.logo-contacto {
  width: 200px;
  margin-bottom: 20px;
}

.contacto-info p {
  font-size: 1rem;
  line-height: 1.6;
}

.redes-contacto {
  margin-top: 15px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.75rem
}

.btn-red {
  display: flex;
  background: linear-gradient(90deg, #000, #a20000);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.btn-red img {
  width: 22px;
  height: 22px;
}

.btn-red:hover {
  background: #ff0000;
  transform: translateY(-3px);
}

.contacto-dual {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin: 20px 0;
}

.contacto-col {
  flex: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid #a9a9a950;
  border-left: 1px solid #a9a9a950;
  border-bottom: 2px solid #FFFFFF75;
  border-right: 2px solid #FFFFFF75;
  box-shadow: 5px 5px 12px rgba(0, 0, 1, 0.75);
  border-radius: 15px;
  padding: 15px;
}

.contacto-col h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #ff4d4d;
}

.contacto-col p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ddd;
  min-width: 175px
}

.contacto-col a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.contacto-col a:hover {
  color: #ffb3b3;
}

/* ------------------------ FORMULARIO ------------------------*/
.contacto-form h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #fff;
}

.contacto-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contacto-form input,
.contacto-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  outline: none;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  border-color: #ff4d4d;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
}

.contacto-form textarea {
  min-height: 205px;
}

.contacto-form button {
  background: linear-gradient(90deg, #000, #a20000);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  display: inline-block;
}

.contacto-form button:hover {
  background: #ff0000;
  transform: scale(1.05);
}

/* -------------------------------------------------------------
 * SOLUCIONES
 * ------------------------------------------------------------- */
.soluciones {
  background: #ffffff;
  padding: 60px 0;
  width: calc(100% - 1.5rem);
  max-width: 1380px;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  scroll-margin-top: 80px;
}

.soluciones .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
  border-bottom: 1px solid #eee;
  width: 100%;
  max-width: 100vw;
  position: relative;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 10px;
  /* Space for scroll if needed */
}

.tabs-nav::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar for Chrome, Safari and Opera */
}

.tab-btn {
  background: none;
  border: none;
  padding: 15px 5px;
  font-size: clamp(1rem, 0.8vw + 0.5rem, 1.2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #888;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 1px;
}

.tab-btn:hover {
  color: #a20000;
}

.tab-btn.active {
  color: #000;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #a20000;
}

.tab-panels {
  width: 100%;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.soluciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.solucion-card {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 5;
  box-shadow: 0 4px 20px rgba(0, 0, 1, 0.75);
}

.solucion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.solucion-image {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.solucion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solucion-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
  color: #fff;
  z-index: 2;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  box-sizing: border-box;
}

.solucion-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.solucion-info p {
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 15px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.solucion-info .btn-message {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  width: fit-content;
  padding: 8px 15px;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Efecto Hover: Sube y muestra */
.solucion-card:hover .solucion-info {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.solucion-card:hover .solucion-info p {
  max-height: 80px;
  opacity: 1;
  margin-top: 5px;
}

.solucion-card:hover .solucion-info .btn-message {
  background: rgba(162, 0, 0, 0.8);
  border-color: #a20000;
}

.solucion-info .btn-message:hover {
  background: #a20000;
  border-color: #a20000;
}

/* -------------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------------- */
.footer {
  text-align: center;
  padding: 40px 0;
  background: #f4f4f4;
}

.footer p {
  margin: 10px 0;
}

/* -------------------------------------------------------------
 *                                         RESPONSIVE (Móviles)
 * ------------------------------------------------------------- */
@media (max-width: 870px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 280px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: rgba(30, 30, 30, 0.95);
    /* More opaque */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: solid 2px rgba(255, 255, 255, 0.25);
    overflow-x: hidden;
    transition: transform 0.4s ease-in-out;
    transform: translateX(100%);
    z-index: 1001;
    text-align: center;
    padding-top: 50px;
    margin: 0;
  }

  .nav.open {
    transform: translateX(0);
    width: 280px;
  }

  .nav a {
    display: block;
    width: 80%;
    padding: 18px 0;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    margin: 0px 0;
  }

  .nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ff4d4d;
    transform: translateY(-5px);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1002;
  }

  .header {
    padding: 8px 0;
    width: 100%;
    overflow: hidden;
  }

  .header-container {
    width: 95%;
    margin: 0 auto;
  }

  .header .logo {
    height: auto;
    max-height: 50px;
    max-width: 70%;
    object-fit: contain;
  }

  .header.scrolled {
    padding: 8px 0;
  }

  .header.scrolled .logo {
    height: auto;
    max-height: 50px;
    max-width: 70%;
  }

  .hero {
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 90vh;
    padding: 0 !important;
    scroll-margin-top: 50px;
  }

  .slide {
    background-size: cover;
    background-position: center center;
  }

  .slide-content {
    display: none;
  }

  .nosotros,
  .contacto,
  .distribuidores,
  .rrss {
    padding: 40px 0;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .logo-contacto {
    margin: 0 auto 20px;
    display: block;
  }

  .auto-style52 {
    font-size: 0.7rem;
  }

  .contacto-dual {
    flex-direction: column;
  }

  .contacto-form textarea {
    min-height: 90px;
  }

  .rrss-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .social-feed {
    width: 95%;
    max-width: none;
    margin: 0;
    height: auto;
    min-height: 480px;
    padding: 8px;
  }

  .social-feed.instagram,
  .social-feed.facebook {
    display: none;
  }

  .tarjetas-distribuidores {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .tarjeta-marca p {
    display: none;
  }

  .tarjeta-marca-back {
    padding: 12px 10px 10px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: rotateY(180deg) translateZ(1px);
    backface-visibility: hidden;
  }

  .tarjeta-marca-back h4,
  .tarjeta-marca-back .back-divider {
    display: none;
  }

  .tarjeta-marca-back p {
    font-size: clamp(0.6rem, 4.8cqi, 0.8rem);
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .btn-marca-web {
    font-size: 0 !important;
    padding: 6px 14px;
    margin-top: auto;
  }

  .btn-marca-web::before {
    content: "Ir al sitio →";
    font-size: 0.7rem;
  }

  /* Disable hover and tap flip on touch/mobile devices */
  .tarjeta-marca-flip:hover .tarjeta-marca-inner,
  .tarjeta-marca-flip.flipped .tarjeta-marca-inner {
    transform: none;
  }

  /* Sidebar Mobile Font Adjustments (Legibilidad Premium) */
  .sidebar h3 {
    font-size: 1.5rem;
  }
  .sidebar h4 {
    font-size: 1.8rem;
    margin-top: 15px;
  }
  .sidebar p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
  }
  .sidebar-btn {
    font-size: 1.2rem;
    padding: 12px 22px;
  }

  /* Soluciones Mobile Adjustments */
  .tabs-nav {
    gap: 20px;
    margin-bottom: 30px;
  }

  .tab-btn {
    font-size: 0.9rem;
  }

  .soluciones {
    padding: 40px 0;
  }

  h2.auto-style1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
  }
}

@media (max-width: 600px) {

  .redes-contacto {
    gap: 8px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .redes-contacto a span {
    display: none;
  }

  .btn-red {
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
  }

  .tarjetas-distribuidores {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .nav.open {
    width: 60%;
  }

  .sidebar.open {
    width: 80%;
  }

  /* Soluciones Small Mobile */
  .tabs-nav {
    justify-content: center;
    padding: 0 5px;
    gap: 10px;
    margin-bottom: 25px;
    overflow: hidden;
    /* No longer needs scroll if texts are short */
  }

  .tab-btn {
    font-size: 0.7rem;
    padding: 8px 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
  }

  .desktop-text {
    display: none;
  }

  .mobile-text {
    display: inline;
  }

  .tab-btn.active::after {
    height: 3px;
  }

  .soluciones-grid {
    grid-template-columns: 1fr 1fr;
    /* Force 2 columns */
    gap: 10px;
    padding: 0;
    width: 100%;
  }

  .solucion-card {
    aspect-ratio: 3 / 4;
    /* More compact */
    height: auto;
    border-radius: 10px;
  }

  .solucion-info {
    padding: 12px;
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
  }

  .solucion-info h3 {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }

  .solucion-info p {
    font-size: 0.65rem;
    line-height: 1.2;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
  }

  .solucion-card:hover .solucion-info p {
    max-height: 125px;
    -webkit-line-clamp: 8;
  }

  .solucion-info .btn-message {
    padding: 5px 8px;
    font-size: 0.65rem;
    width: 100%;
    text-align: center;
  }
}

/* Animations */
.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.fade-in {
  opacity: 0;
  transition: opacity 1.4s ease-out;
}

.slide-up.in-view,
.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* -------------------------------------------------------------
 * MODAL DE PRODUCTOS
 * ------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  border-radius: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: #a20000;
}

.modal-image-container {
  width: 100%;
  height: 200px; /* Reducido de 300px para maximizar espacio vertical útil */
  background: #f4f4f4;
  overflow: hidden;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  padding: 24px 20px; /* Padding más equilibrado y compacto */
  text-align: center;
}

.modal-details h2 {
  font-size: 1.45rem; /* Más balanceado para pantallas estándar */
  color: #111;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 800;
}

.modal-details p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.modal-price-tag {
  background: #f8f8f8;
  padding: 10px 20px; /* Más compacto */
  border-radius: 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.price-label {
  font-size: 0.9rem;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
}

.price-value {
  font-size: 2.2rem;
  color: #a20000;
  font-weight: 900;
}

.price-currency {
  font-size: 1rem;
  color: #a20000;
  font-weight: 700;
  margin-left: 5px;
}

.modal-actions {
  display: flex;
  justify-content: center;
}

.modal-actions .btn-message {
  width: 100%;
  max-width: 300px;
  padding: 15px;
  font-size: 1.1rem;
  justify-content: center;
}

/* Responsive Modal */
@media (max-width: 600px) {
  .modal-content {
    width: 92%;
    max-width: 420px;
    max-height: 85vh;
  }

  .modal-image-container {
    height: 160px;
    /* Más compacto pero proporcionado */
  }

  .modal-details {
    padding: 20px 15px;
  }

  .modal-details h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }

  .modal-details p {
    font-size: 0.85rem;
    /* Legibilidad Premium */
    margin-bottom: 15px;
    line-height: 1.4;
  }

  .modal-price-tag {
    padding: 10px 16px;
    margin-bottom: 20px;
  }

  .price-value {
    font-size: 1.8rem;
  }

  #modal-service-table-container {
    max-height: 180px; /* Limita el scroll interno en móvil para no desbordar el modal */
    margin: 10px 0;
  }
}

/* Optimización para pantallas con poca altura vertical (Laptops de 14", 17" y resoluciones bajas) */
@media (max-height: 720px) {
  .modal-content {
    max-height: 94vh; /* Permitir usar más porcentaje de la pantalla vertical */
  }

  .modal-image-container {
    height: 120px; /* Imagen más compacta para liberar espacio */
  }

  .modal-details {
    padding: 15px; /* Reducción de espaciados */
  }

  .modal-details h2 {
    font-size: 1.15rem;
    margin-bottom: 5px;
  }

  .modal-details p {
    font-size: 0.8rem;
    margin-bottom: 10px;
    line-height: 1.35;
  }

  .modal-price-tag {
    padding: 6px 12px;
    margin-bottom: 12px;
  }

  .price-value {
    font-size: 1.45rem;
  }

  .modal-actions .btn-message {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  #modal-service-table-container {
    max-height: 150px; /* Limita drásticamente la tabla para evitar scrolls exteriores */
    margin: 8px 0;
  }
}


/* --- TABLA DE SERVICIOS EN MODAL --- */
#modal-service-table-container {
  margin: 15px 0;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

#modal-service-table-container::-webkit-scrollbar {
  width: 6px;
}

#modal-service-table-container::-webkit-scrollbar-thumb {
  background: #a2000050;
  border-radius: 10px;
}

.service-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  /* Reduced font size */
  color: #333;
}

.service-table th {
  background: rgba(162, 0, 0, 0.1);
  color: #a20000;
  text-align: left;
  padding: 8px;
  border-bottom: 2px solid #a20000;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.service-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
}

.service-table tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.service-section-header {
  background: #a20000 !important;
  color: #fff !important;
  font-weight: bold;
  text-align: center !important;
  padding: 8px !important;
  text-transform: uppercase;
}

.service-item-desc {
  padding-left: 20px !important;
}

.service-price {
  font-weight: 700;
  color: #a20000;
  white-space: nowrap;
  text-align: right;
}

.iva-note {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-top: 15px;
  font-style: italic;
  width: 100%;
}

/* =============================================================
   PANTALLA DE CARGA
   ============================================================= */

/* Bloqueo de Scroll sin Desplazamiento (No-Shift Scroll Lock) */
html.preloader-active,
body.preloader-active {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Contenedor Principal */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  visibility: visible;
  transition: visibility 0s 1.2s;
}

/* Patrón de Puntos de la Identidad Visual (Distribuidores) */
.preloader-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Persianas Staggered Verticales */
.preloader-shutters {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.shutter {
  flex: 1;
  height: 100%;
  background: linear-gradient(135deg, #a20000 0%, #4a0000 100%);
  transform: scaleY(1);
  transform-origin: bottom;
  /* Se encogen hacia abajo en la salida */
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
  /* Evita sutiles grietas de sub-píxeles verticales en pantallas de alta resolución */
  box-shadow: 0 0 1px #a20000;
}

/* Contenido Central (Logo + Spinner) */
.preloader-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  color: #fff;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Logotipo Pulsante */
.preloader-logo {
  max-width: 260px;
  height: auto;
  display: block;
  animation: preloaderPulse 2.5s infinite ease-in-out;
}

@keyframes preloaderPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.95;
  }

  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

/* Estatus de Carga */
.preloader-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Spinner Moderno */
.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: preloaderSpin 1s linear infinite;
}

@keyframes preloaderSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Porcentaje Numérico */
.preloader-percentage {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
}

/* =============================================================
   ESTADOS DE TRANSICIÓN Y SALIDA
   ============================================================= */

/* 1. Desvanecer Contenido al llegar al 100% */
.preloader.loaded-content .preloader-content,
.preloader.loaded-content .preloader-pattern {
  opacity: 0;
  transform: translateY(-20px);
}

/* 2. Encogimiento de Persianas */
.preloader.loaded .shutter {
  transform: scaleY(0);
}

/* Retardos Escalonados (Stagger Delay) */
.preloader.loaded .shutter:nth-child(1) {
  transition-delay: 0.00s;
}

.preloader.loaded .shutter:nth-child(2) {
  transition-delay: 0.05s;
}

.preloader.loaded .shutter:nth-child(3) {
  transition-delay: 0.10s;
}

.preloader.loaded .shutter:nth-child(4) {
  transition-delay: 0.15s;
}

.preloader.loaded .shutter:nth-child(5) {
  transition-delay: 0.20s;
}

.preloader.loaded .shutter:nth-child(6) {
  transition-delay: 0.25s;
}

/* 3. Completamente oculto tras terminar animación */
.preloader.hidden {
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

/* Ajustes de Responsividad */
@media (max-width: 600px) {
  .preloader-logo {
    max-width: 180px;
  }

  .preloader-spinner {
    width: 32px;
    height: 32px;
    border-width: 2.5px;
  }

  .preloader-percentage {
    font-size: 1.5rem;
  }
}

/* =============================================================
   ESTILOS PREMIUM DEL CHATBOT "TOM"
   ============================================================= */

/* Botón de activación del ChatBot */
.chatbot-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #111 0%, #a20000 100%);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(162, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1002;
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
}

.chatbot-toggle-icon {
  font-size: 1.2rem;
  animation: toggleBubblePulse 2s infinite ease-in-out;
}

@keyframes toggleBubblePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

.chatbot-toggle:hover {
  background: linear-gradient(135deg, #a20000 0%, #ff4d4d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
}

.chatbot-toggle:active {
  transform: translateY(0);
}

/* Ventana Emergente del ChatBot */
.chatbot-window {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 380px;
  height: 550px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 2500;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s;
}

.chatbot-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: all;
}

/* Cabecera del ChatBot */
.chatbot-header {
  background: linear-gradient(135deg, #a20000 0%, #4a0000 100%);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.chatbot-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar-container {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.chatbot-online-indicator {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  background-color: #2ec4b6;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(46, 196, 182, 0.6);
  z-index: 2;
}

.chatbot-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chatbot-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.chatbot-status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-header-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.chatbot-header-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

#chatbot-close {
  font-size: 1.6rem;
}

/* Cuerpo / Mensajes */
.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

/* Scrollbar Personalizada */
.chatbot-body::-webkit-scrollbar {
  width: 6px;
}

.chatbot-body::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-body::-webkit-scrollbar-thumb {
  background: rgba(162, 0, 0, 0.25);
  border-radius: 10px;
}

.chatbot-body::-webkit-scrollbar-thumb:hover {
  background: rgba(162, 0, 0, 0.45);
}

/* Mensajes y Globos */
.chatbot-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 85%;
  opacity: 0;
  transform: translateY(12px);
  animation: msgBubbleIn 0.35s ease forwards;
}

@keyframes msgBubbleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-msg.bot {
  align-self: flex-start;
}

.chatbot-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
  max-width: 80%;
}

.chatbot-msg-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.chatbot-bubble {
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chatbot-msg.bot .chatbot-bubble {
  background: #ffffff;
  color: #333333;
  border: 1px solid #eaeaea;
  border-top-left-radius: 4px;
}

.chatbot-msg.user .chatbot-bubble {
  background: linear-gradient(135deg, #a20000 0%, #6e0000 100%);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(162, 0, 0, 0.15);
}

.chatbot-bubble strong {
  color: inherit;
  font-weight: 700;
}

.chatbot-bubble ul {
  margin: 8px 0 0 0;
  padding-left: 18px;
}

.chatbot-bubble li {
  margin-bottom: 4px;
}

/* Botones de Selección Simple (Opciones) */
.chatbot-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 42px;
  margin-top: -6px;
  margin-bottom: 6px;
  max-width: 85%;
  animation: msgBubbleIn 0.35s ease 0.1s forwards;
  opacity: 0;
  transform: translateY(12px);
}

.chatbot-opt-btn {
  background: #ffffff;
  color: #a20000;
  border: 1px solid #a20000;
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(162, 0, 0, 0.05);
  width: fit-content;
}

.chatbot-opt-btn:hover {
  background: #a20000;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(162, 0, 0, 0.2);
}

.chatbot-opt-btn:active {
  transform: translateY(0);
}

.chatbot-opt-btn.disabled {
  background: #f0f0f0;
  color: #999999;
  border-color: #dddddd;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  transform: none;
}

/* Tarjeta e Enlace Especiales de WhatsApp */
.chatbot-wa-card {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  border-top-left-radius: 2px;
}

.chatbot-wa-text {
  font-size: 0.85rem;
  color: #2e7d32;
  line-height: 1.4;
}

.chatbot-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
  transition: all 0.25s ease;
  text-align: center;
}

.chatbot-wa-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(18, 140, 126, 0.35);
}

.chatbot-wa-btn img {
  width: 20px;
  height: 20px;
}

/* Pie de la Ventana */
.chatbot-footer {
  padding: 8px 12px;
  background: #f1f3f5;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.chatbot-footer-note {
  font-size: 0.72rem;
  color: #868e96;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================================
   RESPONSIVIDAD Y ADAPTACIONES DEL CHATBOT
   ============================================================= */

/* Ajustes Generales del Botón en Desktop */
.chatbot-toggle-text::after {
  content: "Chat en línea";
  display: inline;
}

/* Adaptación Breakpoint Menú Hamburguesa (Móviles) */
@media (max-width: 870px) {
  .chatbot-toggle {
    position: static;
    margin-left: auto;
    margin-right: 12px;
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .chatbot-toggle-text::after {
    content: "Chat";
  }
}

/* Pantallas Muy Pequeñas */
@media (max-width: 480px) {
  .chatbot-toggle {
    padding: 8px 10px;
    margin-right: 8px;
  }

  .chatbot-toggle-text {
    display: none !important;
  }
}

/* Responsividad Ventana Chatbot en Móviles */
@media (max-width: 600px) {
  .chatbot-window {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: #ffffff;
  }

  .chatbot-header {
    border-radius: 0;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .chatbot-body {
    padding: 16px;
  }

  .chatbot-options {
    padding-left: 42px;
  }

  .chatbot-opt-btn {
    padding: 11px 18px;
    font-size: 0.9rem;
    max-width: 100%;
  }
}

/* =============================================================
   TRANSICIÓN DE NAVEGACIÓN ENTRE SECCIONES
   ============================================================= */

.nav-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: linear-gradient(to bottom, #111 0%, #2a2a2a 100%);
  pointer-events: none;
  visibility: hidden;
  /* Empieza fuera de la pantalla por abajo */
  transform: translateY(100%);
  will-change: transform;
  /* Centrar el label */
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-transition.is-animating {
  pointer-events: all;
  visibility: visible;
}

/* Entrada: bloque sube desde abajo hasta cubrir toda la pantalla */
.nav-transition.entering {
  animation: blockEnter 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

/* Salida: bloque sale hacia arriba */
.nav-transition.leaving {
  animation: blockLeave 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes blockEnter {
  0%   { transform: translateY(100%); }
  100% { transform: translateY(0%); }
}

@keyframes blockLeave {
  0%   { transform: translateY(0%); }
  100% { transform: translateY(-100%); }
}

/* Label del nombre de la sección — centrado dentro del bloque */
.nav-transition-label {
  position: absolute;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
  user-select: none;
}

.nav-transition-label.visible {
  animation: labelFadeIn 0.4s ease forwards;
}

.nav-transition-label.hiding {
  animation: labelFadeOut 0.3s ease forwards;
}

@keyframes labelFadeIn {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0px); }
}

@keyframes labelFadeOut {
  0%   { opacity: 1; transform: translateY(0px); }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* =============================================================
   BARRA FLOTANTE DE REDES SOCIALES
   ============================================================= */

.social-float {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* Sin fondo — iconos flotando libres */
  background: transparent;
  padding: 0;
  /* Entrada suave al cargar */
  animation: socialFloatIn 0.6s 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes socialFloatIn {
  0%   { opacity: 0; transform: translateY(-50%) translateX(60px); }
  100% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* Cada enlace — círculo con sombra propia */
.social-float-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.40);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  flex-shrink: 0;
  overflow: visible; /* tooltip no se corta */
}

.social-float-link:hover {
  background: rgba(162, 0, 0, 0.85);
  transform: scale(1.15) translateX(-3px);
  box-shadow: 0 6px 20px rgba(162, 0, 0, 0.45);
}

.social-float-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  /* Iconos a color natural, sin filtros */
  transition: transform 0.25s ease;
}

.social-float-link:hover img {
  transform: scale(1.05);
}

/* Tooltip que aparece a la izquierda */
.social-float-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(10, 10, 10, 0.88);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  /* No heredar overflow:hidden del padre */
  z-index: 1;
}

/* Flechita apuntando al icono */
.social-float-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(10, 10, 10, 0.88);
}

.social-float-link:hover .social-float-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Ocultar en móvil */
@media (max-width: 870px) {
  .social-float {
    display: none;
  }
}

/* Utilidades de visibilidad */
.mobile-only {
  display: none !important;
}
}
}

/* -------------------------------------------------------------
 * SECCIÓN FAQ (PREGUNTAS FRECUENTES)
 * ------------------------------------------------------------- */
.faq {
  background: #ffffff;
  color: #000000;
  padding: 60px 0;
  width: calc(100% - 1.5rem);
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-container {
  max-width: 850px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 15px;
}

.faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: #ffffff;
  border-color: rgba(162, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #000000;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #a20000;
}

.faq-question span {
  pointer-events: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 20px;
  color: #333333;
  font-size: 1rem;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0 0 20px 0;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: #a20000;
  transition: transform 0.3s ease, color 0.3s ease;
  line-height: 1;
}

.faq-item.active {
  border-color: rgba(162, 0, 0, 0.5);
  background: rgba(162, 0, 0, 0.02);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 5px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #ff0000;
}

@media (max-width: 870px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-flex !important;
  }
  
  /* Optimización FAQ para móviles (-10% tamaño y ajuste de espacio) */
  .faq {
    padding: 40px 0;
  }
  .faq h2.auto-style1 {
    font-size: 1.8rem !important;
  }
  .faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .faq-answer {
    font-size: 0.9rem;
    padding: 0 15px;
  }
  .faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 15px;
  }
}