/* Landing principal (/www):
 * Tokens: lienzo #eae6d8, texto #1a1a1a, rojo marca #f04e36, neón #d8ff35.
 * Prefijo .pl-* para no chocar con el resto de la app. Servido desde /public. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&family=Merriweather:ital,wght@0,400;0,700;0,900;1,400;1,700&display=swap');

.pl-wrap {
  box-sizing: border-box;
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
  overflow-x: hidden;
  background-color: #eae6d8;
  color: #1a1a1a;
  font-family:
    'DM Sans',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pl-wrap *,
.pl-wrap *::before,
.pl-wrap *::after {
  box-sizing: border-box;
}

.pl-header {
  z-index: 10;
  display: flex;
  width: 100%;
  max-width: 1400px;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .pl-header {
    padding: 2.5rem 3rem;
  }
}

.pl-logoLink {
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
  outline-offset: 4px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.pl-logoLink:hover {
  opacity: 0.94;
}

.pl-logoLink:focus-visible {
  outline: 2px solid rgba(26, 26, 26, 0.35);
}

.pl-logoImg {
  height: 3.375rem;
  width: auto;
  max-width: min(90vw, 360px);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
  transition: transform 0.2s ease;
}

.pl-logoLink:hover .pl-logoImg {
  transform: scale(1.02);
}

@media (min-width: 768px) {
  .pl-logoImg {
    height: 5rem;
  }
}

.pl-main {
  z-index: 10;
  display: flex;
  width: 100%;
  max-width: 64rem;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  text-align: center;
  font-family: Merriweather, Georgia, 'Times New Roman', serif;
}

@media (min-width: 768px) {
  .pl-main {
    padding: 2rem 3rem 2.5rem;
  }
}

.pl-mark {
  display: block;
  width: 6rem;
  height: auto;
  max-width: 100%;
  margin-bottom: 2rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

@media (min-width: 768px) {
  .pl-mark {
    width: 8rem;
    margin-bottom: 2.5rem;
  }
}

.pl-title {
  margin: 0 0 1.5rem;
  font-family: Merriweather, Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .pl-title {
    margin-bottom: 2rem;
  }
}

.pl-brDesktop {
  display: none;
}

@media (min-width: 768px) {
  .pl-brDesktop {
    display: block;
  }
}

.pl-highlight {
  display: inline;
  padding: 0 0.15em;
  border-radius: 4px;
  background-color: #d8ff35;
  color: #1a1a1a;
  font-family: Merriweather, Georgia, 'Times New Roman', serif;
  font-weight: 600;
}

.pl-lead {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(26, 26, 26, 0.85);
}

/* Módulo rotativo: ancho según cada palabra (sin fantasma «más larga» ⇒ no hueco ante CRM / Academia) */
.pl-lead-codepen {
  --pl-codepen-step: calc(1em * 1.65);

  display: inline-flex;
  align-items: center;
  margin-inline: 0.04em;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.pl-lead-codepen-view {
  display: inline-flex;
  max-width: max-content;
  height: var(--pl-codepen-step);
  overflow: hidden;
  box-sizing: border-box;
  align-items: center;
}

.pl-lead-codepen-slot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: inherit;
  line-height: 1;
  color: #f04e36;
  -webkit-font-smoothing: antialiased;
  animation: pl-codepen-slot-in 0.45s cubic-bezier(0.33, 0.93, 0.35, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .pl-lead-codepen-slot {
    animation: none;
  }
}

@keyframes pl-codepen-slot-in {
  0% {
    opacity: 0;
    transform: translateY(0.4em);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}



@media (min-width: 768px) {
  .pl-lead {
    margin-bottom: 3rem;
  }
}

.pl-pills {
  max-width: 48rem;
  margin: 0 auto 3.5rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.58);
}

@media (min-width: 640px) {
  .pl-pills {
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) {
  .pl-pills {
    margin-bottom: 4rem;
    font-size: 0.875rem;
  }
}

.pl-footer {
  z-index: 10;
  flex-shrink: 0;
  padding: 1rem 1.5rem 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .pl-footer {
    padding-bottom: 3.5rem;
  }
}

.pl-tagline {
  margin: 0;
  font-family: Merriweather, Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  font-style: italic;
  color: rgba(26, 26, 26, 0.8);
}

@media (min-width: 768px) {
  .pl-tagline {
    font-size: 1.25rem;
  }
}

/* «crecer»: bloque negro marca (#1A1A1A) para que las letras brillen */
.pl-crecer-letters .pl-crecer-letters__row {
  background-color: #1a1a1a;
  padding: 0.22em 0.48em 0.28em;
  border-radius: 0.5em;
  box-shadow:
    0 2px 10px rgba(26, 26, 26, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* «crecer» — sólo tokens marca (#F04E36 #D8FF35 #B582E5 #A9C2F0); alfas variantes sin cambiar hex */
.pl-crecer-letters .letter-c {
  background:
    linear-gradient(45deg, #f04e36d9 0 50%, transparent calc(50% + 1px) 100%),
    linear-gradient(135deg, #f04e3699 0 50%, transparent calc(50% + 1px) 100%);
  border-radius: 100%;
}

.pl-crecer-letters .pl-crecer-letters__row > span:nth-child(4).letter-c {
  background:
    linear-gradient(45deg, #a9c2f0d9 0 50%, transparent calc(50% + 1px) 100%),
    linear-gradient(135deg, #a9c2f099 0 50%, transparent calc(50% + 1px) 100%);
}

.pl-crecer-letters .letter-r {
  background:
    radial-gradient(circle at 25% 50%, #d8ff35dd 0 71%, transparent calc(71% + 1px) 100%),
    linear-gradient(-90deg, transparent 0 50%, #d8ff35bb 0 100%),
    conic-gradient(from 270deg at 50% 70%, #d8ff35dd 0 25%, transparent 0 100%),
    conic-gradient(from 135deg at 50% 50%, #d8ff3599 0 25%, transparent 0 100%);
  background-repeat: no-repeat;
  background-size: 50% 70%, 100% 100%, 100% 100%, 100% 100%;
  background-position: 100% 0, 0 0, 0 0, 0 0;
}

.pl-crecer-letters .letter-e {
  background:
    linear-gradient(90deg, #b582e5cc 0 75%, transparent 0 100%),
    linear-gradient(90deg, #b582e5cc 0 75%, transparent 0 100%),
    linear-gradient(90deg, #b582e5dd 0 50%, transparent 0 100%),
    linear-gradient(0deg, #b582e588 0 33%, transparent 0 67%, #b582e5cc 0 100%);
  background-size: 100% 34%, 100% 34%, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 0 50%, 0 50%, 0 0, 0 0;
}
