@font-face {
  font-family: K2D;
  src: url("IMG/k2d-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: K2D;
  src: url("IMG/k2d-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --purple: #3d1a5f;
  --purple-hover: #542884;
  --black: #000;
  --white: #fff;
  --paper: #f9f9f9;
  --line: rgb(255 255 255 / 20%);
  --header-height: 74px;
  --wrap: 1180px;
  font-family: K2D, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 10px); }
body { margin: 0; color: var(--white); background: var(--black); line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.5vw, 3.65rem); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a583ff; outline-offset: 4px; }

.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 30; padding: .7rem 1rem; background: var(--purple); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 10; background: #000; border-bottom: 1px solid #252126; }
.header-inner {
  width: min(1470px, calc(100% - 48px));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { font: 700 clamp(1.1rem, 1.7vw, 1.6rem)/1.2 "Segoe UI", sans-serif; text-decoration: none; white-space: nowrap; }
.navigation { display: flex; align-items: center; gap: clamp(.65rem, 1vw, 1.05rem); font-size: .92rem; }
.navigation a, .more-menu summary { text-decoration: none; white-space: nowrap; }
.navigation a:hover, .more-menu summary:hover { color: #d8b7f7; }
.menu-toggle { display: none; align-items: center; gap: .45rem; color: #fff; background: #101010; border: 1px solid #393339; border-radius: 6px; padding: .5rem .7rem; }
.menu-toggle svg { width: 20px; height: 20px; }
.more-menu { position: relative; }
.more-menu summary { cursor: pointer; list-style: none; }
.more-menu summary::-webkit-details-marker, .accordion summary::-webkit-details-marker { display: none; }
.more-menu summary::after { content: " ▾"; }
.more-links { position: absolute; right: 0; top: calc(100% + 16px); display: grid; gap: 2px; width: max-content; max-width: 100vw; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #0e0b12; box-shadow: 0 10px 30px #0009; }
.more-links a { padding: 6px 12px; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: min(860px, 91svh); background: #10081b; }
.hero-images, .hero-images::after, .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-images { z-index: -1; overflow: hidden; }
.hero-images::after { content: ""; background: linear-gradient(90deg, rgb(0 0 0 / 84%) 0%, rgb(0 0 0 / 79%) 41%, rgb(0 0 0 / 25%) 66%, transparent 88%), linear-gradient(0deg, #0006, transparent 38%); }
.hero-slide { object-fit: cover; opacity: 0; transition: opacity .65s ease-in-out; }
.hero-slide.is-active { opacity: 1; }
.hero-slide.portrait { object-position: center 19%; }
.hero-inner { padding-block: 5rem 6.5rem; }
.hero-content { max-width: 690px; }
.hero h1 { font-size: clamp(2.65rem, 5.4vw, 4.2rem); font-weight: 700; letter-spacing: -.025em; }
.hero h1::after { content: ""; display: block; width: 54px; height: 3px; margin-top: 1.25rem; background: #b791db; }
.hero-subtitle { max-width: 560px; margin: 1rem 0 1.8rem; font-size: clamp(1.15rem, 2.4vw, 1.7rem); line-height: 1.35; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .65rem; min-height: 47px; padding: .73rem 1.25rem; border: 1px solid transparent; border-radius: 5px; background: var(--purple); color: #fff; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; transition: background .2s ease; }
.button:hover { background: var(--purple-hover); }
.button-outline { background: #0006; border-color: #fff9; }
.button-outline:hover { background: #261437; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-controls { position: absolute; display: flex; align-items: center; gap: 5px; left: 50%; bottom: 23px; transform: translateX(-50%); padding: 2px 5px; border-radius: 30px; background: #0008; }
.hero-controls button { background: transparent; border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; }
.slide-dot::before { content: ""; display: block; margin: auto; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff; }
.slide-dot.is-active::before { background: #fff; }
.slide-toggle { line-height: 1; }

.tag-section { background: linear-gradient(rgb(0 0 0 / 73%), rgb(0 0 0 / 85%)), #110c16 url("IMG/sectores-fondo.jpg") center / cover; text-align: center; padding: 64px 0 68px; }
.tag-section h2 { margin-bottom: 1.6rem; }
.tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: .44rem .9rem; border: 1px solid #b492ce75; border-radius: 30px; background: #3d1a5fd9; }
.tag-track .tags-copy { display: none; }
.marquee-toggle { display: none; margin-top: 1rem; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 5px; background: #100b15; color: #fff; font-size: .9rem; }
.marquee-toggle:hover { background: var(--purple); }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.backdrop { background: #140d1c; position: relative; isolation: isolate; }
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tint, linear-gradient(rgb(0 0 0 / 74%), rgb(0 0 0 / 88%))), var(--section-image) center / cover no-repeat;
}
.services { --section-image: url("IMG/servicios-fondo.jpg"); }
.products { --section-image: url("IMG/productos-fondo.jpg"); }
.esoteria { --section-image: url("IMG/esoteria-fondo.jpg"); }
.courses { --section-image: url("IMG/cursos-fondo.jpg"); }
.provider { --section-image: url("IMG/proveedor.jpg"); --tint: linear-gradient(90deg, #000e, #0003); }
.blog { --section-image: url("IMG/blog-fondo.jpg"); }
.academy { --section-image: url("IMG/academia-fondo.jpg"); }
.agency { --section-image: url("IMG/agencia-fondo.jpg"); }
.faq { --section-image: url("IMG/preguntas-fondo.jpg"); }
.aeo { --section-image: url("IMG/aeo.jpg"); --tint: linear-gradient(90deg, #000e, #0006); }
.contact-banner { --section-image: url("IMG/contacto.jpg"); --tint: linear-gradient(90deg, #000e, #0006); }
.section-heading { max-width: 740px; margin: 0 auto 2rem; text-align: center; }
.section-heading h2::after { content: ""; display: block; width: 48px; height: 3px; margin: 1rem auto 0; background: #9664b9; }
.section-heading p { margin-top: .85rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #f0e9f3; }
.section-heading p a, .accordion p a { color: #e2c5ff; text-underline-offset: .2em; }
.section-label { display: inline-block; margin-top: 1rem; padding: .28rem .75rem; border-radius: 30px; border: 1px solid var(--line); color: #f2d9ff; background: #28153e; text-decoration: none; }
.section-label:hover { background: var(--purple); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: rgb(0 0 0 / 83%); box-shadow: 0 5px 16px #0003; }
.card[href] { text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.card[href]:hover { background: #211130; border-color: #bd88e6; }
.card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { display: grid; align-content: start; gap: .55rem; padding: 1.1rem 1.2rem 1.25rem; }
.card-body h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); text-wrap: initial; }
.card-body p { color: #e4dce9; }
.card-body .eyebrow { color: #dec0fa; font-size: .88rem; }
.product-grid .card img { object-fit: contain; background: #0c0911; }
.course-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.course-grid .card > img { aspect-ratio: 2 / 3; }
.agency-grid .card > img { object-position: top; }
.section-action { text-align: center; margin-top: 2rem; }

.feature { display: grid; align-items: center; min-height: 460px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.feature p { max-width: 55ch; margin: 1rem 0 1.55rem; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.feature-copy { max-width: 630px; }
.feature-image { width: 100%; max-height: 500px; object-fit: contain; border-radius: 10px; }
.provider { min-height: 68svh; }

.blog-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.blog-list { display: grid; gap: 10px; }
.blog-list .card { flex-direction: row; align-items: center; }
.blog-list img { flex: 0 0 26%; width: 26%; margin: .5rem 0 .5rem .5rem; border-radius: 4px; }
.blog-list .card-body { gap: .25rem; padding: .55rem .85rem; }
.blog-list h3 { font-size: 1.05rem; }
.blog time { color: #dec0fa; font-size: .9rem; }
.featured-post > img { aspect-ratio: 16 / 10; }

.accordion { width: min(860px, 100%); margin: auto; display: grid; gap: .75rem; }
.accordion details { background: #09070cdb; border: 1px solid var(--line); border-radius: 8px; }
.accordion details:target { border-color: #bd88e6; }
.accordion summary { position: relative; list-style: none; cursor: pointer; font-weight: 700; padding: 1.05rem 3rem 1.05rem 1.15rem; }
.accordion summary::after { content: "+"; position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); font-size: 1.5rem; color: #d0a9f3; }
.accordion details[open] summary::after { content: "−"; }
.accordion p { padding: 0 1.15rem 1.15rem; color: #e9e1ed; }

.contact { color-scheme: light; background: linear-gradient(#f9f9f9f2, #f9f9f9fc), var(--paper) url("IMG/contacto-fondo.jpg") center / cover; color: #141019; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.contact-grid h2 + p { margin-top: 1rem; font-size: 1.2rem; }
address { display: grid; gap: .9rem; margin-top: 1.35rem; font-style: normal; }
address a { color: var(--purple); overflow-wrap: anywhere; }
.contact-form { display: grid; gap: .5rem; }
.contact-grid .contact-form { background: #fff; border: 1px solid #e4dce9; border-radius: 10px; padding: clamp(1rem, 4vw, 2rem); box-shadow: 0 8px 35px #30203d0f; }
.contact-form h3 { font-size: 1.7rem; margin-bottom: .4rem; }
.contact-form label { font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #bdb4c4; border-radius: 5px; background: #fff; color: #161118; padding: .65rem .8rem; margin-bottom: .3rem; }
.contact-form textarea { resize: vertical; }
.form-note { font-size: .92rem; margin-bottom: .35rem; color: #514559; }
.request-dialog { width: min(540px, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: clamp(1rem, 4vw, 1.6rem); color-scheme: light; background: #fff; color: #140d1a; border: 0; border-radius: 12px; }
.request-dialog::backdrop { background: rgb(0 0 0 / 73%); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.dialog-header h2 { font-size: 1.65rem; }
.close-dialog { border: 0; color: #291536; background: #f0e9f4; border-radius: 50%; width: 40px; height: 40px; line-height: 1; font-size: 1.6rem; }

.footer { color-scheme: light; background: #fff; color: #17111b; padding: 2rem 0 2.8rem; border-top: 1px solid #e6e0ea; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.5rem; }
.footer p { margin-top: .45rem; font-size: .88rem; }
.footer nav { display: flex; justify-content: flex-end; align-content: start; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.whatsapp { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 9; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: #117c45; box-shadow: 0 5px 18px #0006; }
.whatsapp:hover { background: #096b39; }
.whatsapp svg { width: 34px; height: 34px; }

@keyframes rise-in {
  from { opacity: .55; translate: 0 var(--entry-distance, 16px); }
  to { opacity: 1; translate: 0 0; }
}

@keyframes sector-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: rise-in .58s cubic-bezier(.2, .65, .3, 1) backwards; }
  .hero-subtitle { animation-delay: .08s; }
  .hero-content > .button { animation-delay: .15s; }
  .enter-view { animation: rise-in .52s ease-out; }
  .accordion details[open] > p, .request-dialog[open] { --entry-distance: 6px; animation: rise-in .24s ease-out; }

  .tag-marquee.is-animated { overflow: hidden; }
  .tag-marquee.is-animated .tag-track { display: flex; width: max-content; animation: sector-scroll 34s linear infinite; }
  .tag-marquee.is-animated .tags { display: flex; flex-wrap: nowrap; min-width: min(var(--wrap), calc(100vw - 64px)); padding-inline-end: 10px; }
  .tag-marquee.is-animated li { white-space: nowrap; }
  .tag-marquee.is-paused .tag-track { animation-play-state: paused; }
  .marquee-toggle { display: inline-block; }

  @media (hover: hover) {
    .tag-marquee:hover .tag-track { animation-play-state: paused; }
    .card[href] { transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
    .card[href]:hover { transform: translateY(-4px); box-shadow: 0 10px 25px #0008; }
    .whatsapp { transition: background .2s ease, transform .2s ease; }
    .whatsapp:hover { transform: translateY(-3px); }
  }
}

@media (max-width: 1210px) {
  :root { --header-height: 62px; }
  .header-inner { flex-wrap: wrap; gap: 0; }
  .menu-toggle:not([hidden]) { display: flex; }
  .navigation { flex: 1 0 100%; display: grid; justify-items: stretch; gap: 0; padding-bottom: .6rem; }
  .menu-toggle:not([hidden]) + .navigation { max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
  .menu-toggle[aria-expanded="false"]:not([hidden]) + .navigation { display: none; }
  .navigation > a, .more-menu summary { padding: .64rem 0; border-top: 1px solid #26212a; }
  .more-links { position: static; width: 100%; }
}

@media (max-width: 890px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .hero-images::after { background: linear-gradient(90deg, #000d, #0005), linear-gradient(0deg, #0008, transparent 45%); }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { width: calc(100% - 30px); }
  .hero { min-height: 78svh; }
  .hero-inner { padding-block: 4rem 5.4rem; }
  .hero h1 { font-size: clamp(2.5rem, 9vw, 3.5rem); }
  .hero-images::after { background: linear-gradient(90deg, #000c, #0006), linear-gradient(0deg, #0009, transparent 70%); }
  .hero-slide { object-position: 56% center; }
  .tag-section { padding: 48px 0; }
  .card-grid, .split, .contact-grid, .blog-grid, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .course-grid .card-body { padding: .7rem .65rem .85rem; }
  .course-grid .card-body h3 { font-size: 1rem; }
  .academy .feature-image { order: 1; }
  .footer nav { justify-content: flex-start; }
  .footer { padding-bottom: 5rem; }
  .whatsapp { width: 50px; height: 50px; right: max(13px, env(safe-area-inset-right)); bottom: max(13px, env(safe-area-inset-bottom)); }
  .whatsapp svg { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
