:root {
  --upa-blue: #5697c7;
  --upa-red: #dd473b;
  --upa-navy: #1b3047;
  --upa-white: #ffffff;
  --upa-glow: rgba(86, 151, 199, 0.45);
  --upa-shadow: rgba(27, 48, 71, 0.35);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 14px;
  --transition: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
  line-height: 1.6;
  color: var(--upa-navy);
  background: radial-gradient(1200px 800px at 10% -10%, rgba(86, 151, 199, 0.18), transparent 55%),
    radial-gradient(900px 600px at 95% 20%, rgba(221, 71, 59, 0.12), transparent 50%),
    linear-gradient(180deg, #f4f8fc 0%, #eef3f8 40%, #e8eef6 100%);
  overflow-x: hidden;
}

a {
  color: var(--upa-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--upa-red);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(27, 48, 71, 0.08);
  animation: headerReveal 0.9s var(--transition) both;
}

@keyframes headerReveal {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--upa-navy);
  line-height: 1.1;
}

.logo__img {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo__words {
  display: flex;
  flex-direction: column;
}

.logo__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--upa-blue);
}

.logo__text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--upa-red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--upa-navy);
  border-radius: 2px;
  transition: transform 0.3s var(--transition);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--upa-navy);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: background 0.25s, color 0.25s;
}

.nav a:hover {
  background: rgba(86, 151, 199, 0.15);
  color: var(--upa-blue);
}

.nav__docente {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--upa-white);
  background: linear-gradient(135deg, var(--upa-red), #c73a32);
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(221, 71, 59, 0.35);
  transition: transform 0.2s var(--transition), box-shadow 0.2s;
}

.nav__docente:hover {
  color: var(--upa-white);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(221, 71, 59, 0.45);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(27, 48, 71, 0.08);
    box-shadow: 0 16px 40px var(--upa-shadow);
  }
  .nav.is-open {
    display: flex;
  }
  .nav__docente {
    width: 100%;
    text-align: center;
  }
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: min(88vh, 820px);
  perspective: 1200px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.hero__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  left: -80px;
  top: 10%;
  background: radial-gradient(circle, var(--upa-glow) 0%, transparent 70%);
  filter: blur(40px);
  animation: glowPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glowPulse {
  from {
    opacity: 0.5;
    transform: scale(1);
  }
  to {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

.hero__content {
  position: relative;
  animation: fadeUp 1s var(--transition) 0.1s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--upa-red);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  color: var(--upa-navy);
}

.hero__title-accent {
  display: block;
  background: linear-gradient(105deg, var(--upa-blue), var(--upa-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
  background-size: 200% auto;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.hero__lead {
  max-width: 36rem;
  margin: 0 0 1.5rem;
  color: rgba(27, 48, 71, 0.88);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--transition), box-shadow 0.25s, background 0.25s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--upa-blue), #3d7cae);
  color: var(--upa-white);
  box-shadow: 0 10px 28px rgba(86, 151, 199, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(86, 151, 199, 0.45);
  color: var(--upa-white);
}

.btn--outline {
  border-color: var(--upa-navy);
  color: var(--upa-navy);
  background: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  border-color: var(--upa-red);
  color: var(--upa-red);
}

.btn--block {
  width: 100%;
}

.hero__visual {
  position: relative;
  animation: fadeUp 1s var(--transition) 0.25s both;
  transform-style: preserve-3d;
}

.hero__card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 245, 252, 0.95));
  border: 1px solid rgba(86, 151, 199, 0.35);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 24px 50px var(--upa-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: rotateY(-6deg) rotateX(4deg);
}

.hero__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--upa-white);
  background: var(--upa-red);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}

.hero__card-title {
  font-family: var(--font-display);
  margin: 1rem 0 0.75rem;
  font-size: 1.15rem;
}

.hero__list {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(27, 48, 71, 0.9);
}

.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.flash {
  max-width: 1120px;
  margin: 0 auto 0;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  animation: fadeUp 0.5s var(--transition) both;
}

.flash--ok {
  background: rgba(86, 151, 199, 0.2);
  color: var(--upa-navy);
  border: 1px solid rgba(86, 151, 199, 0.5);
}

.flash--err {
  background: rgba(221, 71, 59, 0.15);
  color: var(--upa-navy);
  border: 1px solid rgba(221, 71, 59, 0.45);
}

.flash__extra {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.95;
}

.flash__link {
  font-weight: 700;
  color: var(--upa-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.flash--ok .flash__link {
  color: inherit;
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(236, 243, 250, 0.75));
}

.section--gallery {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--upa-navy) 0%, #243d56 45%, #1a2a3d 100%);
  color: var(--upa-white);
}

.section--gallery::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at 30% 20%, rgba(86, 151, 199, 0.35), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(221, 71, 59, 0.2), transparent 45%);
  pointer-events: none;
  animation: galleryAura 14s ease-in-out infinite alternate;
}

@keyframes galleryAura {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(2%, 1%) scale(1.05);
  }
}

.section--gallery .container {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.container--narrow {
  max-width: 560px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem;
  color: var(--upa-navy);
}

.section__subtitle {
  margin: 0 0 1.75rem;
  color: rgba(27, 48, 71, 0.8);
  max-width: 42rem;
}

/* Galería (fondo oscuro): debe ir después de .section__title / .section__subtitle para ganar la cascada */
.section__title.section__title--on-dark {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.section__subtitle.section__subtitle--on-dark {
  color: #ffffff;
  opacity: 1;
  line-height: 1.6;
}

.section__subtitle.section__subtitle--on-dark strong {
  color: #b8e8ff;
  font-weight: 700;
}

/* Carrusel */
.carousel {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 3rem;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.carousel__track {
  display: flex;
  transition: transform 0.65s var(--transition);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f1a26;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel__slide--video {
  display: flex;
  flex-direction: column;
  background: #0a1018;
  aspect-ratio: 16 / 9;
}

.carousel__video {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: contain;
  background: #000;
}

.carousel__caption {
  flex-shrink: 0;
  margin: 0;
  padding: 0.5rem 0.75rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  background: linear-gradient(180deg, rgba(27, 48, 71, 0.5), rgba(15, 26, 38, 0.95));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel--videos .carousel__viewport {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.carousel__slide--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: 200% 200%;
  animation: slideGradient 8s ease infinite;
}

.carousel__slide--f1 {
  background-image: linear-gradient(135deg, var(--upa-blue), var(--upa-navy));
}

.carousel__slide--f2 {
  background-image: linear-gradient(135deg, var(--upa-red), #8b2e26);
  animation-delay: -2s;
}

.carousel__slide--f3 {
  background-image: linear-gradient(135deg, #1b3047, var(--upa-blue));
  animation-delay: -4s;
}

@keyframes slideGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.carousel__slide--fallback figcaption {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--upa-white);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  text-align: center;
  padding: 1rem;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(27, 48, 71, 0.65);
  color: var(--upa-white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}

.carousel__btn:hover {
  background: rgba(86, 151, 199, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}

.carousel__btn--prev {
  left: 0.25rem;
}

.carousel__btn--next {
  right: 0.25rem;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.carousel__dot[aria-selected="true"] {
  background: var(--upa-red);
  transform: scale(1.25);
}

@media (max-width: 600px) {
  .carousel {
    padding: 0 2.5rem;
  }
  .carousel__btn {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}

/* Modal DOCENTE */
.docente-modal {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.docente-modal[hidden] {
  display: none;
}

.docente-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(15, 26, 38, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.docente-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff 0%, #f2f6fa 100%);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(86, 151, 199, 0.25);
  animation: modalPop 0.45s var(--transition) both;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.docente-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, var(--upa-navy), #2a4a6a);
  color: var(--upa-white);
}

.docente-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.docente-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--upa-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.docente-modal__close:hover {
  background: rgba(221, 71, 59, 0.5);
}

.docente-modal__body {
  padding: 1.15rem 1.25rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.docente-modal__empty {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(27, 48, 71, 0.85);
  line-height: 1.55;
}

.docente-modal__empty code {
  font-size: 0.88em;
  background: rgba(86, 151, 199, 0.12);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.docente-modal__intro {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--upa-navy);
}

.docente-videos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.docente-video__name {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--upa-blue);
}

.docente-video__player {
  width: 100%;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 12px 32px rgba(27, 48, 71, 0.2);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--sched {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.sched-card {
  background: var(--upa-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid rgba(86, 151, 199, 0.25);
  box-shadow: 0 12px 30px rgba(27, 48, 71, 0.08);
  text-align: center;
}

.sched-card__time {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--upa-blue);
}

.sched-card__meta {
  font-size: 0.85rem;
  color: rgba(27, 48, 71, 0.65);
}

.grid--price {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.price-card {
  background: var(--upa-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(27, 48, 71, 0.08);
  box-shadow: 0 16px 40px rgba(27, 48, 71, 0.1);
}

.price-card--accent {
  border-color: var(--upa-red);
  box-shadow: 0 20px 48px rgba(221, 71, 59, 0.18);
}

.price-card__name {
  font-family: var(--font-display);
  margin-top: 0;
  color: var(--upa-navy);
}

.price-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.price-card__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(27, 48, 71, 0.12);
  font-size: 0.95rem;
}

.price-card__list strong {
  color: var(--upa-blue);
  font-family: var(--font-display);
}

.price-card--accent .price-card__list strong {
  color: var(--upa-red);
}

.price-card__note {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(27, 48, 71, 0.7);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.split__item.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.split__item.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--upa-white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(86, 151, 199, 0.2);
  box-shadow: 0 20px 50px rgba(27, 48, 71, 0.1);
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form__label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--upa-navy);
}

.form__optional {
  font-weight: 500;
  font-size: 0.82em;
  opacity: 0.82;
}

.form__input {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(27, 48, 71, 0.15);
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form__input:focus {
  outline: none;
  border-color: var(--upa-blue);
  box-shadow: 0 0 0 3px rgba(86, 151, 199, 0.25);
}

.contact__domain a {
  font-weight: 700;
  font-size: 1.1rem;
}

.contact__list {
  list-style: none;
  padding: 0;
}

.contact__card {
  background: var(--upa-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(86, 151, 199, 0.25);
  box-shadow: 0 14px 36px rgba(27, 48, 71, 0.12);
  text-align: center;
}

.footer {
  background: var(--upa-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.75rem 1.25rem;
  margin-top: 2rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
}

.wa-bot {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 9500;
  font-family: var(--font-body);
}

.wa-bot__fab {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #25d366, #128c7e);
  color: var(--upa-white);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--transition), box-shadow 0.3s;
}

.wa-bot__fab:hover {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.55);
}

.wa-bot__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.wa-bot__icon {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
}

.wa-bot__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(320px, calc(100vw - 2rem));
  background: var(--upa-white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px var(--upa-shadow);
  border: 1px solid rgba(27, 48, 71, 0.1);
  overflow: hidden;
  animation: panelIn 0.45s var(--transition) both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.wa-bot__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--upa-navy), #274a6b);
  color: var(--upa-white);
}

.wa-bot__close {
  background: transparent;
  border: none;
  color: var(--upa-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.wa-bot__intro {
  margin: 0;
  padding: 0.85rem 1rem 0;
  font-size: 0.9rem;
  color: rgba(27, 48, 71, 0.85);
}

.wa-bot__actions {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wa-bot__actions button {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(86, 151, 199, 0.3);
  background: linear-gradient(180deg, rgba(86, 151, 199, 0.08), transparent);
  font: inherit;
  font-weight: 600;
  color: var(--upa-navy);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.wa-bot__actions button:hover {
  transform: translateX(4px);
  border-color: var(--upa-blue);
  box-shadow: 0 6px 16px rgba(86, 151, 199, 0.2);
}

.wa-bot__reply {
  margin: 0 0.5rem 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(27, 48, 71, 0.06);
  font-size: 0.88rem;
  animation: fadeUp 0.35s var(--transition) both;
  border-left: 3px solid var(--upa-red);
}

.wa-bot__direct {
  display: block;
  margin: 0 0.5rem 0.75rem;
  padding: 0.65rem;
  text-align: center;
  border-radius: 999px;
  background: #25d366;
  color: var(--upa-white);
  font-weight: 700;
  text-decoration: none;
}

.wa-bot__direct:hover {
  filter: brightness(1.05);
  color: var(--upa-white);
}

.scene-3d {
  transform-style: preserve-3d;
}
