/* ============================================================
   ClaseCita — landing page styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cc-surface-1);
  color: var(--fg-1);
}
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out),
              background var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn--primary {
  background: var(--cc-orange-500);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { background: var(--cc-orange-600); color: #fff; }
.btn--blue {
  background: var(--cc-blue-500);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--blue:hover { background: var(--cc-blue-600); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--cc-blue-500);
  border-color: var(--cc-blue-100);
}
.btn--ghost:hover { background: var(--cc-blue-50); color: var(--cc-blue-600); }
.btn--lg { font-size: 1.0625rem; padding: 16px 28px; }
.btn--block { width: 100%; }

/* ---------- Brand band ---------- */
.brand-band {
  background: var(--cc-orange-500);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
}
.brand-band__logo {
  height: clamp(64px, 9vw, 120px);
  width: auto;
  display: block;
  max-width: 100%;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--cc-line);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__brand img { height: 30px; width: auto; }
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: 8px;
  flex: 1;
}
.nav__links a {
  color: var(--cc-ink-2);
  font-weight: 500;
  font-size: .95rem;
}
.nav__links a:hover { color: var(--cc-orange-600); text-decoration: none; }
.nav__cta { display: flex; gap: 10px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .nav__cta .btn--ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 90% -10%, var(--cc-yellow-100) 0%, transparent 60%),
    radial-gradient(800px 400px at -10% 110%, var(--cc-orange-50) 0%, transparent 60%),
    var(--cc-surface-1);
  overflow: hidden;
  padding: 64px 0 96px;
}
.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr .95fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow { color: var(--cc-orange-700); }
.hero__title {
  margin: 14px 0 18px;
  color: var(--cc-blue-700);
  max-width: 18ch;
}
.hero__title-accent {
  color: var(--cc-orange-500);
  display: inline;
}
.hero__lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--cc-ink-2);
  max-width: 48ch;
  margin: 0 0 22px;
}
.hero__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 28px;
  font-size: .95rem;
  color: var(--cc-ink-2);
}
.hero__bullets span { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot--orange { background: var(--cc-orange-500); }
.dot--blue   { background: var(--cc-blue-500);   }
.dot--yellow { background: var(--cc-yellow-500); }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.hero__note {
  font-size: .875rem;
  color: var(--cc-ink-3);
  margin: 0;
}

/* Hero visual */
.hero__visual {
  position: relative;
  height: 460px;
}
.hero-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 36px;
  box-shadow: var(--shadow-3);
}
.hero-card--yellow {
  background: var(--cc-yellow-500);
  transform: rotate(-2.5deg);
}
.hero-card__iso {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,80,151,.18));
}
.hero-card__tag {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cc-blue-700);
  font-size: 1.1rem;
  margin: 0;
}

.float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-3);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
  width: 280px;
}
.float-card strong {
  display: block;
  color: var(--cc-ink);
  font-weight: 600;
  font-size: .9rem;
}
.float-card span {
  color: var(--cc-ink-3);
  font-size: .8rem;
}
.float-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
}
.float-card--top    { top: -8px; left: -32px; transform: rotate(-3deg); }
.float-card--bottom { bottom: 12px; right: -28px; transform: rotate(2.5deg); }

.pill {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pill--success { background: #e7f6ee; color: #0e7a3f; }
.pill--warn    { background: var(--cc-yellow-100); color: var(--cc-yellow-800); }
.pill--soon    { background: var(--cc-blue-50);    color: var(--cc-blue-600);   }

@media (max-width: 920px) {
  .hero { padding: 40px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { height: 420px; max-width: 460px; margin: 0 auto; width: 100%; }
  .float-card--top    { left: -8px; }
  .float-card--bottom { right: -8px; }
}
@media (max-width: 520px) {
  .float-card { width: 240px; }
  .hero-card__iso { width: 130px; }
}

/* ---------- Section heads ---------- */
.section-head {
  margin: 0 0 40px;
  max-width: 720px;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 { margin: 10px 0 12px; color: var(--cc-blue-700); }
.section-head__sub {
  color: var(--cc-ink-3);
  font-size: 1.0625rem;
  margin: 0;
}

/* ---------- Story ---------- */
.story {
  padding: 112px 0 120px;
  background:
    linear-gradient(180deg, var(--cc-surface-1) 0%, var(--cc-yellow-50) 100%);
  position: relative;
  overflow: hidden;
}
.story__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.story__bg-iso {
  position: absolute;
  top: -80px;
  right: -120px;
  width: 520px;
  opacity: .06;
  transform: rotate(15deg);
}
.story__inner {
  position: relative;
  z-index: 1;
}
.story__lead {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}
.story__lead h2 {
  margin: 14px 0 0;
  color: var(--cc-blue-700);
  line-height: 1.2;
}
.story__lead-accent { color: var(--cc-orange-500); }

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: stretch;
  margin-bottom: 64px;
}

.story__pull {
  position: relative;
  padding: 0 16px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story__quote-mark {
  position: absolute;
  top: -32px;
  left: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9rem;
  line-height: 1;
  color: var(--cc-orange-200);
  font-weight: 700;
  user-select: none;
}
.story__pull p {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--cc-ink);
  font-weight: 400;
  margin: 0 0 18px;
}
.story__pull p:last-child { color: var(--cc-ink-3); font-size: 1.125rem; }
.story__pull mark {
  background: var(--cc-yellow-300);
  color: var(--cc-blue-700);
  padding: 0 6px;
  border-radius: 4px;
  font-weight: 600;
}

.story__cta-card {
  background: var(--cc-blue-700);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-3);
  position: relative;
  overflow: hidden;
}
.story__cta-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--cc-orange-500);
  opacity: .9;
}
.story__cta-card h3 {
  font-size: 1.75rem;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 14px;
  position: relative;
  max-width: 18ch;
}
.story__cta-card > p {
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 24px;
  position: relative;
}
.story__cta-card > p strong {
  color: var(--cc-yellow-300);
  font-weight: 600;
}
.story__bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.story__bullets li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.story__bullet-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  color: var(--cc-yellow-300);
  letter-spacing: .08em;
  padding-top: 2px;
}
.story__bullets strong {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
}
.story__bullets span {
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  line-height: 1.5;
}

.story__closer {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.story__closer-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.55;
  color: var(--cc-ink);
  margin: 0 0 20px;
  font-weight: 500;
}
.story__closer-text em {
  font-style: italic;
  color: var(--cc-orange-600);
}

.story__signoff {
  font-family: var(--font-display);
  font-size: 1.25rem !important;
  color: var(--cc-blue-700) !important;
  font-weight: 700;
  margin: 0 !important;
  display: inline-block;
  padding: 10px 22px;
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--cc-line);
}
.story__signoff em { color: var(--cc-orange-500) !important; font-style: italic; font-weight: 500; }

@media (max-width: 920px) {
  .story { padding: 72px 0 80px; }
  .story__grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
  .story__pull { padding: 0 8px 0 48px; }
  .story__quote-mark { font-size: 6rem; top: -20px; }
  .story__pull p { font-size: 1.15rem; }
  .story__cta-card { padding: 32px 26px; }
  .story__cta-card h3 { font-size: 1.5rem; }
  .story__closer-text { font-size: 1.2rem; }
}

/* ---------- Subjects "Y más" pill ---------- */
.subjects__more {
  background: var(--cc-orange-500) !important;
  color: #fff !important;
  font-weight: 600;
}

/* ---------- How it works ---------- */
.how {
  padding: 96px 0;
  background: var(--cc-surface-2);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
  list-style: none;
  padding-left: 0;
}
.step {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 24px;
  position: relative;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cc-orange-500);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-brand);
}
.step--blue   .step__num { background: var(--cc-blue-500);   box-shadow: var(--shadow-blue); }
.step--yellow .step__num { background: var(--cc-yellow-500); color: var(--cc-blue-700); box-shadow: 0 8px 20px rgba(255,190,29,.35); }

.step h3 { margin: 0 0 8px; color: var(--cc-blue-700); }
.step p { margin: 0; color: var(--cc-ink-3); line-height: 1.6; }

.subjects {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.subjects__label {
  font-family: var(--font-secondary), var(--font-display);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cc-ink-4);
  flex-shrink: 0;
}
.subjects__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.subjects__list li {
  background: var(--cc-blue-50);
  color: var(--cc-blue-700);
  font-weight: 500;
  font-size: .9rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

@media (max-width: 920px) {
  .how { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Signup ---------- */
.signup {
  padding: 96px 0;
  background:
    radial-gradient(900px 420px at 50% -20%, var(--cc-orange-50) 0%, transparent 60%),
    var(--cc-surface-1);
}
.forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.signup-card {
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
}
.signup-card--orange {
  background: linear-gradient(180deg, var(--cc-orange-50) 0%, #fff 60%);
  border: 1px solid var(--cc-orange-100);
}
.signup-card--blue {
  background: linear-gradient(180deg, var(--cc-blue-50) 0%, #fff 60%);
  border: 1px solid var(--cc-blue-100);
}
.signup-card__head { margin-bottom: 20px; }
.signup-card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  white-space: nowrap;
}
.signup-card--orange .signup-card__tag {
  background: var(--cc-orange-500);
  color: #fff;
}
.signup-card--blue .signup-card__tag {
  background: var(--cc-blue-500);
  color: #fff;
}
.signup-card__head h3 {
  margin: 0 0 6px;
  color: var(--cc-blue-700);
  font-size: 1.625rem;
  line-height: 1.2;
}
.signup-card__head p {
  margin: 0;
  color: var(--cc-ink-3);
  font-size: .98rem;
}

.form { display: flex; flex-direction: column; gap: 14px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-size: .8rem;
  font-weight: 600;
  color: var(--cc-ink-2);
  letter-spacing: .01em;
}
.field > span em {
  font-style: normal;
  color: var(--cc-ink-4);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--cc-ink);
  outline: none;
  transition: border-color var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cc-blue-500);
  box-shadow: 0 0 0 3px rgba(0,80,151,.18);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--cc-ink-4); }
.form__legal {
  font-size: .78rem;
  color: var(--cc-ink-4);
  line-height: 1.5;
  margin: 0;
}
.form__success {
  background: #e7f6ee;
  color: #0e7a3f;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: .95rem;
}

@media (max-width: 860px) {
  .signup { padding: 64px 0; }
  .forms { grid-template-columns: 1fr; }
  .signup-card { padding: 26px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Markets ---------- */
.markets {
  padding: 96px 0;
  background: var(--cc-blue-700);
  color: #fff;
}
.markets__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.markets__copy .cc-eyebrow { color: var(--cc-yellow-300); }
.markets__copy h2 { color: #fff; margin: 10px 0 16px; }
.markets__copy p {
  color: rgba(255,255,255,.78);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 44ch;
  margin: 0;
}
.markets__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.market {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.market--live {
  background: var(--cc-yellow-500);
  border-color: var(--cc-yellow-500);
  color: var(--cc-blue-700);
}
.market__flag { font-size: 1.5rem; line-height: 1; }
.market strong { display: block; font-weight: 700; font-size: 1.05rem; }
.market span { font-size: .875rem; opacity: .75; }
.market--live span { opacity: .85; color: var(--cc-blue-700); }

@media (max-width: 920px) {
  .markets { padding: 64px 0; }
  .markets__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- FAQ ---------- */
.faq {
  padding: 96px 0;
  background: var(--cc-surface-2);
}
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: box-shadow var(--dur-2) var(--ease-out);
}
.faq-item[open] { box-shadow: var(--shadow-1); }
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cc-blue-700);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cc-orange-500);
  transition: transform var(--dur-2) var(--ease-out);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 12px 0 0;
  color: var(--cc-ink-2);
  font-size: .98rem;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .faq { padding: 64px 0; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--cc-ink);
  color: rgba(255,255,255,.78);
  padding: 64px 0 24px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand img { height: 40px; width: auto; margin-bottom: 12px; }
.footer__brand p { font-family: var(--font-display); font-size: .95rem; margin: 0; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
}
.footer__cols a {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  margin-bottom: 8px;
}
.footer__cols a:hover { color: #fff; text-decoration: none; }
.footer__base {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__base { flex-direction: column; gap: 8px; }
}
