/* =====================================================
   GLOBAL SAFETY (ANTI HORIZONTAL SCROLL)
   ===================================================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* =====================================================
   BASE TYPOGRAPHY (DESKTOP FIRST)
   ===================================================== */

html {
  font-size: 16px;
}

/* =====================================================
   HERO / VIDEO
   ===================================================== */

.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 1;
  pointer-events: none;
}

/* =====================================================
   NAVBAR
   ===================================================== */

.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: ease 0.4s;
}

.custom-navbar--scrolled {
  height: 40px;
}

.custom-navbar .nav-link,
.custom-navbar .navbar-brand {
  color: #ffffff;
  font-weight: 500;
}

.custom-navbar .nav-link:hover {
  color: #0dcaf0;
}

.darkSection-menu {
  background-color: black;
  color: #fff;
}

/* =====================================================
   HERO CONTENT
   ===================================================== */

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  color: #ffffff;
  padding: 45vh 50px 0;
  max-width: 100%;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.hero-btn,
.menu-btn,
.btn-cta,
.btn-cta-inv {
  border-radius: 50px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.hero-btn {
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.15);
  color: white;
}

.hero-btn:hover {
  background: rgba(255,255,255,0.9);
  color: black;
}

.menu-btn {
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.95);
  color: black;
}

.menu-btn:hover {
  background: black;
  color: white;
}

.btn-cta {
  background: white;
  border: 2px solid black;
  color: black;
}

.btn-cta:hover {
  background: black;
  color: white;
}

.btn-cta-inv {
  background: black;
  border: 2px solid white;
  color: white;
}

.btn-cta-inv:hover {
  background: white;
  color: black;
}

/* =====================================================
   DROPDOWN MULTINIVEL
   ===================================================== */

.dropdown-menu .dropdown-submenu {
  position: relative;
}

.dropdown-menu .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
  display: none;
}

.dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* =====================================================
   TYPOGRAPHY SYSTEM (DESKTOP)
   ===================================================== */

.big-title {
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 700;
}

.big-title-thin {
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 400;
}

.medium-title {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
}

.small-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
}

.paragrap-big {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1.45;
}

.paragrap-medium {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.55;
}

.paragrap-small {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  line-height: 1.55;
}

.paragrap-tiny {
  font-size: 0.95rem;
  line-height: 1.5;
}

.button-text {
  font-size: clamp(0.95rem, 1.2vw, 1.3rem);
}

/* =====================================================
   LISTS & TEXT
   ===================================================== */

p,
li {
  max-width: 65ch;
}

li {
  margin-bottom: 0.9rem;
  line-height: 1.45;
}

/* =====================================================
   IMAGES / COMPARISON (FIXED)
   ===================================================== */

.section-imagen {
  position: relative;
  max-width: 100%;
}

.comparisonImage {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.comparisonImage img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   SECTIONS / CAROUSEL
   ===================================================== */

.darkSection {
  background-color: black;
}

.graySection {
  background-color: rgb(174, 171, 171);
}

.carousel {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  display: flex;
}

.group {
  display: flex;
  align-items: center;
  gap: 8em;
  animation: spin 8s linear infinite;
}

.card {
  flex: 0 0 auto;
  background: black;
  text-align: center;
}

.card img {
  height: 7em;
}

@keyframes spin {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* =====================================================
   ACCORDION DARK
   ===================================================== */

.accordion-dark,
.accordion-dark * {
  background-color: black;
  color: white;
}

.accordion-dark .accordion-item {
  border: 1px solid #333;
}

.accordion-dark .accordion-button::after {
  filter: invert(1);
}

/* =====================================================
   MOBILE LEGIBILITY MODE (CLEAN & BALANCED)
   ===================================================== */

@media (max-width: 768px) {

  html {
    font-size: 16px;
  }

  .hero-content {
    padding: 38vh 1.25rem 0;
  }

  p,
  li {
    max-width: 38ch;
  }

  .medium-title {
    font-size: 1.9rem;
    line-height: 1.25;
  }

  .paragrap-big {
    font-size: 1.1rem;
  }

  .paragrap-medium {
    font-size: 1.05rem;
  }

  .paragrap-small {
    font-size: 0.95rem;
  }

  button,
  .btn {
    font-size: 0.95rem;
    padding: 0.75rem 1.2rem;
  }

  .row > [class^="col"] {
    width: 100% !important;
  }

}