/* ==========================================================================
   Ja! Simplemente Comunicación: landing estática
   Identidad tomada de la app (venta_cursos): _variables.scss y custom.scss
   1. tipografías · 2. tokens · 3. base · 4. componentes
   ========================================================================== */

/* 1. Tipografías ========================================================= */

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/caveat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02D7-02DD, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/caveat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens ============================================================== */

:root {
  /* Color de marca (venta_cursos/app/assets/stylesheets/_variables.scss) */
  --c-primary: #3b208f;
  --c-primary-dark: #452991;
  --c-primary-soft: #6e4ccc;
  --c-secondary: #b1b141;
  --c-yellow: #ebcb63;
  --c-banner: #fafafa;
  --c-surface-purple: #f2eef8;
  --c-surface-yellow: #f7f4ed;
  --c-surface-band: #f5f1ee;
  --c-ink: #1f2230;
  --c-body: #333333;
  --c-muted: #555555;

  /* Tipografía */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Caveat", cursive;
  --fs-display: clamp(2.1rem, 1.2rem + 3.4vw, 3.5rem);
  --fs-h2: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);

  /* Espacio */
  --space-section: clamp(64px, 8vw, 120px);
  --space-block: clamp(28px, 4vw, 48px);
  --gutter: clamp(20px, 4vw, 32px);

  /* Rejilla */
  --container: 1180px;

  --radius: 4px;
  --radius-round: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 3. Base ================================================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  color: var(--c-ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  max-width: 68ch;
  color: var(--c-body);
}

a {
  color: var(--c-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--c-primary-dark);
}

:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--c-primary);
  color: #fff;
}

.container {
  max-width: var(--container);
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 12px 18px;
  background: var(--c-primary);
  color: #fff;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  color: #fff;
}

/* 4. Componentes ======================================================== */

/* 4.1 Piezas de marca --------------------------------------------------- */

.short-line {
  width: 50px;
  height: 3px;
  background: var(--c-primary);
}

.bg-purple {
  background-color: var(--c-primary);
}

.bg-yellow {
  background-color: var(--c-yellow);
}

.bg-purple-light {
  background-color: rgba(110, 76, 204, 0.15);
}

.bg-yellow-light {
  background-color: rgba(235, 203, 99, 0.3);
}

.text-purple {
  color: var(--c-primary);
}

.text-secondary {
  color: var(--c-secondary);
}

.icon-circle {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.icon-circle img {
  width: 72%;
  height: auto;
}

.section-title {
  color: var(--c-primary);
  font-size: var(--fs-h2);
  font-weight: 600;
  margin-bottom: 20px;
}

.section-head {
  margin-bottom: var(--space-block);
}

.underline {
  width: 85%;
  max-width: 320px;
  margin-left: 12px;
}

.exclamation {
  width: 25px;
  margin-left: 12px;
}

/* 4.2 Barra de navegación ---------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--c-banner);
}

.site-header .navbar {
  padding-block: 14px;
}

.site-header .logo {
  width: 150px;
  height: auto;
}

.site-nav .nav-link {
  color: var(--c-body);
  font-weight: 500;
  padding-inline: 4px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--c-primary);
}

.site-nav .navbar-toggler {
  border: 0;
  padding: 6px;
  color: var(--c-body);
}

@media (min-width: 992px) {
  .site-nav .nav-link {
    margin-inline: 14px;
  }
}

/* 4.3 Botones (btn-custom-purple / btn-custom-white de la app) ---------- */

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 26px;
  border: 2px solid var(--c-primary);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-brand--purple {
  background: var(--c-primary);
  color: #fff;
}

.btn-brand--purple:hover,
.btn-brand--purple:focus-visible {
  background: #fff;
  color: var(--c-primary);
}

.btn-brand--white {
  background: #fff;
  color: var(--c-primary);
}

.btn-brand--white:hover,
.btn-brand--white:focus-visible {
  background: var(--c-primary);
  color: #fff;
}

.btn-brand--lg {
  padding: 15px 30px;
}

/* 4.4 Portada ----------------------------------------------------------- */

.main-banner {
  background: var(--c-banner);
  padding-block: clamp(40px, 6vw, 80px);
}

.main-banner h1 {
  font-size: clamp(1.9rem, 0.9rem + 4.6vw, 5.4rem);
  font-weight: 600;
  line-height: 1.02;
  margin-bottom: 32px;
  max-width: 22ch;
}

.hero-claim {
  color: var(--c-primary);
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 24px;
}

.accent-line {
  margin-bottom: 28px;
}

.accent-line__text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-accent);
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.05;
  color: var(--c-ink);
}

.underline {
  display: block;
  width: min(280px, 70%);
  height: auto;
  margin-top: 2px;
  margin-left: 12px;
}

.exclamation {
  width: 22px;
  height: auto;
  flex: 0 0 auto;
}

.main-banner .lead-line {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--c-muted);
  margin-bottom: 0;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 40px;
}

.hero-facts {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.hero-facts li {
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero-facts strong {
  display: block;
  color: var(--c-ink);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.image-banner img {
  width: 100%;
  height: auto;
}

/* 4.5 Tarjetas divididas (AGENCIA / ACADEMIA) --------------------------- */

.split-cards {
  display: grid;
  grid-template-columns: 1fr;
  padding-bottom: 56px;
}

@media (min-width: 992px) {
  .split-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.split-card {
  padding: clamp(32px, 5vw, 64px) var(--gutter);
}

.split-card__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .split-card__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: 32px;
  }
}

@media (min-width: 992px) {
  /* el contenido de la tarjeta izquierda arranca en el borde del contenedor */
  .split-card--agencia .split-card__grid {
    padding-left: max(0px, calc((100vw - var(--container)) / 2));
  }
}

.split-card--agencia {
  background: var(--c-surface-purple);
}

.split-card--academia {
  background: var(--c-surface-yellow);
}

.split-card h2 {
  color: var(--c-primary);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.split-card__claim {
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--c-body);
  margin-bottom: 28px;
}

.split-card ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.split-card li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--c-body);
}

.split-card li img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.split-card__note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid #ddd;
}

.split-card__note img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

/* 4.6 Galería Slick (servicios de la agencia) --------------------------- */

.gallery {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery .slick-slide {
  padding-inline: 14px;
  display: flex;
  align-items: stretch;
  height: auto;
}

.service-card {
  flex: 1 1 auto;
  background: var(--c-surface-purple);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card h3 {
  color: var(--c-primary);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.service-card p {
  margin: 0;
  color: var(--c-body);
  font-size: 0.98rem;
}

.service-card .btn-brand {
  align-self: flex-start;
  margin-top: auto;
}

.slick-arrow {
  position: static;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--radius-round);
  background: var(--c-primary);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: background-color 0.2s var(--ease);
}

.slick-prev,
.slick-next {
  top: auto;
  left: auto;
  right: auto;
  transform: none;
}

.slick-arrow:hover,
.slick-arrow:focus-visible {
  background: var(--c-primary-dark);
  color: #fff;
}

.slick-arrow::before {
  display: none;
}

.slick-arrow i {
  font-size: 1rem;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

.gallery-arrows {
  display: flex;
  gap: 12px;
}

.slick-dotted.slick-slider {
  margin-bottom: 0;
}

.slick-dots {
  position: static;
  margin: 0;
  display: flex;
  gap: 8px;
}

.slick-dots li {
  height: auto;
  width: auto;
  margin: 0;
}

.slick-dots li button {
  width: 32px;
  height: 4px;
  padding: 0;
  background: rgba(59, 32, 143, 0.2);
}

.slick-dots li button::before {
  display: none;
}

.slick-dots li.slick-active button {
  background: var(--c-primary);
}

@media (max-width: 767px) {
  .gallery-arrows {
    display: none;
  }
}

/* 4.7 Enseña en JA ------------------------------------------------------ */

.teach-band {
  background: var(--c-surface-yellow);
  padding-block: var(--space-section);
}

.teach-band__lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--c-body);
}

.teach-band__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.teach-band__list li {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--c-body);
}

.teach-band__list img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
}

.teach-band__art {
  width: 100%;
  height: auto;
}

/* 4.8 Servicios de la agencia (filas) ---------------------------------- */

.section--bone {
  background: var(--c-surface-purple);
}

.service-rows {
  display: grid;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-block: 30px;
}

.service-row img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.service-row h3 {
  color: var(--c-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.service-row p {
  margin: 0;
  color: var(--c-body);
}

/* 4.9 Banner de comunicación ------------------------------------------- */
.banner-comunicacion {
  background: var(--c-surface-band);
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 80px);
}

.banner-comunicacion h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.banner-comunicacion p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--c-muted);
  position: relative;
  z-index: 1;
}

.banner-comunicacion img {
  width: 100%;
  height: auto;
}

/* 4.8 Llamado a la acción ------------------------------------------------ */

.agency-cta {
  background: #fff;
}

.agency-cta p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--c-muted);
  max-width: 640px;
  margin-inline: auto;
}

/* 4.9 Sobre nosotros ------------------------------------------------------ */

.about-team {
  background: var(--c-banner);
  padding-block: var(--space-section);
}

.about-team__photo {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
}

.about-team__founder {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.about-team__founder img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-round);
  object-fit: cover;
  flex: 0 0 auto;
}

.about-team__founder p {
  margin: 0;
}

/* 4.9 Pie de página ----------------------------------------------------- */

.site-footer {
  background: var(--c-primary-dark);
  color: #fff;
  padding-block: clamp(48px, 6vw, 80px) 0;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer .logo-footer {
  width: 190px;
  height: auto;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.site-footer .horizontal-divider {
  width: 56px;
  height: 3px;
  background: var(--c-yellow);
  margin-bottom: 24px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--c-yellow);
  text-decoration: underline;
}

.site-footer .contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 0.95rem;
  overflow-wrap: break-word;
}

.site-footer .contact-line i {
  font-size: 1.1rem;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  padding-block: 40px;
}

.site-footer .footer-links a {
  color: #fff;
  font-size: 0.95rem;
}

.site-footer .copyright {
  background: #1d1440;
  padding-block: 18px;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer .copyright p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .copyright a {
  color: #fff;
}

/* 4.10 Preferencias de movimiento reducido ------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Si AOS no carga, el contenido nunca queda oculto */
html:not(.aos-ready) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}
