/* Complemento Bootstrap (usa tus vars: --ap-nav, --ap-accent, etc.) */

.ap-navbar{
  background: var(--ap-nav);
}

.ap-logo{ height: 44px; width:auto; }

.ap-navlink{
  color: var(--ap-accent) !important;
  font-weight: 700;
  border-bottom: 1px solid color-mix(in srgb, var(--ap-accent) 70%, transparent);
  padding-bottom: .15rem;
}
.ap-navlink:hover{
  color: var(--ap-white) !important;
  border-bottom-color: var(--ap-white);
}

.ap-toggler{
  border: 1px solid rgba(255,255,255,.18) !important;
}
.navbar-toggler-icon{ filter: invert(1); }

/* Buttons */
.btn-ap{
  background: var(--ap-accent);
  border-color: rgba(0,0,0,.15);
  color: #111;
  font-weight: 900;
  border-radius: .9rem;
}
.btn-ap:hover{
  background: var(--ap-dark);
  color: var(--ap-accent);
}

.btn-outline-ap{
  border: 1px solid color-mix(in srgb, var(--ap-accent) 70%, #000 30%);
  color: var(--ap-accent);
  font-weight: 900;
  border-radius: .9rem;
  background: transparent;
}
.btn-outline-ap:hover{
  background: var(--ap-dark);
  color: var(--ap-accent);
  border-color: var(--ap-dark);
}

/* Hero */
.ap-hero{
  position: relative;
  background:
    radial-gradient(circle at 20% 15%, rgba(193,176,106,.18), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(0,0,0,.08), transparent 50%),
    linear-gradient(180deg, rgba(193,176,106,.10), rgba(255,255,255,0));
}

.ap-badge{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.08);
  color: #111;
  font-weight: 900;
  border-radius: 999px;
  padding: .55rem .75rem;
}

.ap-underline{
  text-decoration: underline;
  text-underline-offset: 8px;
}

.ap-card{
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.06) !important;
}

/* Soft section */
.ap-section-soft{
  background: rgba(255,255,255,.6);
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Cards */
.ap-softcard{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.08);
}

.ap-mini{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
}

.fw-black{ font-weight: 900; }

.ap-ic{
  width: 44px; height: 44px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: rgba(193,176,106,.18);
  border: 1px solid rgba(0,0,0,.06);
  font-size: 18px;
}

.ap-ic-sm{
  width: 40px; height: 40px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: rgba(193,176,106,.18);
  border: 1px solid rgba(0,0,0,.06);
}

.ap-pill{
  background: rgba(193,176,106,.18);
  border: 1px solid rgba(0,0,0,.06);
  color: #111;
  font-weight: 900;
  border-radius: 999px;
  padding: .55rem .7rem;
}

.ap-pillbox{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
}

.ap-step{
  width: 38px; height: 38px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: rgba(0,0,0,.06);
  font-weight: 900;
}

.ap-dot{ font-size: 8px; opacity: .7; }
.ap-check{ color: var(--ap-accent); }

.ap-input{
  border-radius: .9rem !important;
  border: 1px solid rgba(0,0,0,.18) !important;
}
.ap-input:focus{
  border-color: rgba(193,176,106,.75) !important;
  box-shadow: 0 0 0 .25rem rgba(193,176,106,.18) !important;
}

.ap-footlink{
  text-decoration: none;
  color: var(--ap-nav);
  font-weight: 900;
  opacity: .75;
}
.ap-footlink:hover{ opacity: 1; }

/* ============== ANIMACIONES + MICROINTERACCIONES ============== */

/* Respeto a accesibilidad */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Hover con lift suave */
.ap-softcard,
.ap-mini,
.ap-card,
.ap-pillbox{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}
.ap-softcard:hover,
.ap-mini:hover,
.ap-card:hover,
.ap-pillbox:hover{
  transform: translateY(-4px);
  box-shadow: 0 .9rem 1.6rem rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.14);
}

/* Botones con “pop” */
.btn-ap,
.btn-outline-ap{
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-ap:hover,
.btn-outline-ap:hover{
  transform: translateY(-1px);
  box-shadow: 0 .6rem 1.2rem rgba(0,0,0,.14);
}

/* Reveal on scroll (lo activa JS) */
.ap-reveal{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(2px);
  transition: opacity .55s ease, transform .55s ease, filter .55s ease;
}
.ap-reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Hero entra suave */
.ap-hero .ap-badge{
  animation: apFadeDown .7s ease both;
}
.ap-hero h1{
  animation: apFadeUp .8s ease .05s both;
}
.ap-hero p.lead{
  animation: apFadeUp .8s ease .12s both;
}

/* Glow suave atrás del hero */
.ap-hero::before{
  content: "";
  position: absolute;
  inset: -80px -60px auto -60px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(193,176,106,.22), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
  animation: apFloat 5.5s ease-in-out infinite;
}

@keyframes apFadeUp{
  from{ opacity:0; transform: translateY(14px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes apFadeDown{
  from{ opacity:0; transform: translateY(-10px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes apFloat{
  0%,100%{ transform: translateY(0); opacity: .9; }
  50%{ transform: translateY(10px); opacity: 1; }
}

html, body{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body{
  position: relative;
}
