/* ========================
   BASE / RESET
   ======================== */
:root {
  --brand: #c0984e;
  --brand-700: #5bafd3;
  --dark: #222;
  --muted: #6b7280;

  --leo-orange: #cc5500;

  --fondo-coorporativo01: #c0984e;
  --fondo-coorporativo02: #ffffff;
  --fondo-coorporativo03: #151514;
  --texto-coorporativo01: #151514;
  --texto-coorporativo02: #ffffff;
  --texto-coorporativo03: #8f7345;
  --texto-secundario: #ffffff;

  --fondo-slides: rgba(243, 242, 242, 0.7);
  /* Sobrescribir variables Bootstrap con nuestra paleta corporativa */
  --bs-primary: #a67c2e;
  --bs-primary-rgb: 139, 69, 19;
  --bs-secondary: #4a9bc2;
  --bs-secondary-rgb: 74, 155, 194;
  --bs-success: #67c29c;
  --bs-success-rgb: 103, 194, 156;
  --bs-info: #4a9bc2;
  --bs-info-rgb: 74, 155, 194;
  --bs-warning: #8b4513;
  --bs-warning-rgb: 139, 69, 19;
  --bs-danger: #dc3545;
  --bs-danger-rgb: 220, 53, 69;
  --bs-dark: #15548e;
  --bs-dark-rgb: 21, 84, 142;
  --bs-light: #f8f9fa;
  --bs-light-rgb: 248, 249, 250;
  --bs-white: #ffffff;
  --bs-white-rgb: 255, 255, 255;
  --bs-black: #000000;
  --bs-black-rgb: 0, 0, 0;
  --bs-body-color: #15548e;
  --bs-body-color-rgb: 21, 84, 142;
  --bs-body-bg: #ffffff;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-link-color: #d9a946;
  --bs-link-hover-color: #5bafd3;

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

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

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  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-bg);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================
   NAVBAR
   ======================== */
.navbar--fixed {
  position: fixed;
  top: var(--navbar-offset, 0px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999 !important;
}

/* Navbar sólido desde inicio (páginas externas) */
#siteNavbar.navbar-light.navbar--solid {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#siteNavbar.navbar-light.navbar--solid .navbar-brand,
#siteNavbar.navbar-light.navbar--solid .navbar-nav .nav-link {
  color: var(--bs-black) !important;
  text-shadow: none;
}

#siteNavbar.navbar-light.navbar--solid .navbar-toggler {
  border-color: rgba(32, 43, 61, 0.4);
}

.topbar {
  position: relative;
  z-index: 1040;
  background-color: var(--dark);
  color: var(--texto-secundario);
}

/* Topbar responsive: compactar en móviles */
.topbar {
  font-size: 0.8rem;
  padding: 0.25rem 0;
}

.topbar .btn.btn-sm {
  padding: 0.125rem 0.25rem;
  line-height: 1;
  border-color: var(--bs-black);
  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(--bs-black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

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

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

.topbar__separator {
  color: var(--bs-black);
}

/* 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: 1.05rem;
  transition:
    top 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  padding: inherit;
}
#siteNavbar .navbar-brand {
  font-size: 1.125rem;
}
.navbar-logo {
  height: 58px;
  width: auto;
  max-height: 58px;
  object-fit: contain;
  transition:
    height 0.3s ease,
    max-height 0.3s ease;
}

/* Logo blanco en estado transparente */
.navbar-logo--transparent {
  display: block;
}

/* Logo negro en estado solid */
.navbar-logo--solid {
  display: none !important;
}

#siteNavbar.navbar--solid .navbar-logo--transparent {
  display: none !important;
}

#siteNavbar.navbar--solid .navbar-logo--solid {
  display: block !important;
}

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

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

/* Ajustes para desktop */
@media (min-width: 992px) {
  .navbar-logo {
    height: 105px;
    max-height: 105px;
  }
  #siteNavbar.navbar--solid .navbar-logo {
    height: 82px;
    max-height: 82px;
  }
}
.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; /* por debajo del navbar */
}
.hero {
  margin-top: calc(-1 * var(--navbar-h, 64px));
}
/* Deslizar el hero por detrás del navbar (sin afectar el topbar) */

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  height: 100vh; /* fullscreen */
  min-height: 520px;
}
.hero {
  padding-top: 0;
}
.hero .carousel-item {
  transition: opacity 0.6s ease-in-out;
}
.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));
}

.hero__caption00 {
  background-color: transparent !important;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 720px;
  position: relative;
  z-index: 2;
  padding-right: 150px;
}

.hero__caption01 {
  background-color: transparent !important;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 720px;
  position: relative;
  z-index: 2;
  padding-right: 150px;
}

.hero__caption02 {
  background-color: transparent !important;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 720px;
  position: relative;
  z-index: 2;
  padding-right: 150px;
}

.hero__caption03 {
  background-color: transparent !important;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 720px;
  position: relative;
  z-index: 2;
  padding-right: 150px;
}

.hero__title00 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--bs-body-bg);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.hero__subtitle00 {
  color: var(--bs-body-bg);
  text-align: left;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 1;
  line-height: 1.6;
}

.hero__title01 {
  color: var(--bs-body-bg);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.hero__subtitle01 {
  color: var(--bs-body-bg);
  text-align: left;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  opacity: 1;
  line-height: 1.6;
}

.hero__title02 {
  color: var(--bs-body-bg);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.hero__subtitle02 {
  color: var(--bs-body-bg);
  text-align: left;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 1;
  line-height: 1.6;
}

.hero__title03 {
  color: var(--bs-body-bg);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.hero__subtitle03 {
  color: var(--bs-body-bg);
  text-align: left;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 1;
  line-height: 1.6;
}

.hero__title04 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--bs-body-bg);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.hero__subtitle04 {
  color: var(--bs-body-bg);
  text-align: left;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 1;
  line-height: 1.6;
}
/* Mejorar clicabilidad de controles en overlay */
.hero .carousel-control-prev,
.hero .carousel-control-next {
  z-index: 3;
}
.hero__caption .hero__title {
  margin-bottom: 0.5rem;
}
.hero__caption .hero__subtitle {
  margin-bottom: 0;
}

/* Imagen en slides del hero */
.hero__slide-image {
  position: absolute;
  top: 1rem;
  right: 1rem;
  max-width: 120px;
  height: auto;
  width: 100px;
  opacity: 0.98;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  animation: slideInUp 0.8s ease-out 0.4s both;
}

/* Responsive para imagen del hero */
@media (max-width: 991.98px) {
  .hero__caption00,
  .hero__caption01,
  .hero__caption02,
  .hero__caption03 {
    padding: 1.5rem !important;
    padding-right: 120px !important;
    max-width: 650px;
  }

  .hero__slide-image {
    max-width: 100px;
    width: 85px;
  }
}

@media (max-width: 767.98px) {
  .hero__caption00,
  .hero__caption01,
  .hero__caption02,
  .hero__caption03 {
    padding: 1.25rem !important;
    padding-right: 100px !important;
    max-width: 100%;
  }

  .hero__slide-image {
    max-width: 90px;
    width: 80px;
    top: 0.5rem;
    right: 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero__caption00,
  .hero__caption01,
  .hero__caption02,
  .hero__caption03 {
    padding: 1rem !important;
    padding-right: 80px !important;
  }

  .hero__slide-image {
    max-width: 70px;
    width: 60px;
  }

  .hero__cta-buttons .btn {
    width: 100%;
    padding: 0.65rem 1.25rem;
  }
}

/* Botones CTA en hero */
.hero__cta-buttons {
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.hero__cta-buttons .btn {
  background-color: var(--fondo-coorporativo01);
  border-color: var(--fondo-coorporativo01);
  color: #ffffff !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero__cta-buttons .btn:hover {
  background-color: #fff;
  border-color: var(--fondo-coorporativo02);
  color: var(--texto-coorporativo01) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar transparente/solid */
#siteNavbar.navbar--transparent {
  background: transparent !important;
  box-shadow: none !important;
}
#siteNavbar.navbar--transparent .navbar-brand,
#siteNavbar.navbar--transparent .navbar-nav .nav-link {
  color: var(--bs-body-bg);
  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;
}
#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.5);
  border-radius: 0.375rem;
  margin-right: 1rem;
  position: relative;
  z-index: 1055;
}

#siteNavbar.navbar--solid .navbar-toggler {
  border-color: rgba(32, 43, 61, 0.4);
  background-color: rgba(255, 255, 255, 0.95);
}

#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.4);
  background-color: rgba(255, 255, 255, 0.95);
}

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

#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");
}

/* Toggler en navbar transparente - color blanco */
#siteNavbar.navbar--transparent .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.1);
}

#siteNavbar.navbar--transparent .navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.9);
}

#siteNavbar.navbar--transparent .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 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%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Icono de cerrar (X) cuando el menú está abierto */
.navbar-toggler[aria-expanded="true"] .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,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M6 6L24 24M6 24L24 6'/%3e%3c/svg%3e");
}

/* Icono de cerrar para navbar solid */
#siteNavbar.navbar--solid
  .navbar-toggler[aria-expanded="true"]
  .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.5' d='M6 6L24 24M6 24L24 6'/%3e%3c/svg%3e");
}

/* Fondo blanco del toggler cuando el menú está abierto en navbar transparent */
#siteNavbar.navbar--transparent .navbar-toggler[aria-expanded="true"] {
  background-color: rgba(21, 84, 142, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

/* Menú móvil desplegable */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--dark);
    margin: 0 -15px;
    padding: 1rem 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  /* Fondo blanco para menú cuando navbar está en modo solid */
  #siteNavbar.navbar--solid .navbar-collapse {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

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

  /* Enlaces en navbar solid */
  #siteNavbar.navbar--solid .navbar-nav .nav-link {
    color: var(--bs-black) !important;
  }

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

  .navbar-nav .nav-link:hover {
    color: var(--brand) !important;
    background-color: rgba(216, 168, 70, 0.1);
    padding-left: 1.25rem;
    transition: all 0.3s ease;
  }

  #siteNavbar.navbar--solid .navbar-nav .nav-link:hover {
    background-color: rgba(216, 168, 70, 0.08);
  }

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

  .navbar-nav .nav-link.btn:hover {
    background-color: var(--brand-700);
    color: var(--texto-coorporativo02) !important;
    transform: translateY(-2px);
    padding-left: 1rem;
  }

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

  .navbar-collapse.collapsing {
    transition: height 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Mejorar estado del toggler cuando el menú está abierto */
  .navbar-toggler:not(.collapsed) {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
  }

  #siteNavbar.navbar--solid .navbar-toggler:not(.collapsed) {
    box-shadow: 0 0 0 0.2rem rgba(32, 43, 61, 0.1);
  }
}
#siteNavbar.navbar--solid {
  background: var(--fondo-coorporativo02) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
#siteNavbar.navbar--solid .navbar-brand,
#siteNavbar.navbar--solid .navbar-nav .nav-link {
  color: var(--bs-black) !important;
  text-shadow: none;
}
#siteNavbar.navbar--solid .navbar-nav .nav-link:hover,
#siteNavbar.navbar--solid .navbar-nav .nav-link:focus {
  color: var(--brand) !important;
}

/* ========================
   SECTIONS
   ======================== */
.section {
  padding: 72px 0;
}

.section__title {
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 12px;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 60px;
  height: 1px;
  background-color: var(--fondo-coorporativo01);
}

.section__subtitle {
  color: var(--bs-black);
  text-align: center;
}

/* Responsive Sections */
@media (max-width: 991.98px) {
  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 48px 0;
  }

  .section__title {
    font-size: 1.5rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
  }

  .section__title::after {
    width: 50px;
  }

  .section__subtitle {
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 40px 0;
  }

  .section__title {
    font-size: 1.35rem;
    margin-bottom: 16px;
  }

  .section__title::after {
    width: 40px;
  }

  .section__subtitle {
    font-size: 0.9rem;
  }
}

/* ========================
   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;
}

/* Responsive Cards */
@media (max-width: 991.98px) {
  .card--hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 767.98px) {
  .card {
    margin-bottom: 1.25rem;
  }

  .card-body {
    padding: 1.25rem !important;
  }

  .servicio__icon {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .card {
    margin-bottom: 1rem;
  }

  .card-body {
    padding: 1rem !important;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-text {
    font-size: 0.9rem;
  }

  .servicio__icon {
    font-size: 1.5rem;
  }
}

/* ========================
   FORM
   ======================== */
.form--contacto .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(216, 168, 70, 0.15);
}

.form--contacto .form-control,
.form--contacto .form-select,
.form--contacto textarea {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 0.375rem;
}

.form--contacto label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.btn-success {
  background: var(--texto-coorporativo01);
  border-color: var(--brand);
}
.btn-success:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.cf-turnstile {
  margin-top: 0.5rem;
}

/* Responsive Form */
@media (max-width: 767.98px) {
  .form--contacto .form-control,
  .form--contacto .form-select,
  .form--contacto textarea {
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
  }

  .form--contacto label {
    font-size: 0.95rem;
  }

  .btn-success {
    width: 100%;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .form--contacto .form-control,
  .form--contacto .form-select,
  .form--contacto textarea {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }

  .form--contacto label {
    font-size: 0.9rem;
  }
}

/* ========================
   FOOTER
   ======================== */
.footer {
  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;
}

.site-footer {
  position: relative;
  background: var(--fondo-coorporativo03);
  color: var(--texto-coorporativo02);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    transparent 45%
  );
  pointer-events: none;
}

.site-footer .container,
.site-footer .row,
.site-footer .col-md-6,
.site-footer .col-lg-2,
.site-footer .col-lg-3,
.site-footer .col-lg-4 {
  position: relative;
  z-index: 1;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
}

.site-footer__logo {
  width: min(100%, 220px);
  height: auto;
}

.site-footer p,
.site-footer li,
.site-footer span,
.site-footer .small {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: #f3d28f;
  text-decoration: none;
}

.site-footer h3 {
  color: #ffffff !important;
  font-size: 1.1rem;
}

.footer-links li + li,
.site-footer__contact-list li + li {
  margin-top: 0.55rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.92;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(2px);
}

.site-footer__contact-list a,
.site-footer__contact-list span {
  color: inherit;
}

.site-footer__social {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.site-footer__social:hover {
  transform: translateY(-2px);
  background: rgba(192, 152, 78, 0.3);
  border-color: rgba(243, 210, 143, 0.65);
}

.border-white-10 {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

@media (max-width: 991.98px) {
  .site-footer {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .site-footer__logo {
    width: min(100%, 180px);
  }

  .site-footer__social {
    width: 36px;
    height: 36px;
  }
}

/* Compensación de layout por navbar sticky con hero superpuesto */
main {
  padding-top: var(--navbar-h, 64px);
}

/* ========================
   BACK TO TOP BUTTON
   ======================== */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  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,
.to-top.show {
  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 {
  font-weight: 700;
}
.rgpd__content p {
  color: var(--texto-coorporativo02);
  margin-bottom: 0.5rem;
}
.rgpd__content a {
  text-decoration: none;
}
.rgpd__content a:hover {
  text-decoration: underline;
}

/* ========================
   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(--bs-black) !important;
}

/* Asegurar que los enlaces usen nuestra paleta */
.text-primary {
  color: var(--texto-coorporativo01) !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-coorporativo03) !important;
}

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

.icon-color {
  color: var(--fondo-coorporativo01) !important;
}

/*
.btn-primary {
  color: var(--texto-secundario) !important;
  background-color: var(--fondo-coorporativo03);
  border-color: var(--brand);
}

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

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

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

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

  .hero__title00,
  .hero__title01,
  .hero__title02,
  .hero__title03,
  .hero__title04 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .hero__subtitle00,
  .hero__subtitle01,
  .hero__subtitle02,
  .hero__subtitle03,
  .hero__subtitle04 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
  }

  .hero__caption00,
  .hero__caption01,
  .hero__caption02,
  .hero__caption03 {
    padding: 1rem 1rem !important;
    padding-right: 5rem !important;
  }

  .hero__slide-image {
    max-width: 70px;
    width: 60px;
    margin-top: 0;
  }
}

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

.font-size-sm {
  font-size: 1rem !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-coorporativo03) !important;
  color: var(--texto-secundario) !important;
}

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

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

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

/* ========================
   ABOUT SECTION - MODERN & MINIMALIST
   ======================== */

.about--minimalist {
  background-color: #ffffff;
  position: relative;
}

/* Contenedor wrapper para posicionamiento relativo */
.about__content-wrapper {
  position: relative;
}

/* Imagen contenedor con efecto sutil */
.about__image-wrapper {
  position: absolute;
  bottom: 2rem;
  right: 0;
  width: auto;
  z-index: 2;
  margin-right: 0;
}

.about__image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__image-container:hover {
  transform: scale(1.02);
}

.about__image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 400px;
  transition: filter 0.6s ease;
}

.about__image-container:hover .about__image {
  filter: brightness(1.05);
}

/* Contenido del About */
.about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1rem;
  background-color: rgba(236, 233, 233, 0.3);
  border-radius: 12px;
  position: relative;
  z-index: 0;
  padding-right: 12rem;
  padding-left: 2rem;
  max-width: calc(100% - 240px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Header con año y título */
.about__header {
  margin-bottom: 2.5rem;
}

.about__year {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--texto-coorporativo01);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--fondo-coorporativo01);
}

.about__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--fondo-coorporativo01);
  line-height: 1.2;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Sección de la historia */
.about__story {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__intro,
.about__description,
.about__closing {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333333;
  margin: 0;
  transition: color 0.3s ease;
}

.about__intro {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 1.125rem;
}

.about__description {
  color: #555555;
}

.about__closing {
  color: #555555;
  font-style: italic;
}

/* Lista de destacados */
.about__highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  color: #444444;
  line-height: 1.6;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.about__highlights li:hover {
  transform: translateX(5px);
  color: var(--brand);
}

.about__highlights i {
  font-size: 1.4rem;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.25rem;
  transition: color 0.3s ease;
}

.about__highlights li:hover i {
  color: var(--brand-700);
}

/* Call to Action */
.about__cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.about__cta .btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__cta .btn-primary {
  background-color: var(--fondo-coorporativo01);
  border-color: var(--fondo-coorporativo01);
  color: var(--text-light) !important;
  padding: 1.25rem 2rem;
  font-weight: 600;
  transition: 0.3s ease;
}

.about__cta .btn-primary:hover {
  background-color: var(--bs-body-bg);
  border-color: var(--bs-body-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  color: var(--texto-coorporativo01) !important;
}

/* Responsive: Tablet */
@media (max-width: 991.98px) {
  .about__title {
    font-size: 2rem;
  }

  .about__intro,
  .about__description,
  .about__closing {
    font-size: 1rem;
  }

  .about__highlights {
    gap: 0.875rem;
  }

  .about__highlights li {
    font-size: 0.95rem;
  }
}

/* Responsive: Mobile */
@media (max-width: 767.98px) {
  .about--minimalist {
    padding: 3rem 0;
  }

  .about__image-wrapper {
    position: static;
    margin-top: 2rem;
    margin-right: 0;
    text-align: center;
  }

  .about__image {
    max-width: 100%;
    margin: 0 auto;
  }

  .about__content {
    border-radius: 12px;
    padding: 2rem 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .about__header {
    margin-bottom: 2rem;
  }

  .about__title {
    font-size: 1.75rem;
  }

  .about__year {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .about__intro,
  .about__description,
  .about__closing {
    font-size: 0.95rem;
    text-align: left;
  }

  .about__highlights li {
    font-size: 0.9rem;
    gap: 0.75rem;
  }

  .about__highlights i {
    font-size: 1.2rem;
  }

  .about__cta {
    margin-top: 1.5rem;
    flex-direction: column;
  }

  .about__cta .btn {
    width: 100%;
    text-align: center;
  }
}

/* Responsive: Móvil pequeño */
@media (max-width: 575.98px) {
  .about__title {
    font-size: 1.5rem;
  }

  .about__intro,
  .about__description,
  .about__closing {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .about__highlights li {
    font-size: 0.85rem;
  }

  .about__year {
    font-size: 0.75rem;
  }
}

/* ========================
   MEJORAS DE ACCESIBILIDAD Y TÁCTIL
   ======================== */

/* Aumentar área de toque para elementos interactivos en móviles */
@media (max-width: 767.98px) {
  a,
  button,
  .btn,
  .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
  }
}

/* Mejoras de contraste para accesibilidad */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Skip to main content para lectores de pantalla */
.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.skip-to-main:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
  background: var(--brand);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0.25rem;
}

/* Mejorar visibilidad de focus en formularios */
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ========================
   OPTIMIZACIONES DE PERFORMANCE
   ======================== */

/* Reducir animaciones en dispositivos con preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Optimizar renderizado de imágenes */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* ========================
   MEJORAS DE LAYOUT RESPONSIVE
   ======================== */

/* Contenedor fluido mejorado */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }
}

/* Espaciado consistente entre secciones en móvil */
@media (max-width: 767.98px) {
  section + section {
    margin-top: 1rem;
  }
}

/* Mejorar legibilidad de párrafos en móvil */
@media (max-width: 767.98px) {
  p {
    text-align: left;
    hyphens: auto;
    word-wrap: break-word;
  }
}

/* Ajuste de márgenes y padding en elementos de lista */
@media (max-width: 575.98px) {
  ul,
  ol {
    padding-left: 1.25rem;
  }
}

/* ========================
   MEJORAS DE TABLA RESPONSIVE
   ======================== */

@media (max-width: 767.98px) {
  .table-responsive {
    border: 0;
    margin-bottom: 1rem;
  }

  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 0.5rem !important;
  }
}

/* ========================
   MEJORAS DE BOTONES RESPONSIVE
   ======================== */

@media (max-width: 575.98px) {
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .btn-group .btn:last-child {
    margin-bottom: 0;
  }
}

/* ========================
   SCROLL SUAVE Y OPTIMIZADO
   ======================== */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Ocultar scrollbar en móviles para apariencia más limpia */
@media (max-width: 767.98px) {
  .navbar-collapse {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .navbar-collapse::-webkit-scrollbar {
    display: none;
  }
}
