/* ========================
   BASE / RESET
   ======================== */
:root {
  /* Colores Corporativos */
  --color-primary: #006DB4;
  --color-secondary: #2A98CF;
  --color-tertiary: #f5f0e8;
  --color-accent: #138EC7;
  --color-dark: #222;
  --color-light: #ffffff;
  --color-text: #333333;

  /* Alias para compatibilidad */
  --brand: #006DB4;
  --brand-700: #2A98CF;
  --dark: #222;
  --light-blue: #138EC7;
  --muted: #6b7280;

  --leo-orange: #cc5500;

  --fondo-coorporativo01: #006DB4;
  --fondo-coorporativo02: #2E9AD1;
  --fondo-coorporativo03: #211915;
  --texto-coorporativo01: #222;
  --texto-coorporativo02: #006DB4;
  --texto-coorporativo03: #222;
  --texto-secundario: #f5f0e8;

  /* Sobrescribir variables Bootstrap con nuestra paleta corporativa */
  --bs-primary: #674634;
  --bs-primary-rgb: 103, 70, 52;
  --bs-secondary: #caa57e;
  --bs-secondary-rgb: 202, 165, 126;
  --bs-success: #674634;
  --bs-success-rgb: 103, 70, 52;
  --bs-info: #8b6f47;
  --bs-info-rgb: 139, 111, 71;
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  --bs-danger: #dc3545;
  --bs-danger-rgb: 220, 53, 69;
  --bs-dark: #3d2817;
  --bs-dark-rgb: 61, 40, 23;
  --bs-light: #f5f0e8;
  --bs-light-rgb: 245, 240, 232;
  --bs-white: #ffffff;
  --bs-white-rgb: 255, 255, 255;
  --bs-black: #000000;
  --bs-black-rgb: 0, 0, 0;
  --bs-body-color: #333333;
  --bs-body-color-rgb: 51, 51, 51;
  --bs-body-bg: #ffffff;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-link-color: #674634;
  --bs-link-hover-color: #3d2817;

  /* Altura del navbar para compensar layout y superponer hero */
  --navbar-h: 60px;
}

.js-gt-lang,
.js-gt-lang:focus,
.js-gt-lang:active {
  border: none !important;        /* quita cualquier borde */
  box-shadow: none !important;    /* quita sombras */
  background-color: transparent !important; /* opcional, quita fondo hover */
}

.js-gt-lang:hover {
  background-color: var(--fondo-coorporativo01) !important;
  color: var(--texto-secundario) !important;
}

.leo-link {
  color: var(--leo-orange) !important;
  text-decoration: none;
}

* {
  box-sizing: border-box;
}
:root {
  --topbar-height: 32px;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--bs-body-color);
  padding-top: 0;
  /* El padding-top se establece dinámicamente via JavaScript en main.js */
}
img {
  max-width: 100%;
  display: block;
}

/* ========================
   NAVBAR
   ======================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1070; /* Mayor que navbar para estar encima */
  background-color: var(--light-blue);
  color: var(--texto-secundario);
  font-size: 0.8rem;
  padding: 0.25rem 0;
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
}

#siteNavbar {
  position: fixed;
  top: var(--topbar-height, 32px); /* Se ajusta dinámicamente debajo del topbar */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1060; /* Debajo del topbar, encima del contenido */
  transition: top 0.3s ease-in-out;
}

#siteNavbar.navbar--transparent .navbar-nav .nav-link,
#siteNavbar.navbar--transparent .navbar-brand {
  color: var(--texto-secundario);
  pointer-events: auto;
}

.topbar .btn.btn-sm {
  padding: 0.125rem 0.25rem;
  line-height: 1;
  border-color: var(--texto-secundario);
  color: var(--bs-body-bg);
}

.topbar .btn.btn-sm:hover {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--dark);
}

.topbar .btn.btn-sm svg {
  display: block;
  width: 14px;
  height: 10px;
}

.topbar .topbar__lang-label {
  display: none;
}

/* Estilos para los enlaces de contacto del topbar */
.topbar__contact-link {
  color: var(--texto-secundario);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.topbar__contact-link:hover {
  color: var(--fondo-coorporativo01);
  text-decoration: none;
}

.topbar__contact-link i {
  font-size: 1rem;
}

.topbar__separator {
  color: var(--texto-secundario);
}

/* Comportamiento por defecto: mostrar texto en escritorio */
.topbar__contact-text {
  display: inline;
}

.topbar__separator {
  display: inline;
}

/* En móviles/tablets: ocultar texto, solo mostrar iconos */
@media (max-width: 767.98px) {
  .topbar__contact-text {
    display: none;
  }

  .topbar__separator {
    display: none;
  }

  .topbar__contact-link {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    gap: 0;
  }

  .topbar__contact-link:hover {
    background-color: var(--brand);
    color: var(--dark);
  }

  .topbar__contact-link i {
    font-size: 1.1rem;
  }
}

/* En móviles muy pequeños mantener ambos iconos pero más compactos */
@media (max-width: 576px) {
  .topbar__contact-link {
    padding: 0.2rem 0.3rem;
  }

  .topbar__contact-link i {
    font-size: 0.9rem;
  }

  .topbar .d-flex.align-items-center.gap-3 {
    gap: 0.75rem !important;
  }
}

@media (min-width: 576px) {
  .topbar .topbar__lang-label {
    display: inline;
  }
}

/* Navbar móvil (por defecto) */
:root {
  --navbar-h: 60px;
}

#siteNavbar .navbar-nav .nav-link {
  padding: 1rem 0.75rem;
}

#siteNavbar .navbar-brand {
  padding: 0.5rem 0;
}

#siteNavbar.navbar--solid {
  --navbar-h: 50px;
}

#siteNavbar.navbar--solid .navbar-brand {
  padding: 0.25rem 0;
}

/* Ajustes para tablets */
@media (min-width: 768px) {
  :root {
    --navbar-h: 70px;
  }

  #siteNavbar.navbar--solid {
    --navbar-h: 55px;
  }
}

/* Ajustes para escritorio */
@media (min-width: 992px) {
  :root {
    --navbar-h: 80px;
  }

  #siteNavbar .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }

  #siteNavbar .navbar-brand {
    padding: 0.5rem 0;
  }

  /* Navbar más compacto cuando está sticky */
  #siteNavbar.navbar--solid {
    --navbar-h: 60px;
  }

  #siteNavbar.navbar--solid .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }

  #siteNavbar.navbar--solid .navbar-brand {
    padding: 0.25rem 0;
  }
}
#siteNavbar {
  font-family: "Open Sans", var(--bs-font-sans-serif), system-ui;
  font-size: 0.9rem; /* Reducido de 1.05rem */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#siteNavbar .navbar-brand {
  font-size: 1.125rem;
}

#siteNavbar .navbar-nav .nav-link {
  font-size: 0.85rem; /* Tamaño específico para los enlaces */
  font-weight: 500;
}
.navbar-logo {
  height: 30px;
  width: auto;
  max-height: 30px;
  object-fit: contain;
  transition: height 0.3s ease, max-height 0.3s ease;
}

/* Logo más pequeño cuando el navbar está sticky en móvil */
#siteNavbar.navbar--solid .navbar-logo {
  height: 20px;
  max-height: 20px;
}

/* Ajustes para tablets */
@media (min-width: 768px) {
  .navbar-logo {
    height: 40px;
    max-height: 40px;
  }
  #siteNavbar.navbar--solid .navbar-logo {
    height: 20px;
    max-height: 20px;
  }
}

/* Ajustes para desktop */
@media (min-width: 992px) {
  .navbar-logo {
    height: 60px;
    max-height: 60px;
  }
  #siteNavbar.navbar--solid .navbar-logo {
    height: 40px;
    max-height: 40px;
  }
}
.logo__mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--brand);
  display: inline-block;
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
  position: relative;
  color: #fff;
  z-index: 1; /* Contexto de apilamiento controlado */
  margin-top: 0;
  /* El hero se ajusta dinámicamente con el padding del body */
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  height: calc(80vh - var(--navbar-h, 64px));
  min-height: 500px;
}

.hero .carousel-item {
  transition: opacity 0.6s ease-in-out;
}

/* Centrado vertical del contenido */
.hero .carousel-item .container {
  display: flex;
  align-items: center;
}

.hero .carousel-item .row {
  width: 100%;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: #000 center/cover no-repeat;
}

.hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.35));
}

/* Ajustar altura mínima en móviles */
@media (max-width: 575.98px) {
  .hero .carousel,
  .hero .carousel-inner,
  .hero .carousel-item {
    height: calc(80vh - 120px);
    min-height: 480px;
  }
}

@media (max-width: 374.98px) {
  .hero .carousel,
  .hero .carousel-inner,
  .hero .carousel-item {
    height: calc(80vh - 100px);
    min-height: 450px;
  }
}

/* Captions base - Móvil pequeño (< 576px) */
.hero__caption,
.hero__caption02,
.hero__caption03 {
  padding: 1rem;
  max-width: 100%;
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
}

/* Imágenes hero base */
.hero__imagen01,
.hero__imagen02,
.hero__imagen03 {
  padding-top: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__imagen01 img,
.hero__imagen02 img,
.hero__imagen03 img {
  max-width: 100%;
  border: 2px solid var(--bs-white);
  border-radius: 0.5rem;
  height: auto;
  object-fit: contain;
  max-height: 250px;
}

.hero__logo {
  display: block;
  margin: 0 auto 1rem auto;
  max-width: 100px;
}

/* Ocultar imágenes en móviles muy pequeños para mejorar legibilidad */
@media (max-width: 374.98px) {
  .hero__imagen01,
  .hero__imagen02,
  .hero__imagen03 {
    max-height: fit-content;
    display: none;
  }
  
  .hero__caption,
  .hero__caption02,
  .hero__caption03 {
    max-width: 100%;
  }
}

/* Ajustar tamaño de imágenes en móviles pequeños */
@media (min-width: 375px) and (max-width: 575.98px) {
  .hero__imagen01 img,
  .hero__imagen02 img,
  .hero__imagen03 img {
    max-height: 180px;
    opacity: 0.9;
  }
}

/* Títulos y subtítulos base - Móvil pequeño */
.hero__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-body-bg);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  font-size: 0.875rem;
  opacity: 1;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Botones del hero */
.btn1 {
  display: inline-block;
  background-color: var(--fondo-coorporativo01) !important;
  color: var(--bs-body-bg) !important;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
  line-height: 1.5;
}

.btn1:hover,
.btn1:focus {
  background-color: var(--bs-body-bg) !important;
  color: var(--texto-coorporativo02) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn1:active {
  transform: translateY(0);
}

.btn2 {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--fondo-coorporativo01);
  color: var(--bs-body-bg) !important;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
  line-height: 1.5;
}

.btn2:hover,
.btn2:focus {
  background-color: var(--bs-body-bg) !important;
  color: var(--fondo-coorporativo01) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn2:active {
  transform: translateY(0);
}

.btn3 {
  display: inline-block;
  background-color: var(--fondo-coorporativo01) !important;
  color: var(--bs-body-bg) !important;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
  line-height: 1.5;
}

.btn3:hover,
.btn3:focus {
  background-color: var(--bs-body-bg) !important;
  color: var(--fondo-coorporativo01) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn1:active {
  transform: translateY(0);
}

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

   /* === PREMIUM BUTTONS & CTA === */
.btn-premium {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--fondo-coorporativo01) 0%, var(--fondo-coorporativo02) 100%);
  border: none;
  color: white !important;
  padding: 0.875rem 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 109, 180, 0.3);
}

.btn-premium:hover::before {
  left: 100%;
}
.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 109, 180, 0.4);
  color: white !important;
}
.btn-outline-premium {
  position: relative;
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
  padding: 0.875rem 2rem;
  font-weight: 600;
  transition: var(--transition-smooth) !important;
  overflow: hidden;
}
.btn-outline-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-ocean);
  transition: width 0.4s ease;
  z-index: -1;
}
.btn-outline-premium:hover::before {
  width: 100%;
}
.btn-outline-premium:hover {
  color: white;
  border-color: var(--brand-700);
  transform: translateY(-2px);
}
.cta-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  animation: pulse-cta 2s ease-in-out infinite;
}
@keyframes pulse-cta {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 157, 214, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(0, 157, 214, 0);
  }
}


/* Botones en hero móvil */
.hero__caption .btn-box,
.hero__caption02 .btn-box,
.hero__caption03 .btn-box {
  margin-top: 1rem;
}

.hero__caption .btn1, .hero__caption .btn2,
.hero__caption02 .btn1,
.hero__caption03 .btn1 {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  width: 100%;
  max-width: 200px;
}

/* Móvil mediano (≥ 400px) */
@media (min-width: 400px) {
  .hero__caption,
  .hero__caption02,
  .hero__caption03 {
    padding: 1.25rem;
    margin-top: 1.5rem;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 0.9375rem;
  }
}

/* Móvil grande (≥ 576px) - SM */
@media (min-width: 576px) {
  .hero__caption,
  .hero__caption02,
  .hero__caption03 {
    padding: 1.5rem;
    margin-top: 2rem;
    max-width: 540px;
  }

  .hero__title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__logo {
    max-width: 110px;
  }

  .hero__caption .btn1,
  .hero__caption02 .btn1,
  .hero__caption03 .btn1 {
    width: auto;
    min-width: 180px;
  }

  .hero__imagen01,
  .hero__imagen02,
  .hero__imagen03 {
    padding-top: 1.5rem;
  }
  
  .hero__imagen01 img,
  .hero__imagen02 img,
  .hero__imagen03 img {
    max-height: 180px;
    opacity: 1;
  }
}

/* Tablet (≥ 768px) - MD */
@media (min-width: 768px) {
  .hero__caption,
  .hero__caption02,
  .hero__caption03 {
    padding: 1.75rem;
    margin-top: 2.5rem;
    max-width: 600px;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__subtitle {
    font-size: 1.0625rem;
  }

  .hero__caption .btn1,
  .hero__caption02 .btn1,
  .hero__caption03 .btn1 {
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    min-width: 200px;
  }

  .hero__imagen01,
  .hero__imagen02,
  .hero__imagen03 {
    padding-top: 2rem;
  }
  
  .hero__imagen01 img,
  .hero__imagen02 img,
  .hero__imagen03 img {
    max-height: 350px;
  }
}

/* Desktop (≥ 992px) - LG */
@media (min-width: 992px) {
  .hero__caption,
  .hero__caption02,
  .hero__caption03 {
    padding: 2rem;
    margin-top: 3rem;
    max-width: 660px;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }

  .hero__logo {
    max-width: 120px;
  }

  .hero__caption .btn1,
  .hero__caption02 .btn1,
  .hero__caption03 .btn1 {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    min-width: 220px;
  }

  .hero__imagen01,
  .hero__imagen02,
  .hero__imagen03 {
    padding-top: 2.5rem;
  }
  
  .hero__imagen01 img,
  .hero__imagen02 img,
  .hero__imagen03 img {
    max-height: 400px;
  }
}

/* Desktop grande (≥ 1200px) - XL */
@media (min-width: 1200px) {
  .hero__caption,
  .hero__caption02,
  .hero__caption03 {
    padding: 2.25rem;
    margin-top: 3.5rem;
    max-width: 720px;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__subtitle {
    font-size: 1.1875rem;
  }

  .hero__caption .btn1,
  .hero__caption02 .btn1,
  .hero__caption03 .btn1 {
    padding: 0.875rem 1.75rem;
    min-width: 240px;
  }

  .hero__imagen01,
  .hero__imagen02,
  .hero__imagen03 {
    padding-top: 3rem;
  }
  
  .hero__imagen01 img,
  .hero__imagen02 img,
  .hero__imagen03 img {
    max-height: 450px;
  }
}

/* Desktop extra grande (≥ 1400px) - XXL */
@media (min-width: 1400px) {
  .hero__caption,
  .hero__caption02,
  .hero__caption03 {
    padding: 2.5rem;
    max-width: 780px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }
  
  .hero__caption .btn1,
  .hero__caption02 .btn1,
  .hero__caption03 .btn1 {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
  }
  
  .hero__imagen01 img,
  .hero__imagen02 img,
  .hero__imagen03 img {
    max-height: 500px;
  }
}

/* ========================
   CONTROLES DEL CAROUSEL HERO - Responsive
   ======================== */

/* Estilos base para todos los tamaños */
.hero .carousel-control-prev,
.hero .carousel-control-next {
  z-index: 3;
  opacity: 0.8;
  transition: all 0.3s ease;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.hero .carousel-control-prev {
  left: 15px;
}

.hero .carousel-control-next {
  right: 15px;
}

.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(0, 109, 180, 0.8);
  transform: translateY(-50%) scale(1.1);
}

/* Eliminar el outline azul al hacer clic, pero mantenerlo para navegación por teclado */
.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus {
  outline: none;
  box-shadow: none;
}

/* Mostrar outline solo cuando se navega con teclado (accesibilidad) */
.hero .carousel-control-prev:focus-visible,
.hero .carousel-control-next:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* ========================
   RESPONSIVE - Móvil pequeño (< 576px)
   ======================== */
@media (max-width: 575.98px) {
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 35px;
    height: 35px;
    opacity: 0.7;
  }

  .hero .carousel-control-prev {
    left: 10px;
  }

  .hero .carousel-control-next {
    right: 10px;
  }

  .hero .carousel-control-prev-icon,
  .hero .carousel-control-next-icon {
    width: 16px;
    height: 16px;
  }
}

/* ========================
   RESPONSIVE - Móvil muy pequeño (< 375px)
   ======================== */
@media (max-width: 374.98px) {
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 30px;
    height: 30px;
    opacity: 0.6;
  }

  .hero .carousel-control-prev {
    left: 5px;
  }

  .hero .carousel-control-next {
    right: 5px;
  }

  .hero .carousel-control-prev-icon,
  .hero .carousel-control-next-icon {
    width: 14px;
    height: 14px;
  }
}

/* ========================
   RESPONSIVE - Tablet (≥ 768px)
   ======================== */
@media (min-width: 768px) {
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 50px;
    height: 50px;
    opacity: 0.75;
  }

  .hero .carousel-control-prev {
    left: 20px;
  }

  .hero .carousel-control-next {
    right: 20px;
  }

  .hero .carousel-control-prev-icon,
  .hero .carousel-control-next-icon {
    width: 22px;
    height: 22px;
  }
}

/* ========================
   RESPONSIVE - Desktop (≥ 992px)
   ======================== */
@media (min-width: 992px) {
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 55px;
    height: 55px;
    opacity: 0.7;
  }

  .hero .carousel-control-prev {
    left: 30px;
  }

  .hero .carousel-control-next {
    right: 30px;
  }

  .hero .carousel-control-prev-icon,
  .hero .carousel-control-next-icon {
    width: 24px;
    height: 24px;
  }
}

/* ========================
   RESPONSIVE - Desktop grande (≥ 1200px)
   ======================== */
@media (min-width: 1200px) {
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 60px;
    height: 60px;
  }

  .hero .carousel-control-prev {
    left: 40px;
  }

  .hero .carousel-control-next {
    right: 40px;
  }

  .hero .carousel-control-prev-icon,
  .hero .carousel-control-next-icon {
    width: 26px;
    height: 26px;
  }
}

/* Estilo para texto destacado */
.text__destacados {
  color: var(--bs-body-bg);
  font-weight: 700;
}

/* Margen destacados para ajustar posición en diferentes dispositivos */
.margin__destacados {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .margin__destacados {
    margin-bottom: 0;
  }
}

/* Alineación del subtítulo */
.hero__subtitle-align {
  text-align: left;
}

@media (max-width: 575.98px) {
  .hero__subtitle-align {
    text-align: justify;
  }
}

/* Navbar transparente/solid */
#siteNavbar.navbar--transparent {
  background: transparent !important;
  box-shadow: none !important;
  margin-top: 40px;
}
#siteNavbar.navbar--transparent .navbar-brand,
#siteNavbar.navbar--transparent .navbar-nav .nav-link {
  color: var(--bs-black);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
#siteNavbar.navbar--transparent .navbar-nav .nav-link:hover,
#siteNavbar.navbar--transparent .navbar-nav .nav-link:focus,
#siteNavbar.navbar--transparent .navbar-nav .nav-link.active {
  color: var(--texto-secundario) !important;
}

/* Subrayado en navbar transparente - color claro */
#siteNavbar.navbar--transparent .navbar-nav .nav-link::after {
  background: var(--texto-secundario);
}

#siteNavbar.navbar--transparent .navbar-brand img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

#siteNavbar.navbar--solid .navbar-brand,
#siteNavbar.navbar--solid .navbar-nav .nav-link {
  text-shadow: none;
}

/* Toggler: icono y borde mejorados para móviles */
.navbar-toggler {
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.375rem;
  margin-right: 1rem;
}

#siteNavbar.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

#siteNavbar.navbar-dark .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

#siteNavbar.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hamburger menu styling when navbar is solid */
#siteNavbar.navbar--solid .navbar-toggler {
  border-color: rgba(32, 43, 61, 0.3);
}

#siteNavbar.navbar--solid .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(32, 43, 61, 0.25);
}

#siteNavbar.navbar--solid .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2832,43,61,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#siteNavbar.navbar--transparent .navbar-toggler {
  border-color: rgba(32, 43, 61, 0.3);
}

#siteNavbar.navbar--transparent .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(32, 43, 61, 0.25);
}

#siteNavbar.navbar--transparent .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2832,43,61,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menú móvil desplegable */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--bs-body-bg);
    margin: 0 -15px;
    padding: 1rem 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    color: var(--texto-secundario) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link:hover {
    color: var(--bs-white) !important;
    background-color: rgba(216, 168, 70, 0.1);
  }

  .navbar-nav .nav-link.btn {
    background-color: var(--brand);
    color: white !important;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    margin-right: 0.55rem;
    text-align: center;
  }

  .navbar-nav .nav-link.btn:hover {
    background-color: var(--brand-700);
    color: var(--texto-coorporativo02) !important;
  }

  /* Estado del navbar cuando el menú móvil está abierto */
  .navbar-collapse.show {
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
#siteNavbar.navbar--solid {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
#siteNavbar.navbar--solid .navbar-brand,
#siteNavbar.navbar--solid .navbar-nav .nav-link {
  font-weight: 600;
  color: var(--texto-coorporativo02) !important;
}
#siteNavbar.navbar--solid .navbar-nav .nav-link:hover,
#siteNavbar.navbar--solid .navbar-nav .nav-link:focus {
  color: var(--brand) !important;
}

/* Estilo específico para el botón de contacto en navbar sólido */
#siteNavbar.navbar--solid .navbar-nav .nav-link.btn-contact {
  color: white !important;
}

#siteNavbar.navbar--solid .navbar-nav .nav-link.btn-contact:hover {
  color: white !important;
}

/* ========================
   SECTIONS
   ======================== */
.section {
  padding: 0px 0;
}
.section--light {
  background: #fff;
  margin-bottom: 8rem;
}
.section__title {
  font-weight: 700;
}
.section__title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--fondo-coorporativo02);
    border-radius: 2px;
}
.section__subtitle {
  color: var(--texto-coorporativo01);
}

/* ========================
   CARDS / HOVERS
   ======================== */
.card--hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card--hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.servicio__icon {
  font-size: 2rem;
}

/* ========================
   FORM
   ======================== */
.form--contacto .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(216, 168, 70, 0.15);
}
.btn-success {
  background: var(--texto-coorporativo01);
  border-color: var(--brand);
}
.btn-success:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
}
.cf-turnstile {
  margin-top: 0.5rem;
}

/* ========================
   FOOTER
   ======================== */
.footer {
  flex-shrink: 0;
  margin-top: auto;
  background-color: var(--light-blue);
  color: var(--texto-secundario);
}
.footer a {
  color: var(--brand);
  text-decoration: none;
}
.footer a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}
.footer h5,
.footer h6 {
  color: var(--texto-secundario);
}
.footer .text-muted {
  --bs-text-opacity: 1;
  color: var(--muted) !important;
}

/* El body tiene padding-top dinámico establecido por JavaScript */
/* que compensa el navbar y topbar fijos */
main {
  flex: 1 0 auto;
  padding-top: 0;
  margin-top: 0;
  /* Sin z-index para no crear stacking context que interfiera con dropdowns */
}

/* Mantener el navbar y sus dropdowns por encima del hero */
#siteNavbar {
  position: fixed;
  top: var(--topbar-height, 32px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1060 !important; /* Consistente con definición anterior */
}

#siteNavbar.navbar-pinned {
  top: 0;
}

#siteNavbar .dropdown-menu {
  z-index: 1065; /* Mayor que navbar para estar por encima */
}

/* ========================
   BACK TO TOP BUTTON
   ======================== */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--fondo-coorporativo01);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1040;
}
.to-top:hover {
  background: var(--brand-700);
}
.to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top__icon {
  font-size: 14px;
  line-height: 1;
}

/* ========================
   RGPD SECTION
   ======================== */
.rgpd__card {
  border: 1px solid rgba(17, 24, 39, 0.08);
}
.rgpd__title {
  color: var(--texto-coorporativo02);
  font-weight: 700;
}
.rgpd__content p {
  color: var(--texto-coorporativo01);
  margin-bottom: 0.5rem;
}
.rgpd__content a {
  text-decoration: none;
}
.rgpd__content a:hover {
  color: var(--texto-coorporativo02) !important;
  text-decoration: underline !important;
}

/* ========================
   PÁGINAS LEGALES
   ======================== */
.legal-content {
  line-height: 1.7;
}

.legal-content h2 {
  color: var(--brand);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  color: var(--dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.legal-content ul {
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content .table {
  font-size: 0.9rem;
}

.legal-content .table th {
  background-color: var(--brand);
  color: white;
  font-weight: 600;
}

.legal-content .table td {
  vertical-align: top;
}

.legal-content a {
  color: var(--brand);
  text-decoration: none;
}

.legal-content a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* ========================
   OVERRIDE BOOTSTRAP UTILITY CLASSES
   ======================== */
.text-muted {
  --bs-text-opacity: 1;
  color: var(--muted) !important;
}

/* Asegurar que los enlaces usen nuestra paleta */
.text-primary {
  color: var(--brand) !important;
}

.text-secondary {
  color: var(--brand-700) !important;
}

.text-dark {
  color: var(--dark) !important;
}

.text-black {
  color: var(--bs-black) !important;
}

.bg-primary {
  background-color: var(--fondo-coorporativo01) !important;
}

.bg-secondary {
  background-color: var(--fondo-coorporativo02) !important;
}

.bg-tertiary {
  background-color: var(--fondo-coorporativo02) !important;
}

.bg-dark {
  background-color: var(--dark) !important;
}

.bg-light-navbar {
  background-color: var(--fondo-coorporativo03) !important;
}

.btn-primary {
  color: var(--texto-secundario) !important;
  background-color: var(--fondo-coorporativo01) !important;
  border-color: var(--fondo-coorporativo01) !important;
}

.btn-primary:hover {
  background-color: var(--brand-700);
  border-color: var(--brand-700);
}

.btn-secondary {
  background-color: var(--fondo-coorporativo02);
  border-color: var(--fondo-coorporativo02);
}

.btn-secondary:hover {
  background-color: var(--dark);
  border-color: var(--dark);
}

.rgpd__kitimg {
  display: flex;
  justify-content: center;
  max-height: 100px;
}

.text-primary:hover {
  color: var(--texto-coorporativo03) !important;
}

/* Ajustes específicos para móviles muy pequeños (375px y menores) */
@media (max-width: 375px) {
  .topbar {
    font-size: 0.7rem;
  }

  .topbar .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .topbar .d-flex.align-items-center.gap-3 {
    gap: 0.5rem !important;
  }

  .topbar__contact-link {
    gap: 0;
    padding: 0.2rem 0.4rem;
  }

  .topbar__contact-link i {
    font-size: 1rem;
  }

  .navbar-logo {
    height: 55px;
    max-height: 55px;
  }

  #siteNavbar.navbar--solid .navbar-logo {
    height: 45px;
    max-height: 45px;
  }

  .navbar-brand {
    margin-right: 0.5rem;
  }

  .navbar-toggler {
    padding: 0.2rem 0.4rem;
    font-size: 0.9rem;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.btn-contact {
  background-color: var(--fondo-coorporativo01);
  color: var(--texto-secundario) !important;
  border-radius: 0.375rem;
  text-align: center;
}

.font-size-sm {
  font-size: 0.875rem !important;
}

.font-size {
  font-size: 1.2rem !important;
}

.font-size-xl {
  font-size: 3.5rem !important;
}

/* ========================
   NOTIFICACIÓN COOKIES
   ======================== */
.cc-nb-okagree {
  background-color: var(--fondo-coorporativo01) !important;
  color: var(--texto-secundario) !important;
}

.cc-nb-okagree:hover {
  background-color: var(--fondo-coorporativo03) !important;
  color: var(--texto-secundario) !important;
}

.cc-nb-reject {
  background-color: var(--fondo-coorporativo01) !important;
  color: var(--texto-secundario) !important;
}

.cc-nb-reject:hover {
  background-color: var(--fondo-coorporativo03) !important;
  color: var(--texto-secundario) !important;
}
