/* ============================================
   INHOA — Instituto Holístico del Perú
   Estilos Globales
   Paleta: Espiritual Moderno (Morados, Violetas, Dorados)
============================================ */

/* === Variables de diseño === */
:root {
  --bg-dark: #0D0318;
  --bg-medium: #29297B;
  --bg-card: #29297B;
  --purple-deep: #1a1a4e;
  --purple-mid: #29297B;
  --purple-light: #33339b;
  --purple-pale: #4141c0;
  --gold: #FEC000;
  --gold-light: #F0D060;
  --text-white: #F8F0FF;
  --text-muted: #B8A8CC;
  --text-dim: #7A6890;
  --green-wa: #25D366;
  --border: rgba(212, 175, 55, 0.18);
  --gradient-hero: linear-gradient(135deg, #0D0318 0%, #29297B 50%, #0D0318 100%);
  --gradient-gold: linear-gradient(90deg, #D4AF37, #F0D060, #D4AF37);
  --font-head: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Raleway', 'Lato', sans-serif;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(100, 0, 180, 0.22);
  --transition: all 0.3s ease;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--text-white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple-mid), var(--gold));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--purple-light), var(--gold-light));
}

/* Page transition */
body {
  animation: pageFadeIn 0.6s ease;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
}

/* === Tipografía === */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}

h4 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

p {
  color: var(--text-muted);
}

/* === Utilidades de layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.bg-medium {
  /* background: var(--bg-medium); */
  background: var(--gradient-hero);
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle,
.text-center .gold-divider {
  margin-left: auto;
  margin-right: auto;
}

/* Etiqueta superior dorada */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  color: var(--text-white);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 60px;
}

/* Divisor dorado */
.gold-divider {
  width: 70px;
  height: 2px;
  background: var(--gradient-gold);
  margin: 18px 0 44px;
  border-radius: 2px;
}

/* === Botones === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.48);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #1A0533;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.48);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: #1A0533;
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-light));
  color: #fff;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.28);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.48);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.82rem;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(13, 3, 24, 0.96);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Marca */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 3px;
}

.brand-tagline {
  font-size: 0.6rem;
  color: var(--text-white);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* Menú */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.navbar-menu a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-white);
  letter-spacing: 0.3px;
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--gold-light);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-cta {
  padding: 9px 20px;
  font-size: 0.82rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Orbes de luz */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.14;
  animation: floatOrb 9s ease-in-out infinite;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #7C3AED, transparent);
  top: -250px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #D4AF37, transparent);
  bottom: -150px;
  left: -120px;
  opacity: 0.09;
  animation-delay: 3.5s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #A855F7, transparent);
  top: 40%;
  left: 35%;
  opacity: 0.07;
  animation-delay: 6s;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-28px) scale(1.06);
  }
}

/* Estrellas puntiformes */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 8% 18%, rgba(255, 255, 255, .45) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 55%, rgba(255, 255, 255, .3) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 8%, rgba(255, 255, 255, .5) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 75%, rgba(255, 255, 255, .3) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 32%, rgba(255, 255, 255, .4) 0%, transparent 100%),
    radial-gradient(1px 1px at 13% 72%, rgba(255, 255, 255, .3) 0%, transparent 100%),
    radial-gradient(1px 1px at 52% 48%, rgba(212, 175, 55, .55) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 85%, rgba(255, 255, 255, .4) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 28%, rgba(212, 175, 55, .35) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 14%, rgba(255, 255, 255, .35) 0%, transparent 100%);
}

/* Contenido Hero */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero-badge::before {
  content: '✦';
  font-size: 0.65rem;
}

.hero-title {
  color: var(--text-white);
  margin-bottom: 22px;
}

.hero-title .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 42px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Flecha de scroll */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  animation: bounceDown 2.2s ease-in-out infinite;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(9px);
  }
}

/* === Cabecera de página interna === */
.page-header {
  position: relative;
  padding: 155px 0 80px;
  overflow: hidden;
  /* background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(40, 0, 75, 0.5) 60%, var(--bg-dark) 100%); */
  background: var(--gradient-hero);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 50%, rgba(124, 58, 237, 0.14), transparent 60%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 14px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 14px;
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb>span {
  color: var(--gold);
}

/* === Tarjetas de Servicios (index) === */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.servicio-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(70, 0, 120, 0.2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.servicio-card:hover::before {
  transform: scaleX(1);
}

.servicio-card:hover {
  transform: translateY(-7px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow);
}

.servicio-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}

.servicio-card h3 {
  color: var(--text-white);
  margin-bottom: 12px;
}

.servicio-card p {
  font-size: 0.93rem;
  margin-bottom: 28px;
}

/* === Sección About (index) === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, rgba(70, 0, 120, 0.45), rgba(168, 85, 247, 0.2));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
  position: relative;
}

.about-img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-deep));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-badge-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.about-badge-txt {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
}

.about-stat {
  background: rgba(70, 0, 120, 0.15);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.about-stat h4 {
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 4px;
}

.about-stat p {
  font-size: 0.82rem;
}

/* === Features (¿Por qué Inhoa?) === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.feature-item h4 {
  color: var(--text-white);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.9rem;
}

/* === Tarjetas de Eventos === */
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
}

.evento-card {
  background: linear-gradient(135deg, #070725, rgba(70, 0, 120, 0.2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.evento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 175, 55, 0.4);
}

.evento-img {
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  background: linear-gradient(135deg, rgba(60, 0, 100, 0.8), rgba(150, 60, 220, 0.3));
  overflow: hidden;
}

.evento-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.evento-card:hover .evento-img img {
  transform: scale(1.08);
}

.evento-fecha {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(13, 3, 24, 0.82);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.evento-fecha .dia {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--gold-light);
  line-height: 1;
}

.evento-fecha .mes {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.evento-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.evento-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-pale);
  margin-bottom: 10px;
}

.evento-body h3 {
  color: var(--text-white);
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.evento-body>p {
  font-size: 0.9rem;
  margin-bottom: 14px;
  flex: 1;
}

.evento-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.evento-info span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.evento-precio {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.precio-libre {
  color: var(--purple-pale);
}

/* === Tarjetas de Cursos === */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.83rem;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gold-light);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
}

.course-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(70, 0, 120, 0.18));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 175, 55, 0.4);
}

.course-img {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.course-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-img img {
  transform: scale(1.08);
}

.ci-1 {
  background: linear-gradient(135deg, #180038, #520090);
}

.ci-2 {
  background: linear-gradient(135deg, #001830, #004080);
}

.ci-3 {
  background: linear-gradient(135deg, #180028, #500060);
}

.ci-4 {
  background: linear-gradient(135deg, #081830, #203870);
}

.ci-5 {
  background: linear-gradient(135deg, #200040, #600090);
}

.ci-6 {
  background: linear-gradient(135deg, #100030, #380060);
}

.course-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(13, 3, 24, 0.82);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px 13px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  backdrop-filter: blur(8px);
}

.course-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-body h3 {
  color: var(--text-white);
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.course-body>p {
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex: 1;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.course-meta span {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-price {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--gold-light);
}

/* === Tarjetas de Libros === */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
}

.book-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(70, 0, 120, 0.18));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 175, 55, 0.4);
}

.book-cover {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
}

.book-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.06);
}

.bc-1 {
  background: linear-gradient(160deg, #2d0052, #7c1fa0);
}

.bc-2 {
  background: linear-gradient(160deg, #1a003d, #500090);
}

.bc-3 {
  background: linear-gradient(160deg, #3d1500, #9d4400);
}

.bc-4 {
  background: linear-gradient(160deg, #001a3d, #0050a0);
}

.bc-5 {
  background: linear-gradient(160deg, #1a0030, #600080);
}

.bc-6 {
  background: linear-gradient(160deg, #002020, #006060);
}

.book-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-body h3 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 6px;
}

.book-author {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 700;
}

.book-body>p {
  font-size: 0.85rem;
  margin-bottom: 16px;
  flex: 1;
}

.book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.book-price {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--gold-light);
}

/* === Testimonios === */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.testimonio-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(70, 0, 120, 0.15));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  position: relative;
}

.quote-icon {
  font-family: var(--font-head);
  font-size: 5.5rem;
  color: var(--purple-mid);
  opacity: 0.25;
  position: absolute;
  top: 6px;
  left: 22px;
  line-height: 1;
}

.stars-rating {
  color: var(--gold);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.testimonio-text {
  font-size: 0.93rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  padding-top: 18px;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  color: var(--text-white);
  font-size: 0.93rem;
}

.author-location {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* === Sección CTA final === */
.cta-section {
  padding: 110px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(70, 0, 120, 0.3) 0%, transparent 70%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--text-white);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.08rem;
  margin-bottom: 42px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* === WhatsApp flotante === */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-tooltip {
  background: rgba(13, 3, 24, 0.92);
  border: 1px solid var(--border);
  color: var(--text-white);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-btn {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  animation: pulseGreen 2.8s ease-in-out infinite;
  flex-shrink: 0;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

@keyframes pulseGreen {

  0%,
  100% {
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.65), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
}

/* === Página Nosotros === */
.mision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 80px;
}

.mision-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(70, 0, 120, 0.2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  transition: var(--transition);
}

.mision-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 175, 55, 0.4);
}

.mision-icon {
  font-size: 2.6rem;
  margin-bottom: 18px;
}

.mision-card h3 {
  color: var(--text-white);
  margin-bottom: 12px;
}

.mision-card p {
  font-size: 0.93rem;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.valor-item {
  background: rgba(70, 0, 120, 0.15);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
}

.valor-item span {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}

.valor-item h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 6px;
}

.valor-item p {
  font-size: 0.83rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}

.team-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(70, 0, 120, 0.18));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 175, 55, 0.3);
}

.team-photo {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, rgba(60, 0, 100, 0.6), rgba(140, 50, 210, 0.3));
  overflow: hidden;
  position: relative;
}

.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.08);
}

.team-body {
  padding: 22px;
}

.team-body h3 {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.team-body p {
  font-size: 0.87rem;
}

/* === Página Contacto === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.contact-item h4 {
  color: var(--text-white);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 0.9rem;
}

.contact-item a:hover {
  color: var(--gold-light);
}

.whatsapp-big {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.1));
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.whatsapp-big:hover {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.16), rgba(18, 140, 126, 0.16));
  border-color: rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

.whatsapp-big-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-big h4 {
  color: var(--text-white);
  margin-bottom: 4px;
}

.whatsapp-big p {
  font-size: 0.85rem;
}

/* Formulario de contacto */
.contact-form {
  background: linear-gradient(135deg, var(--bg-card), rgba(70, 0, 120, 0.15));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 42px;
}

.contact-form h3 {
  color: var(--text-white);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.93rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* === Footer === */
.footer {
  background: var(--gradient-hero);
  border-top: 1px solid var(--border);
  padding: 75px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 290px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p {
  font-size: 0.82rem;
}

.footer-bottom p span {
  color: var(--gold);
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 35px;
  z-index: 998;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-deep));
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5);
}

/* === Imágenes responsivas === */
.img-responsive {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-rounded {
  border-radius: var(--radius);
}

/* === Animaciones de entrada === */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.12s;
}

.fade-in-delay-2 {
  transition-delay: 0.24s;
}

.fade-in-delay-3 {
  transition-delay: 0.36s;
}

.fade-in-delay-4 {
  transition-delay: 0.48s;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .about-grid {
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 3, 24, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: right 0.4s ease;
  }

  .navbar-menu.open {
    right: 0;
  }

  .navbar-menu a {
    font-size: 1.1rem;
  }

  .navbar-cta {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-wrap {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .books-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
}

/* Bootstrap Icons adjustments */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
}