:root {
  --wine: #7b1e3a;
  --wdark: #3d0f1d;
  --gold: #f5b700;
  --alt: #faf5f0;
  --card: #fff;
  --brand: var(--bs-primary);
  --bs-primary: #7b1e3a;
  --bs-primary-rgb: 123, 30, 58;
  --bs-secondary: #f5b700;
  --bs-secondary-rgb: 245, 183, 0;
  --bs-body-font-family: Poppins, sans-serif;
}
[data-bs-theme="dark"] {
  --bs-primary: #e8708f;
  --bs-primary-rgb: 232, 112, 143;
  --wine: #8f2444;
  --alt: #14162b;
  --card: #1b1e3a;
  --wdark: #0a0b1c;
  --bs-body-bg: #0e1020;
}
html {
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
}
img {
  max-width: 100%;
}
::selection {
  background: var(--gold);
  color: #222;
}
.gold {
  color: var(--gold);
}
.bg-wine {
  background: var(--wine);
  color: #fff;
}
.btn {
  --bs-btn-border-radius: 50rem;
  --bs-btn-font-weight: 600;
  transition: 0.3s;
}
.btn-sm {
  --bs-btn-padding-y: 0.4rem;
  --bs-btn-padding-x: 0.95rem;
  --bs-btn-font-size: 0.95rem;
}
.btn-lg {
  --bs-btn-padding-y: 0.75rem;
  --bs-btn-padding-x: 1.7rem;
  --bs-btn-font-size: 1.05rem;
}
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--wine);
  --bs-btn-border-color: var(--wine);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #9b2848;
  --bs-btn-hover-border-color: #9b2848;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #6a1830;
  --bs-btn-active-border-color: #6a1830;
  --bs-btn-focus-shadow-rgb: 123, 30, 58;
  --bs-btn-disabled-bg: var(--wine);
  --bs-btn-disabled-border-color: var(--wine);
}
.btn-secondary {
  --bs-btn-color: #2a1a20;
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-color: #2a1a20;
  --bs-btn-hover-bg: #ffc928;
  --bs-btn-hover-border-color: #ffc928;
  --bs-btn-active-color: #2a1a20;
  --bs-btn-active-bg: #e0a800;
  --bs-btn-active-border-color: #e0a800;
  --bs-btn-focus-shadow-rgb: 245, 183, 0;
  --bs-btn-disabled-bg: var(--gold);
  --bs-btn-disabled-border-color: var(--gold);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--wine);
  --bs-btn-hover-border-color: var(--wine);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #6a1830;
  --bs-btn-active-border-color: #6a1830;
  --bs-btn-focus-shadow-rgb: 123, 30, 58;
}
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
}
.btn-primary:hover {
  box-shadow: 0 8px 18px #7b1e3a55;
}
.btn-secondary:hover {
  box-shadow: 0 8px 18px #f5b70055;
}

#prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--gold);
  z-index: 2000;
}
#hdr {
  display: contents;
}
.topbar {
  background: var(--wdark);
  color: #e9cfd6;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}
.topbar i {
  color: var(--gold);
}
.topbar .soc a {
  color: #e9cfd6;
  margin-left: 0.9rem;
  transition: 0.3s;
}
.topbar .soc a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--bs-body-bg);
  padding: 0.8rem 0;
  transition:
    padding 0.3s,
    box-shadow 0.3s;
  border-bottom: 1px solid #7b1e3a1a;
}
.navbar.scrolled {
  padding: 0.4rem 0;
  box-shadow: 0 6px 20px #0003;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand) !important;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}
.logo {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--wine);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.navbar-toggler {
  border: 2px solid var(--wine);
  color: var(--brand);
  border-radius: 0.7rem;
  padding: 0.35rem 0.7rem;
  font-size: 1.2rem;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.nav-link {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0.65rem !important;
  white-space: nowrap;
}
.nav-link:after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: 0.3s;
}
.nav-link:hover:after,
.nav-link.active:after {
  transform: scaleX(1);
}
.nav-link.active {
  color: var(--brand) !important;
  font-weight: 600;
}
.offcanvas {
  --bs-offcanvas-width: 80vw;
  max-width: 400px;
}
.offcanvas-header {
  border-bottom: 1px solid #7b1e3a1a;
}
.m-links a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.3rem;
  border-radius: 0.8rem;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: 0.25s;
}
.m-links a i {
  width: 22px;
  text-align: center;
  color: var(--brand);
}
.m-links a:hover {
  background: var(--alt);
}
.m-links a.active {
  background: var(--wine);
  color: #fff;
}
.m-links a.active i {
  color: var(--gold);
}
.m-soc a {
  background: var(--alt) !important;
  color: var(--brand) !important;
  margin: 0 !important;
}
.m-soc a:hover {
  background: var(--gold) !important;
  color: #222 !important;
}
.hero {
  --hh: clamp(500px, 80vh, 680px);
}
.hero .carousel-item {
  min-height: var(--hh);
  overflow: hidden;
}
.hero .carousel-item:before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--wdark);
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
}
.hero .carousel-item.active:before {
  animation: kb 9s ease-out forwards;
}
.hero-in {
  position: relative;
  min-height: var(--hh);
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(100deg, #3d0f1def 20%, #7b1e3a88 60%, #0000);
  padding: 3rem 0 5rem;
}
.hero-in h1 {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 720px;
  margin-bottom: 1rem;
}
.hero-in .lead {
  max-width: 540px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin-bottom: 1.6rem;
}
.carousel-item.active .hero-in .container > * {
  animation: up 0.8s both;
}
.carousel-item.active .hero-in .container > :nth-child(2) {
  animation-delay: 0.15s;
}
.carousel-item.active .hero-in .container > :nth-child(3) {
  animation-delay: 0.3s;
}
.carousel-item.active .hero-in .container > :nth-child(4) {
  animation-delay: 0.45s;
}
.kicker {
  display: inline-block;
  background: var(--gold);
  color: #2a1a20;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.3rem 0.9rem;
  border-radius: 50rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.hero .carousel-indicators {
  margin-bottom: 1.3rem;
}
.hero .carousel-indicators button {
  width: 30px;
  height: 5px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  opacity: 0.5;
}
.hero .carousel-indicators .active {
  background: var(--gold);
  opacity: 1;
}
.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: auto;
  padding: 0 1rem;
  opacity: 1;
}
.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #ffffff26;
  background-size: 45%;
  transition: 0.3s;
}
.hero .carousel-control-prev:hover span,
.hero .carousel-control-next:hover span {
  background-color: var(--gold);
}
.stats {
  background: var(--wine);
  color: #fff;
  padding: 2.4rem 0;
}
.stats h2 {
  font-weight: 700;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0.2rem 0;
}
.stats i {
  font-size: 1.5rem;
  opacity: 0.6;
}
.bg-alt {
  background: var(--alt);
}
.card {
  --bs-card-bg: var(--card);
  --bs-card-border-color: #7b1e3a1f;
  --bs-card-border-radius: 1.1rem;
}
.sec-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 2.4rem;
  color: var(--brand);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.sec-title:before {
  content: "INSTITUTO FENCIL";
  display: block;
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.sec-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 4px;
  margin: 0.7rem auto 0;
  background: var(--gold);
}
.sec-title.text-start:after {
  margin-left: 0;
}
.course,
.teacher,
.feat,
.tst {
  transition: 0.35s;
  box-shadow: 0 4px 16px #0001;
}
.course:hover,
.teacher:hover,
.feat:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px #7b1e3a2e;
  border-color: var(--gold);
}
.imgwrap {
  position: relative;
  overflow: hidden;
}
.imgwrap img {
  transition: 0.6s;
  width: 100%;
  object-fit: cover;
  display: block;
}
.course .imgwrap img,

  aspect-ratio: 16/10;
}
.course:hover img,
.teacher:hover img {
  transform: scale(1.08);
}
@media (min-width: 768px) {
}
.price-tag {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  background: var(--gold);
  color: #2a1a20;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50rem;
  box-shadow: 0 4px 10px #0004;
}
.badge-soft {
  background: #7b1e3a1a;
  color: var(--brand);
  font-weight: 600;
}
.feat {
  background: var(--card);
  border: 1px solid #7b1e3a1f;
  border-radius: 1.1rem;
  padding: 1.5rem;
  height: 100%;
  text-align: center;
}
.feat i {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto 0.8rem;
  font-size: 1.6rem;
  background: #7b1e3a14;
  color: var(--brand);
  transition: 0.4s;
}
.feat:hover i {
  background: var(--wine);
  color: var(--gold);
  transform: rotate(360deg);
}
.teacher img {
  aspect-ratio: 1;
  object-fit: cover;
}
.teacher .soc a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #7b1e3a14;
  color: var(--brand);
  margin: 0 0.2rem;
  transition: 0.3s;
}
.teacher .soc a:hover {
  background: var(--gold);
  color: #222;
  transform: translateY(-3px);
}

.av {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--wine);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.accordion {
  --bs-accordion-bg: var(--card);
  --bs-accordion-border-color: #7b1e3a26;
  --bs-accordion-border-radius: 0.9rem;
  --bs-accordion-active-bg: #7b1e3a14;
  --bs-accordion-active-color: var(--brand);
  --bs-accordion-btn-focus-box-shadow: none;
}
.accordion-item {
  border-radius: 0.9rem !important;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.accordion-button {
  font-weight: 500;
}
.accordion-button:not(.collapsed) {
  box-shadow: none;
}
.cta {
  background:
    linear-gradient(rgba(61, 15, 29, 0.9), rgba(61, 15, 29, 0.9)),
    url(https://picsum.photos/seed/cta/1600/500) center/cover;
  color: #fff;
  padding: 4.5rem 0;
}
.cta h2 {
  font-weight: 700;
}
.page-head {
  background: linear-gradient(120deg, var(--wdark), var(--wine));
  color: #fff;
  padding: 3.2rem 0 5rem;
  clip-path: ellipse(110% 100% at 50% 0);
  position: relative;
  overflow: hidden;
}
.page-head:before {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 40px solid #f5b70026;
}
.page-head:after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: 10px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #ffffff0d;
}
.page-head .container {
  position: relative;
  z-index: 1;
}
.page-head h1 {
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.page-head h1:after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--gold);
  border-radius: 4px;
  margin-top: 0.7rem;
}
.page-head nav a {
  text-decoration: none;
}
.side-sticky {
  position: sticky;
  top: 110px;
}
.hubfeat li {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.hubfeat i {
  color: var(--gold);
  margin-top: 0.25rem;
}
footer {
  background: var(--wdark);
  color: #cdb3bb;
  border-top: 4px solid var(--gold);
}
footer a {
  color: #cdb3bb;
  text-decoration: none;
  transition: 0.3s;
}
footer a:hover {
  color: var(--gold);
}
footer h6 {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}
.socbtn a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff14;
  color: #fff;
  margin-right: 0.4rem;
  transition: 0.3s;
}
.socbtn a:hover {
  background: var(--gold);
  color: #222;
  transform: translateY(-4px);
}
#up {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: none;
  z-index: 99;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--gold);
  color: #222;
}
#wa {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 99;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 18px #0005;
  animation: pulse 2s infinite;
}
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes kb {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 #25d36688;
  }
  100% {
    box-shadow: 0 0 0 16px #25d36600;
  }
}
@media (max-width: 991px) {
  .side-sticky {
    position: static;
  }
}
@media (max-width: 575px) {
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    display: none;
  }
  .hero-in .btn {
    width: 100%;
  }
  .navbar-brand {
    font-size: 1.1rem;
  }
  .logo {
    width: 36px;
    height: 36px;
  }
  .cta {
    padding: 3rem 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* v4: tamaño normal */
.small,
small {
  font-size: 0.92em;
}
.logo {
  width: 42px;
  height: 42px;
}
.navbar-brand {
  font-size: 1.3rem;
}
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}
@media (min-width: 768px) {
  .py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}
.feat {
  padding: 1.6rem;
}
.feat i {
  width: 66px;
  height: 66px;
  font-size: 1.65rem;
}
.stats h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}
.card-body {
  padding: 1.5rem;
}
@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }
}
/* tarjetas de curso */
.course h5 {
  font-size: 1.2rem;
  line-height: 1.35;
  min-height: 2.7em;
}
.course p.clamp2 {
  min-height: 3.1em;
}
.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-tag {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: var(--wine);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 50rem;
}
.rate {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: #fff;
  color: #2a1a20;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50rem;
  box-shadow: 0 3px 8px #0003;
}
.rate i {
  color: var(--gold);
}
.cdoc {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.9rem 0.4rem;
  background: var(--alt);
  border-radius: 0.9rem;
  text-align: center;
}
.meta i {
  display: block;
  color: var(--brand);
  margin-bottom: 0.25rem;
}
.meta b {
  display: block;
  font-size: 0.95rem;
}
.meta small {
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid #7b1e3a1f;
}
.price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
/* play del curso */
.vid-ov {
  position: absolute;
  inset: 0;
  background: rgba(40, 8, 20, 0.35);
}
.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: #2a1a20;
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  z-index: 2;
  animation: ring 2s infinite;
  transition: transform 0.3s;
}
.play-btn i {
  margin-left: 5px;
}
.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
}
.play-lbl {
  position: absolute;
  bottom: 0.9rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 2px 6px #000a;
}
@keyframes ring {
  0% {
    box-shadow: 0 0 0 0 #f5b70099;
  }
  100% {
    box-shadow: 0 0 0 24px #f5b70000;
  }
}
/* footer */
footer {
  padding-top: 3rem;
  color: #d7c0c7;
  font-size: 1rem;
}
.f-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  background: #ffffff0f;
  border: 1px solid #ffffff1f;
  border-left: 6px solid var(--gold);
  border-radius: 1.1rem;
  padding: 1.8rem 2rem;
  color: #fff;
}
.fbrand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}
footer h6 {
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.8rem;
  margin-bottom: 1.3rem;
}
footer h6:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}
.f-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.f-list li {
  margin-bottom: 0.75rem;
}
.f-list a:before {
  content: "›";
  color: var(--gold);
  margin-right: 0.5rem;
}
.f-list a:hover {
  padding-left: 6px;
}
.f-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.f-contact li {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1rem;
}
.f-contact .ic {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: #ffffff14;
  color: var(--gold);
  display: grid;
  place-items: center;
}
.f-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid #ffffff1f;
  padding: 1.4rem 0;
  font-size: 0.92rem;
}
.socbtn a {
  width: 44px;
  height: 44px;
}
@media (max-width: 575px) {
  .f-cta {
    padding: 1.5rem;
  }
  .f-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* v5 */
.navbar > .container {
  flex-wrap: nowrap;
}
.navbar-toggler,
.theme-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.navbar-toggler {
  border: 2px solid var(--wine);
  color: var(--brand);
  background: transparent;
}
.theme-btn {
  border: 1px solid #7b1e3a40;
  background: var(--alt);
  color: var(--brand);
  transition: 0.3s;
}
.theme-btn:hover {
  background: var(--gold);
  color: #222;
  transform: rotate(20deg);
}
.nav-tools .btn {
  align-items: center;
  white-space: nowrap;
}
@media (max-width: 399px) {
  .navbar-brand {
    font-size: 1.05rem;
  }
  .logo {
    width: 36px;
    height: 36px;
  }
  .nav-tools {
    gap: 0.4rem !important;
  }
}
/* footer simple */
footer {
  padding-top: 2rem;
}
footer h6 {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 0;
  margin-bottom: 1rem;
}
footer h6:after {
  display: none;
}
.f-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
}
.f-list li {
  margin: 0;
}
.f-list a:before {
  content: none;
}
@media (min-width: 992px) {
  .f-list {
    grid-template-columns: 1fr;
  }
}
.f-contact li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  overflow-wrap: anywhere;
}
.f-contact i {
  color: var(--gold);
  width: 18px;
  margin-top: 0.3rem;
  text-align: center;
}
.f-bottom {
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  padding: 1.2rem 0;
}
.socbtn a {
  width: 40px;
  height: 40px;
}
/* cards de curso anchas (página Cursos) */
.course-h h5 {
  min-height: 0;
  font-size: 1.3rem;
}
.course-h .imgwrap img {
  aspect-ratio: 16/10;
}
@media (min-width: 768px) {
  .course-h .imgwrap img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 240px;
  }
}
.rate-i {
  background: var(--alt);
  padding: 0.25rem 0.75rem;
  border-radius: 50rem;
  font-weight: 600;
  white-space: nowrap;
}
.rate-i i {
  color: var(--gold);
}
.meta-i span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.meta-i i {
  color: var(--brand);
  width: 18px;
  text-align: center;
}
/* testimonios */

/* v6 */
[id] {
  scroll-margin-top: 90px;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .hero-in {
    background: linear-gradient(180deg, #3d0f1df2, #3d0f1dcc);
  }
}
.card.bg-wine {
  background: var(--wine);
  color: #fff;
}
.filterbar {
  border-left: 5px solid var(--gold);
}
.badge-gold {
  display: inline-block;
  background: var(--gold);
  color: #2a1a20;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.9rem;
  border-radius: 50rem;
  margin-bottom: 0.8rem;
}
.meta-h {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  opacity: 0.85;
  margin-top: 1rem;
}
.art-img {
  width: 100%;
  border-radius: 1.1rem;
  aspect-ratio: 2/1;
  object-fit: cover;
  display: block;
}
.art p {
  font-size: 1.05rem;
  line-height: 1.8;
}
.tips {
  background: var(--alt);
  border-left: 5px solid var(--gold);
  border-radius: 0.9rem;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.share a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--alt);
  color: var(--brand);
  text-decoration: none;
  transition: 0.3s;
}
.share a:hover {
  background: var(--gold);
  color: #222;
  transform: translateY(-3px);
}
.pn {
  transition: 0.3s;
}
.pn:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.pn strong {
  display: block;
}
.rthumb {
  width: 64px;
  height: 64px;
  border-radius: 0.7rem;
  object-fit: cover;
  flex: none;
}
.recent:hover .fw-semibold {
  color: var(--brand);
}
.hub-sec {
  background: var(--wine);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hub-sec:before {
  content: "";
  position: absolute;
  left: -90px;
  bottom: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 44px solid #f5b70022;
}
.hub-sec .container {
  position: relative;
}
.hub-mock {
  background: var(--card);
  color: var(--bs-body-color);
  border-radius: 1.4rem;
  padding: 2rem;
  box-shadow: 0 24px 48px #0004;
  max-width: 440px;
  margin: auto;
}
.hub-av {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}
.hub-svc {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border: 1px solid #7b1e3a1f;
  border-radius: 0.8rem;
  margin-bottom: 0.6rem;
  background: var(--alt);
}
.hub-svc > i:first-child {
  color: var(--brand);
  width: 20px;
  text-align: center;
}
.hub-svc .ok {
  margin-left: auto;
  color: #2e9e5b;
}
footer {
  position: relative;
  overflow: hidden;
  padding-top: 3.5rem;
  clip-path: ellipse(130% 100% at 50% 100%);
  border-top: 0;
}
footer:before {
  content: "";
  position: absolute;
  right: -80px;
  top: 50px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 40px solid #f5b70014;
  pointer-events: none;
}
footer .container {
  position: relative;
}
footer h6 {
  position: relative;
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
}
footer h6:after {
  display: block;
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}
.f-list {
  display: block;
}
.f-list li {
  margin-bottom: 0.7rem;
}
.f-bottom {
  justify-content: space-between;
  text-align: left;
}
@media (max-width: 767px) {
  .f-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* v7: slider de cursos + paginación */
.cslider {
  position: relative;
}
.cs-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.9rem 0 1.6rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cs-track::-webkit-scrollbar {
  display: none;
}
.cs-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}
@media (min-width: 768px) {
  .cs-item {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}
@media (min-width: 1100px) {
  .cs-item {
    flex-basis: calc((100% - 3rem) / 3);
  }
}
.cs-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: #2a1a20;
  box-shadow: 0 6px 16px #0003;
  display: grid;
  place-items: center;
  transition: 0.3s;
}
.cs-btn:hover {
  background: var(--wine);
  color: #fff;
}
.cs-prev {
  left: -0.4rem;
}
.cs-next {
  right: -0.4rem;
}
@media (min-width: 1300px) {
  .cs-prev {
    left: -1.7rem;
  }
  .cs-next {
    right: -1.7rem;
  }
}
@media (max-width: 575px) {
  .cs-btn {
    width: 40px;
    height: 40px;
  }
}
.pagination {
  --bs-pagination-color: var(--brand);
  --bs-pagination-hover-color: #fff;
  --bs-pagination-hover-bg: var(--wine);
  --bs-pagination-active-bg: var(--wine);
  --bs-pagination-active-border-color: var(--wine);
  --bs-pagination-active-color: #fff;
  --bs-pagination-focus-color: var(--brand);
  --bs-pagination-focus-box-shadow: none;
  --bs-pagination-padding-x: 1rem;
  --bs-pagination-padding-y: 0.55rem;
  gap: 0.4rem;
}
.pagination .page-link {
  border-radius: 0.7rem !important;
  min-width: 44px;
  text-align: center;
  margin-left: 0 !important;
}
.pagination .active .page-link {
  box-shadow: 0 4px 12px #7b1e3a55;
}
.cs-track.is-loop-adjusting{scroll-behavior:auto!important;scroll-snap-type:none!important}
/* v8: reseñas (mismo slider que los cursos), formularios y enlaces-ícono */
.tst {
  padding: 1.8rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tst-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qi {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #7b1e3a14;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.tst .stars {
  color: var(--gold);
  letter-spacing: 3px;
}
.tst p {
  margin: 0;
  flex: 1;
}
.tst-by {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid #7b1e3a1f;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}
.form-check-input:checked {
  background-color: var(--wine);
  border-color: var(--wine);
}
#wa,
.socbtn a,
.topbar .soc a,
.teacher .soc a,
.m-soc a,
.share a {
  text-decoration: none;
}
#wa:hover {
  color: #fff;
}
/* flechas de slider: fuera de la card en PC, debajo en móvil/tablet (no tapan el texto) */
.cslider {
  padding-bottom: 3.4rem;
}
.cs-btn {
  top: auto;
  bottom: 0;
  transform: none;
}
.cs-prev {
  left: calc(50% - 54px);
}
.cs-next {
  right: calc(50% - 54px);
}
@media (min-width: 1200px) {
  .cslider {
    padding-bottom: 0;
  }
  .cs-btn {
    top: 45%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .cs-prev {
    left: -23px;
  }
  .cs-next {
    right: -23px;
  }
}
/* slider principal: controles siempre claros (Bootstrap los oscurece en modo oscuro) */
[data-bs-theme="dark"] .hero .carousel-control-prev-icon,
[data-bs-theme="dark"] .hero .carousel-control-next-icon,
[data-bs-theme="dark"] .hero .carousel-indicators [data-bs-target] {
  filter: none;
}

#up.is-visible {
  display: block;
}


/* ===== Ajustes institucionales y componentes nuevos ===== */
.brand-logo{display:block;width:auto;height:46px;max-width:220px;object-fit:contain}
.footer-logo{display:block;width:auto;height:58px;max-width:230px;object-fit:contain}
.navbar .nav-item.dropdown{position:relative}
.navbar .nav-item.dropdown>.nav-link{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.navbar .dropdown-menu{border:1px solid #7b1e3a18;border-radius:6px;padding:.55rem;box-shadow:0 16px 40px #0002;min-width:230px;margin-top:0}
/* Submenús de escritorio: flotantes, nunca ocupan espacio en la barra. */
@media (min-width:1200px){
  .navbar{overflow:visible}
  .navbar .nav-item.dropdown{position:relative}
  .navbar .nav-item.dropdown>.dropdown-menu{
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    z-index:1060;
    display:block;
    min-width:250px;
    margin:0;
    border-radius:6px;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(9px);
    transition:opacity .2s ease, transform .24s ease, visibility .2s ease;
  }
  .navbar .nav-item.dropdown>.dropdown-menu.show{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
  }
  .navbar .nav-item.dropdown>.nav-mega{width:390px;max-width:calc(100vw - 32px);grid-template-columns:1fr;gap:.05rem}
  .navbar .nav-item.dropdown>.nav-mega.show{display:block}
}
.navbar .dropdown-item{display:flex;align-items:center;gap:.65rem;border-radius:4px;padding:.7rem .75rem;white-space:normal}
.navbar .dropdown-item>i{width:22px;text-align:center;color:var(--brand);font-size:1.05rem}
.navbar .dropdown-item span{display:grid;gap:.12rem}
.navbar .dropdown-item strong{font-size:.82rem}
.navbar .dropdown-item small{font-size:.68rem;color:var(--bs-secondary-color)}
.navbar .dropdown-item:hover{background:var(--alt)}
.m-group-toggle{width:100%;display:flex;align-items:center;gap:.9rem;padding:.85rem 1rem;margin-bottom:.3rem;border:0;border-radius:.8rem;background:transparent;color:inherit;text-align:left;font:inherit;font-weight:500}
.m-group-toggle>i:first-child{width:22px;text-align:center;color:var(--brand)}
.m-group-toggle:hover,.m-group-toggle[aria-expanded=true]{background:var(--alt)}
.m-group-toggle .fa-chevron-down{font-size:.75rem;transition:transform .2s}
.m-group-toggle[aria-expanded=true] .fa-chevron-down{transform:rotate(180deg)}
.m-sub-links{margin:0 0 .45rem 2.6rem;padding-left:.8rem;border-left:2px solid var(--gold);display:grid;gap:.1rem}
.m-sub-links a{padding:.55rem .7rem;margin:0;font-size:.9rem}
.m-sub-links a:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--gold)}
.institution-card{display:flex;height:100%;flex-direction:column;padding:1.5rem;border:1px solid #7b1e3a18;border-radius:1.1rem;background:var(--bs-body-bg);color:inherit;text-decoration:none;box-shadow:0 4px 16px #0000000d;transition:transform .3s,box-shadow .3s,border-color .3s}
.institution-card:hover{transform:translateY(-6px);border-color:var(--gold);box-shadow:0 16px 32px #7b1e3a20;color:inherit}
.institution-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:1rem;border-radius:15px;background:var(--alt);color:var(--brand);font-size:1.35rem}
.institution-card h5{font-weight:700;margin-bottom:.45rem}
.institution-card p{color:var(--bs-secondary-color);font-size:.9rem;margin-bottom:1.1rem}
.institution-card>span:last-child{margin-top:auto;color:var(--brand);font-size:.82rem;font-weight:600}
.institution-card>span:last-child i{margin-left:.35rem}
.institution-feature{height:100%;padding:2rem;border-radius:1.2rem;background:var(--alt);border:1px solid #7b1e3a14}
.institution-feature>i{display:grid;place-items:center;width:62px;height:62px;margin-bottom:1.2rem;border-radius:18px;background:var(--wine);color:var(--gold);font-size:1.6rem}
.institution-feature h3{font-weight:700}
.institution-feature p{margin-bottom:0;color:var(--bs-secondary-color)}
.step-number{display:inline-grid;place-items:center;width:38px;height:38px;margin-bottom:1rem;border-radius:50%;background:var(--wine);color:#fff;font-weight:700}
.ad-slot{display:flex;position:relative;overflow:hidden;border:1px dashed #9b8790;border-radius:1rem;background:var(--alt);color:var(--bs-secondary-color);align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:.25rem}
.ad-slot span{font-weight:600;font-size:.85rem}
.ad-slot small{font-size:.7rem}
.ad-slot-square{width:300px;min-height:250px;margin:1.5rem auto}
.ad-slot-banner{width:min(100%,970px);min-height:90px;margin:1.5rem auto}
.promo-widget{position:fixed;right:22px;bottom:92px;z-index:1080;width:min(330px,calc(100vw - 32px));max-height:min(72vh,520px);overflow:hidden;border-radius:1rem;background:var(--bs-body-bg);box-shadow:0 12px 40px #0004;display:none}
.promo-widget.is-open{display:block;animation:promoIn .25s ease-out}
.promo-widget img{display:block;width:100%;max-height:420px;object-fit:cover}
.promo-close{position:absolute;top:9px;right:9px;z-index:2;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:#0009;color:#fff}
.promo-empty-content{display:none;padding:1.3rem;gap:.65rem}
.promo-empty-content strong{font-size:1.05rem}
.promo-empty-content span{font-size:.85rem;color:var(--bs-secondary-color)}
.promo-empty .promo-image-link{display:none}
.promo-empty .promo-empty-content{display:grid}
.promo-tab{position:fixed;right:22px;bottom:88px;z-index:1079;width:54px;height:54px;border:0;border-radius:50%;background:var(--wine);color:#fff;box-shadow:0 8px 24px #0003;font-size:1.2rem}
.cookie-banner{position:fixed;left:18px;right:18px;bottom:18px;z-index:1090;display:flex;align-items:center;justify-content:space-between;gap:1.2rem;padding:1.2rem 1.35rem;border:1px solid #7b1e3a20;border-radius:1rem;background:var(--bs-body-bg);box-shadow:0 12px 40px #0003}
.cookie-banner[hidden]{display:none}
.cookie-copy{max-width:760px}
.cookie-copy strong{display:block;margin-bottom:.25rem}
.cookie-copy p{font-size:.82rem;color:var(--bs-secondary-color);margin:0 0 .25rem}
.cookie-link{font-size:.78rem;color:var(--brand)}
.cookie-actions{display:flex;flex-wrap:wrap;gap:.5rem;flex:none}
@keyframes promoIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:767.98px){.brand-logo{height:39px;max-width:175px}.footer-logo{height:50px}.cookie-banner{left:10px;right:10px;bottom:10px;align-items:stretch;flex-direction:column;padding:1rem}.cookie-actions{justify-content:flex-end}.promo-widget{right:12px;bottom:145px}.promo-tab{right:14px;bottom:82px}#up{right:14px;bottom:18px}.ad-slot-banner{min-height:110px}.ad-slot-square{width:min(300px,100%);min-height:250px}}

/* Ajustes finales de navegación, publicidad y acciones flotantes */
.nav-service-link{font-size:.82rem;padding-left:.55rem!important;padding-right:.55rem!important}
.ad-placement{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:1.25rem;align-items:center;margin:2rem auto}
.ad-slot{min-height:110px;padding:1rem;border:1px dashed #9b8790;border-radius:8px;background:linear-gradient(135deg,var(--alt),var(--bs-body-bg))}
.ad-slot-square{width:300px;min-height:250px;margin:0 auto}
.ad-slot-banner{width:100%;min-height:110px;margin:0 auto}
.ad-slot .ad-label{display:inline-flex;align-items:center;gap:.4rem;font-size:.65rem;letter-spacing:.08em;text-transform:uppercase;opacity:.7}
.ad-slot strong{font-size:.95rem;color:var(--bs-body-color)}
.ad-slot small{max-width:34rem}
#up{right:22px;bottom:22px;z-index:1081}
.promo-tab{z-index:1080}
@media(max-width:991.98px){.ad-placement{grid-template-columns:1fr}.ad-slot-square{width:min(300px,100%)}}
@media(max-width:1199.98px){.nav-service-link{font-size:inherit;padding-left:1rem!important;padding-right:1rem!important}}

.teacher-profile-modal{border:0;border-radius:12px;overflow:hidden}.teacher-profile-modal .modal-header{align-items:flex-start}.teacher-profile-icon{display:grid;place-items:center;width:64px;height:64px;margin-bottom:1rem;border-radius:16px;background:var(--alt);color:var(--brand);font-size:1.7rem}.teacher-profile-modal .kicker{font-size:.68rem;color:var(--brand);font-weight:700;letter-spacing:.08em}


/* Pulido final: prioridad del menú móvil y capas de elementos flotantes */
@media(max-width:1199.98px){
  #menu.offcanvas{z-index:1205!important;--bs-offcanvas-zindex:1205;transition:transform .38s cubic-bezier(.22,.61,.36,1)}
  .offcanvas-backdrop{z-index:1200!important}
  #menu .offcanvas-body{overscroll-behavior:contain}
  #menu .collapse{transition:height .34s ease}
  #menu .m-group-toggle .fa-chevron-down{transition:transform .3s ease}
  .promo-widget,.promo-tab,#up,#wa{z-index:1070!important}
  .cookie-banner{z-index:1080!important}
}

.verify-home-card{display:flex;align-items:center;gap:1.15rem;padding:1.35rem 1.5rem;border:1px solid #7b1e3a22;border-left:4px solid var(--gold);border-radius:10px;background:var(--bs-body-bg);box-shadow:0 5px 20px #0000000a;color:inherit;text-decoration:none;transition:transform .25s,box-shadow .25s}
.verify-home-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #00000012;color:inherit}
.verify-home-icon{display:grid;place-items:center;flex:0 0 54px;height:54px;border-radius:12px;background:var(--alt);color:var(--brand);font-size:1.4rem}
.verify-home-copy{display:grid;gap:.25rem;flex:1}.verify-home-copy strong{font-weight:700}.verify-home-copy small{color:var(--bs-secondary-color);line-height:1.5}.verify-home-action{color:var(--brand);font-size:.86rem;font-weight:700;white-space:nowrap}
@media(max-width:767.98px){.verify-home-card{align-items:flex-start;flex-wrap:wrap;padding:1.1rem}.verify-home-copy{flex-basis:calc(100% - 70px)}.verify-home-action{margin-left:69px}}
