/* ============================================================
   WARA — CÁPSULA UNIVERSO
   Diseño: Landing Page Wara Modelo exacto
   Solo para wara-universo.html
   ============================================================ */

:root {
  --wara-night: #061832;
  --wara-night-deep: #031024;
  --wara-blue: #61e0eb;
  --wara-blue-soft: #9beaf2;
  --wara-cream: #f5ead7;
  --wara-white: #ffffff;
  --wara-muted: rgba(255, 255, 255, 0.78);
  --wara-muted-2: rgba(255, 255, 255, 0.54);
}

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

html {
  scroll-behavior: smooth;
  background: var(--wara-night-deep);
}

body {
  margin: 0;
  background: var(--wara-night-deep);
  color: var(--wara-white);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}


/* ============================================================
   CONTENEDOR PRINCIPAL
   ============================================================ */

.wara-capsule {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #061832;
}


/* ============================================================
   IMAGEN DE FONDO
   ============================================================ */

.wara-capsule__background {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.wara-capsule__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.002);
}


/* Oscurecimiento suave.
   El lado derecho recibe más profundidad para el HTML. */

.wara-capsule::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(2, 12, 29, 0.00) 0%,
      rgba(2, 12, 29, 0.02) 37%,
      rgba(2, 12, 29, 0.17) 51%,
      rgba(2, 12, 29, 0.60) 70%,
      rgba(2, 12, 29, 0.77) 100%
    );
}


/* Gradiente inferior para integrar el footer. */

.wara-capsule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 250px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(2, 10, 25, 0) 0%,
      rgba(2, 10, 25, 0.22) 35%,
      rgba(2, 10, 25, 0.70) 100%
    );
}


/* ============================================================
   HEADER
   ============================================================ */

.wara-header {
  position: relative;
  z-index: 20;
  height: 100px;
  padding: 24px 4.8% 0;
}

.wara-header__inner {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: start;
  gap: 28px;
}


/* e-CyE */

.wara-brand {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  width: fit-content;
  min-height: 60px;
  padding-right: 54px;
  color: #ffffff;
}

.wara-brand__name {
  position: relative;
  z-index: 2;
  display: block;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.wara-brand__mark {
  position: absolute;
  top: 0;
  left: 87px;
  width: 60px;
  height: 22px;
}

.wara-brand__mark svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wara-brand__tagline {
  position: absolute;
  left: 0;
  top: 33px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
}


/* Navegación */

.wara-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.2vw, 52px);
  padding-top: 10px;
}

.wara-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  line-height: 1;
  transition: color 180ms ease;
}

.wara-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -21px;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  background: var(--wara-blue);
  transition: width 180ms ease;
}

.wara-nav a:first-child::after {
  width: 54px;
}

.wara-nav a:hover {
  color: var(--wara-blue-soft);
}

.wara-nav a:hover::after {
  width: 54px;
}


/* CTA header */

.wara-header__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 46px;
  padding: 0 23px;
  border: 1px solid var(--wara-blue);
  border-radius: 999px;
  color: var(--wara-blue-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.wara-header__cta span:last-child {
  font-size: 21px;
  line-height: 1;
}

.wara-header__cta:hover {
  color: var(--wara-night-deep);
  background: var(--wara-blue);
  transform: translateY(-1px);
}


/* ============================================================
   HERO
   ============================================================ */

.wara-hero {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 100px);
  padding: 30px 0 250px;
}

.wara-hero__content {
  width: min(520px, 38vw);
  margin-left: 53.4%;
}


/* Kicker */

.wara-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.30em;
  line-height: 1;
  white-space: nowrap;
}

.wara-kicker i {
  display: block;
  width: 57px;
  height: 1px;
  background: rgba(255, 255, 255, 0.86);
}


/* ============================================================
   TÍTULO
   ============================================================ */

.wara-title-block {
  margin-top: 18px;
  text-align: center;
}

.wara-title-curve {
  width: 252px;
  height: 37px;
  margin: 0 auto;
}

.wara-title-curve svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wara-title-curve path {
  fill: none;
  stroke: var(--wara-blue-soft);
  stroke-width: 2;
  stroke-linecap: round;
}

.wara-title-curve--top {
  margin-bottom: -6px;
}

.wara-title-block h1 {
  margin: 0;
  color: var(--wara-cream);
  font-family: "Trebuchet MS", Inter, "Segoe UI", sans-serif;
  font-size: clamp(74px, 8.1vw, 116px);
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 0.86;
  text-align: center;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.wara-subtitle-row {
  margin-top: 9px;
}

.wara-subtitle-row p {
  margin: 0;
  color: var(--wara-blue);
 font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: clamp(25px, 2.7vw, 39px);
  font-weight: 500;
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.02em;
}

.wara-title-curve--bottom {
  width: 275px;
  height: 31px;
  margin-top: 1px;
}


/* ============================================================
   TEXTO NARRATIVO
   ============================================================ */

.wara-copy {
  margin-top: 28px;
  color: var(--wara-muted);
  font-size: 17px;
  line-height: 1.45;
}

.wara-copy p {
  margin: 0 0 17px;
}

.wara-question {
  margin-top: 4px !important;
  color: #ffffff;
  font-size: 19px;
  font-weight: 500;
}


/* =========================================
   FORMULARIO — UNIVERSO WARA
   ========================================= */

.wara-form {
    width: 100%;
}


/* -----------------------------------------
   BOTÓN
   ----------------------------------------- */

.wara-button,
.wara-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    min-height: 50px;
    margin-top: 13px;
    padding: 0 22px;

    border: 0;
    border-radius: 999px;

    background: #65deeb;
    color: #06162b;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.wara-button:hover,
.wara-submit:hover {
    transform: translateY(-1px);
    background: #83e7ef;
    box-shadow: 0 10px 32px rgba(70, 218, 232, 0.23);
}

.wara-button:active,
.wara-submit:active {
    transform: translateY(0);
}

.wara-button:focus-visible,
.wara-submit:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.92);
    outline-offset: 3px;
}

.wara-button span,
.wara-submit span {
    font-size: 23px;
    line-height: 1;
}


/* -----------------------------------------
   CAMPOS
   ----------------------------------------- */

.wara-question-box,
.wara-email-box {
    width: 100%;
    box-sizing: border-box;
    margin-top: 14px;
}

.wara-question-box textarea,
.wara-email-box input {
    width: 100%;
    box-sizing: border-box;

    background: rgba(7, 20, 38, 0.58);

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;

    color: #ffffff;

    font-family: inherit;
    font-size: 1rem;

    outline: none;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


/* Pregunta */

.wara-question-box textarea {
    display: block;

    min-height: 118px;

    padding: 16px 18px;

    resize: vertical;

    line-height: 1.5;
}


/* Email */

.wara-email-box input {
    height: 52px;

    padding: 0 18px;
}


/* Placeholder */

.wara-question-box textarea::placeholder,
.wara-email-box input::placeholder {
    color: rgba(255, 255, 255, 0.60);
}


/* Foco */

.wara-question-box textarea:focus,
.wara-email-box input:focus {
    background: rgba(8, 28, 48, 0.72);

    border-color: rgba(64, 220, 214, 0.78);

    box-shadow:
        0 0 0 3px rgba(64, 220, 214, 0.10),
        0 8px 30px rgba(0, 0, 0, 0.14);
}


/* -----------------------------------------
   CONTADOR
   ----------------------------------------- */

.wara-question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 7px;

    font-size: 0.72rem;

    color: rgba(255, 255, 255, 0.45);
}

.wara-question-meta span:first-child {
    font-style: italic;
}


/* -----------------------------------------
   SEGUNDA ETAPA
   ----------------------------------------- */

.wara-email-step {
    animation: waraStepIn 0.55s ease both;
}

.wara-question-thanks {
    text-align: center;
    margin-bottom: 26px;
}

.wara-question-thanks h3 {
    margin: 8px auto 10px;

    max-width: 480px;

    color: #ffffff;

    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.25;
}

.wara-question-thanks p {
    max-width: 430px;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.72);

    line-height: 1.55;
}


.wara-small-star,
.wara-success-star {
    display: block;

    color: #ffffff;

    font-size: 1.15rem;
}


/* -----------------------------------------
   INVITACIÓN EMAIL
   ----------------------------------------- */

.wara-email-intro {
    text-align: center;

    margin-bottom: 10px;
}

.wara-email-intro h4 {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: 1rem;
    font-weight: 600;
}

.wara-email-intro p {
    margin: 0 auto;

    max-width: 430px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 0.84rem;
    line-height: 1.45;
}


/* -----------------------------------------
   CONTINUAR SIN EMAIL
   ----------------------------------------- */

.wara-skip {
    display: block;

    margin: 13px auto 0;

    padding: 5px 10px;

    border: 0;
    background: transparent;

    color: rgba(255, 255, 255, 0.48);

    font-family: inherit;
    font-size: 0.76rem;

    cursor: pointer;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.wara-skip:hover {
    color: rgba(255, 255, 255, 0.82);
}


/* -----------------------------------------
   ESTADO FINAL
   ----------------------------------------- */

.wara-success {
    text-align: center;

    padding: 12px 10px 4px;

    animation: waraStepIn 0.55s ease both;
}

.wara-success h3 {
    margin: 10px 0 12px;

    color: #ffffff;

    font-size: 1.5rem;
}

.wara-success p {
    margin: 6px auto;

    color: rgba(255, 255, 255, 0.72);

    line-height: 1.5;
}

.wara-final-signature {
    margin-top: 20px;

    color: rgba(255, 255, 255, 0.70);

    font-style: italic;

    letter-spacing: 0.04em;
}


/* -----------------------------------------
   TRANSICIONES
   ----------------------------------------- */

.is-hidden {
    display: none !important;
}

@keyframes waraStepIn {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

}


/* -----------------------------------------
   MOBILE
   ----------------------------------------- */

@media (max-width: 600px) {

    .wara-question-box textarea {
        min-height: 105px;
    }

    .wara-question-meta {
        font-size: 0.68rem;
    }

    .wara-question-thanks h3 {
        font-size: 1.22rem;
    }

}


/* ============================================================
   FRASES MANUSCRITAS
   ============================================================ */

.wara-note {
  position: absolute;
  z-index: 10;
  margin: 0;
  color: var(--wara-blue-soft);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 17px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.28;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(155, 234, 242, 0.74);
  text-underline-offset: 7px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.40);
}

.wara-note::before {
  content: "✦";
  display: block;
  margin-bottom: 2px;
  color: var(--wara-blue);
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1;
}

.wara-note--one {
  top: 38%;
  left: 72.5%;
  transform: rotate(-7deg);
  text-align: center;
}

.wara-note--two {
  right: 6.3%;
  bottom: 18%;
  transform: rotate(-7deg);
  text-align: center;
}

.wara-note--two::before {
  content: "✧";
  margin-bottom: 1px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.wara-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  background:
    linear-gradient(
      180deg,
      rgba(2, 15, 34, 0.57),
      rgba(2, 10, 25, 0.90)
    );
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.wara-footer__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.wara-feature {
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 13px 28px;
  gap: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.wara-feature:last-child {
  border-right: 0;
}

.wara-feature__icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(155, 234, 242, 0.86);
  border-radius: 50%;
  color: var(--wara-blue-soft);
}

.wara-feature__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wara-feature h2 {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.18;
}

.wara-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}


/* Fila inferior */

.wara-footer__bottom {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 270px 0 25px;
}

.wara-footer__credit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 20px;
}

.wara-footer__line {
  width: min(205px, 18vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.58);
}

.wara-footer__credit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10.5px;
  white-space: nowrap;
}

.wara-footer__note {
  position: absolute;
  right: 4.2%;
  bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--wara-blue-soft);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 12px;
  font-style: italic;
  line-height: 1.25;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(155, 234, 242, 0.76);
  text-underline-offset: 5px;
  transform: rotate(-6deg);
}

.wara-footer__note > span:first-child {
  margin-top: 5px;
  color: var(--wara-blue);
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}


/* ============================================================
   ANIMACIONES
   ============================================================ */


@keyframes wara-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1180px) {

  .wara-header {
    padding-inline: 3.2%;
  }

  .wara-header__inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
  }

  .wara-hero__content {
    margin-left: 52%;
    width: min(500px, 43vw);
  }

  .wara-note--one {
    left: 83%;
  }

  .wara-feature {
    padding-inline: 20px;
  }
}


@media (max-width: 900px) {

  .wara-capsule {
    min-height: auto;
    background:
      radial-gradient(
        circle at 30% 18%,
        rgba(76, 129, 181, 0.28),
        transparent 34%
      ),
      var(--wara-night-deep);
  }

  .wara-capsule__background {
    position: relative;
    height: 500px;
  }

  .wara-capsule__image {
    min-height: 0;
    height: 100%;
    object-position: 35% center;
  }

  .wara-capsule::before {
    background:
      linear-gradient(
        180deg,
        rgba(2, 12, 29, 0.00) 0%,
        rgba(2, 12, 29, 0.10) 45%,
        rgba(2, 12, 29, 0.93) 100%
      );
  }

  .wara-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }

  .wara-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .wara-nav {
    display: none;
  }

  .wara-brand__name {
    font-size: 25px;
  }

  .wara-header__cta {
    min-height: 41px;
    padding-inline: 17px;
    font-size: 11px;
  }

  .wara-hero {
    min-height: auto;
    margin-top: -110px;
    padding: 0 0 0;
  }

  .wara-hero__content {
    width: min(620px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 250px;
    padding-bottom: 70px;
  }

  .wara-footer {
    position: relative;
  }

  .wara-footer__features {
    grid-template-columns: repeat(2, 1fr);
  }

  .wara-feature:nth-child(2) {
    border-right: 0;
  }

  .wara-feature:nth-child(1),
  .wara-feature:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.13);
  }

  .wara-feature p {
    white-space: normal;
  }
}


@media (max-width: 620px) {

  .wara-note {
    font-size: 14px;
    z-index: 8;
  }

  .wara-note--one {
    top: 54%;
    left: 67%;
    transform: rotate(-6deg);
  }

  .wara-note--two {
    right: 4%;
    bottom: 0.5%;
    transform: rotate(-6deg);
  }

  .wara-capsule__background {
    height: 390px;
  }

  .wara-header {
    height: 82px;
    padding: 18px 16px 0;
  }

  .wara-header__cta {
    max-width: 176px;
    gap: 8px;
    padding-inline: 14px;
  }

  .wara-header__cta span:last-child {
    font-size: 18px;
  }

  .wara-brand {
    padding-right: 0;
  }

  .wara-brand__name {
    font-size: 23px;
  }

  .wara-brand__mark {
    left: 70px;
    width: 50px;
  }

  .wara-brand__tagline {
    top: 28px;
    font-size: 9px;
  }

  .wara-hero {
    margin-top: -75px;
  }

  .wara-hero__content {
    width: calc(100% - 28px);
    padding-top: 205px;
    padding-bottom: 45px;
  }

  .wara-kicker {
    justify-content: center;
    gap: 9px;
    font-size: 9px;
    letter-spacing: 0.22em;
  }

  .wara-kicker i {
    width: 35px;
  }

  .wara-title-curve {
    width: 205px;
  }

  .wara-title-block h1 {
    font-size: 70px;
  }

  .wara-subtitle-row p {
    font-size: 25px;
  }

  .wara-copy {
    margin-top: 22px;
    font-size: 15px;
  }

  .wara-question {
    font-size: 18px;
  }

  .wara-field input,
  .wara-submit {
    min-height: 48px;
    height: 48px;
  }

  .wara-footer__features {
    grid-template-columns: 1fr;
  }

  .wara-feature,
  .wara-feature:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255, 0.13);
    min-height: 80px;
    padding: 12px 18px;
  }

  .wara-feature:last-child {
    border-bottom: 0;
  }

  .wara-footer__bottom {
    min-height: 52px;
    padding: 8px 14px;
  }

  .wara-footer__credit {
    gap: 10px;
  }

  .wara-footer__line {
    width: 34px;
  }

  .wara-footer__credit p {
    font-size: 9px;
  }

  .wara-footer__note {
    position: static;
    margin-left: auto;
    transform: rotate(-4deg);
    font-size: 9px;
  }

  .wara-footer__credit {
    font-size: 9px;
    padding-bottom: 10px;
  }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

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