/* =========================================================
   VARIABLES GLOBALES
========================================================= */
:root {
  --ab-orange: #FF6A13;
  --ab-orange-light: #FFB385;
  --ab-blue: #0070C0;
  --ab-blue-dark: #003e73;
  --ab-blue-soft: #A6D3F5;
  --ab-white: #FFFFFF;
  --ab-gray-light: #F0F0F0;
  --ab-gray-medium: #999999;

  --nav-h: clamp(64px, 9vh, 96px);

  --hero-h-mobile: 28vh;
  --hero-h-tablet: 32vh;
  --hero-h-desktop: 45vh;
}

/* =========================================================
   BASE
========================================================= */
body {
  margin: 0;
}

.header-abastible {
  position: relative;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar-abastible {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(150%) blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  z-index: 1200;
  transition: background .3s, box-shadow .3s;
}

/* Brand */
.navbar-abastible .navbar-brand img {
  max-height: calc(var(--nav-h) - 12px);
}

/* Desktop nav chip */
@media (min-width: 992px) {
  .nav-botones {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0 2rem;
  }

  .nav-botones::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ab-orange);
    border-radius: .65rem;
    z-index: -1;
  }

  .nav-botones .nav-link {
    color: white;
  }
}

/* =========================================================
   ICONOS NAV
========================================================= */
.icon-nav {
  font-size: 1.1em;
  transition: transform .25s, color .25s;
}

@media (min-width: 992px) {
  .nav-botones .nav-link:hover {
    color: var(--ab-orange-light);
  }
  .nav-botones .nav-link:hover .icon-nav {
    transform: translateY(-2px);
  }
}

/* =========================================================
   HERO
========================================================= */
.hero-hero {
  position: relative;
  width: 100%;
  margin-top: var(--nav-h);
  min-height: var(--hero-h-tablet);
  overflow: hidden;
}

.hero-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: 1;
}

.hero-slide {
  position: relative;
  min-height: inherit;
  background: #000 center/cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.45) 0%,
    rgba(255,255,255,.15) 15%,
    rgba(0,0,0,.2) 85%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

/* Tipografía hero */
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.6);
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-headline {
  font-size: clamp(1.8rem,4.5vw,3rem);
  font-weight: 800;
  margin: .5rem 0;
  text-shadow: 0 2px 4px rgba(0,0,0,.35);
}

.hero-subheadline {
  font-size: clamp(1rem,2.2vw,1.25rem);
}

/* Alturas */
@media (max-width: 576px) {
  .hero-hero { min-height: var(--hero-h-mobile); }
}
@media (min-width: 1200px) {
  .hero-hero { min-height: var(--hero-h-desktop); }
}

/* =========================================================
   BOTÓN CTA
========================================================= */
.btn-cta {
  background: var(--ab-orange);
  color: white;
  border-radius: 2rem;
  padding: .45rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s, box-shadow .25s;
}

.btn-cta:hover {
  background: var(--ab-orange-light);
  box-shadow: 0 0 0 .2rem rgba(255,179,133,.25);
}

/* =========================================================
   BOTÓN LOGIN DESKTOP
========================================================= */
.btn-login-desktop {
  background: var(--ab-blue);
  color: white;
  padding: .55rem 1.45rem;
  border-radius: 2rem;
  text-decoration: none;
}

/* =========================================================
   BOTÓN LOGIN MÓVIL (ÚNICO)
========================================================= */
.btn-login-mobile {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ab-orange);
  color: white;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 1300;
  transition: transform .3s, background .3s;
}

.btn-login-mobile:hover {
  transform: scale(1.1);
  background: var(--ab-orange-light);
}

@media (max-width: 991.98px) {
  .btn-login-mobile {
    display: flex;
  }
}

/* Alias para clase con doble guión usada en el template */
.btn-login--mobile { display: none; }
@media (max-width: 991.98px) {
  .btn-login--mobile { display: flex; position: fixed; top: 1rem; right: 1rem; width:48px; height:48px; border-radius:50%; align-items:center; justify-content:center; background:var(--ab-orange); color:#fff; z-index:1300; }
}

/* Brand logo sizing for new header */
.brand-logo { max-height: calc(var(--nav-h) - 12px); width: auto; }

/* Site hero adjustments */
.site-hero { margin-top: var(--nav-h); min-height: var(--hero-h-tablet); }
.site-hero .carousel-item { min-height: inherit; display:flex; align-items:center; }
.hero-fallback { min-height: var(--hero-h-tablet); display:flex; align-items:center; justify-content:center; }
