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

html {
  font-size: 16px;
}

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

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

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

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  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;
}

.hero-btn,
.menu-btn {
  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;
}

/* =====================================================
   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(2rem, 4vw, 3rem);
  font-weight: 200;
}

.paragrap-big {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.45;
}

.paragrap-big-bold {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
}

.paragrap-medium {
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.5;
}

.paragrap-medium-small {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 600;
}

.paragrap-small {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  line-height: 1.55;
}

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

.paragrap-micro {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.paragrap-small-bold {
  font-size: clamp(1rem, 1vw, 1.8rem);
  font-weight: 500;
}

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

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

li {
  margin-bottom: 1rem;
  line-height: 1.4;
}

.section-texto {
  line-height: 1.6;
}

/* =====================================================
   IMAGES / COMPARISON
   ===================================================== */

.section-imagen {
  position: absolute;
  height: auto;
}

.comparisonImage {
  position: relative;
  inset: 0;
}

.comparisonImage img {
  width: 100vh;
  height: auto;
}

.afterImage {
  width: 100%;
  overflow: hidden;
}

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

.btn-cta,
.btn-cta-inv {
  border-radius: 50px;
  transition: all 0.3s ease;
}

.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;
}

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

.darkSection {
  background-color: black;
}

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

.carousel {
  margin: 10px auto;
  width: 99%;
  display: flex;
  overflow: hidden;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10em;
  animation: spin 8s infinite linear;
  padding-right: 6em;
  margin: 3em 0;
}

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

.card img {
  height: 3em;
}

@keyframes spin {
  from { translate: 0%; }
  to { translate: -100%; }
}

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

.accordion-dark,
.accordion-dark .accordion-item,
.accordion-dark .accordion-button,
.accordion-dark .accordion-body {
  background-color: black;
  color: white;
}

.accordion-dark .accordion-button:not(.collapsed) {
  box-shadow: none;
}

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

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

.accordion-dark .accordion-button:focus {
  box-shadow: none;
}

/* =====================================================
   MOBILE LEGIBILITY MODE (KEY SECTION)
   ===================================================== */

@media (max-width: 768px) {

  html {
    font-size: 17px;
  }

  p,
  li {
    max-width: 42ch;
    line-height: 1.7;
  }

  p {
    margin-bottom: 1.1rem;
  }

  li {
    margin-bottom: 0.6rem;
  }

  .medium-title {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 1.2rem;
  }

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

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

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

  button,
  .btn {
    font-size: 1.05rem;
    padding: 0.85rem 1.3rem;
  }

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