/* ==========================================================================
   Enso — estilos del sitio
   Valores tomados del sitio original (Gatsby + styled-components).
   Breakpoint "laptop": 992px
   ========================================================================== */

:root {
  --color-text-dark: #140d38;
  --color-text-secondary: #9591a5;
  --color-white: #fff;
  --color-light: #d8d8d833;
  --color-dark: #140d38;
  --color-orange: #fd5e43;

  --font-title: CircularStd, Helvetica, Arial, sans-serif;
  --font-subtitle: CircularStdBook, Helvetica, Arial, sans-serif;
  --font-body: Helvetica, Arial, sans-serif;
}

/* ---------- Reset (meyerweb, como el original) ---------- */
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video {
  margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; background-color: var(--color-white); color: var(--color-text-dark); }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
table { border-collapse: collapse; border-spacing: 0; }
strong { font-weight: bold; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* ---------- Grid / Col (@enso/components) ---------- */
.grid { display: flex; flex-direction: column; flex: 1; }
.col { display: flex; flex-direction: column; flex: 1; }

@media (min-width: 992px) {
  .grid--md-row { flex-direction: row; }
  .grid--md-row-reverse { flex-direction: row-reverse; }
  .col--md-2 { flex: 2; }
  .col--md-4 { flex: 4; }
  .col--md-6 { flex: 6; }
  .col--md-75 { flex: 75; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background-color: var(--color-white);
}
.site-header__logo { height: 40px; display: block; }
.site-header__nav { display: flex; gap: 32px; align-items: center; }
.site-header__link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-dark);
  text-decoration: none;
  font-weight: bold;
}

/* En pantallas muy angostas el menú original se desborda; se reduce el espacio */
@media (max-width: 480px) {
  .site-header { gap: 16px; }
  .site-header__logo { height: 32px; }
  .site-header__nav { gap: 14px; }
  .site-header__link { font-size: 13px; }
}

@media (min-width: 992px) {
  .site-header { padding: 20px 140px; }
}

/* ==========================================================================
   Home — Hero
   ========================================================================== */
.hero { padding: 90px 24px 0; background-color: var(--color-white); }
.hero__wrapper { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.hero__text { flex: 0 1 auto; text-align: left; margin-top: 0; max-width: 600px; }
.hero__title {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: bold;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  margin-top: 0;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.hero__line { display: block; font-weight: bold; }
.hero__line--orange { color: var(--color-orange); white-space: nowrap; }
.hero__line--dark { color: var(--color-text-dark); }
.hero__image-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 350px;
  width: 100%;
  overflow: visible;
}
.hero__image { width: 100%; max-width: 100%; height: auto; display: block; object-fit: contain; }

@media (min-width: 992px) {
  .hero { padding: 75px 140px 0; }
  .hero__wrapper { flex-direction: row; align-items: flex-start; gap: 100px; justify-content: flex-start; }
  .hero__text { flex: 0 1 40%; max-width: 500px; margin-top: 0; padding-top: 0; }
  .hero__title { font-size: 58px; margin-bottom: 28px; letter-spacing: -1px; line-height: 1.2; }
  .hero__image-wrap {
    flex: 0 1 60%;
    min-height: 800px;
    width: auto;
    max-width: none;
    margin-left: 40px;
    justify-content: flex-end;
  }
  .hero__image { width: auto; max-width: 650px; max-height: none; }
}

/* ==========================================================================
   Home — Secciones de producto
   ========================================================================== */
.feature { padding: 0 24px 60px; background-color: var(--color-white); margin-top: 0; }
.feature--overlap { margin-top: -90px; }
.feature__body { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.feature__title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: bold;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.feature__description {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-dark);
  margin-bottom: 32px;
  line-height: 1.6;
}
.feature__cta {
  display: inline-block;
  padding: 0;
  background-color: transparent;
  color: var(--color-orange);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
  letter-spacing: 0.5px;
  cursor: default;
}
.feature__image-wrap { display: flex; align-items: center; justify-content: center; margin-top: 24px; }
.feature__image { max-width: 100%; height: auto; width: 100%; }

@media (min-width: 992px) {
  .feature { padding: 0 140px 100px; }
  .feature--overlap { margin-top: -120px; }
  .feature__title { font-size: 40px; margin-bottom: 24px; line-height: 1.2; }
  .feature__description { font-size: 18px; margin-bottom: 40px; }
  .feature__image-wrap { margin-top: 0; justify-content: flex-start; }
  .feature--reverse .feature__image-wrap { justify-content: flex-end; }
  .feature__image { max-width: 500px; width: auto; }
}

/* ==========================================================================
   Home — Prensa ("Lo que dicen de nosotros")
   ========================================================================== */
.press { padding: 0 24px 60px; background-color: var(--color-white); }
.press__title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: bold;
  color: var(--color-text-dark);
  margin-bottom: 40px;
  text-align: center;
}
.press__accent { color: var(--color-orange); }
.press__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  align-items: center;
  justify-items: center;
}
.press__logo {
  max-width: 100%;
  height: auto;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 0.2s, filter 0.2s;
}
.press__logo:hover { opacity: 1; filter: grayscale(0%); }

@media (min-width: 992px) {
  .press { padding: 0 140px 100px; }
  .press__title { font-size: 36px; margin-bottom: 60px; }
}

/* ==========================================================================
   Home — Banner de descarga
   ========================================================================== */
.download { padding: 0 24px; background-color: var(--color-white); }
.download__wrap { display: flex; align-items: flex-start; justify-content: center; margin-top: 24px; width: 100%; }
.download__image { max-width: 100%; height: auto; width: 100%; }

@media (min-width: 992px) {
  .download { padding: 0 140px; }
  .download__wrap { margin-top: 0; }
  .download__image { max-width: 800px; width: auto; }
}

/* ==========================================================================
   Home — Banner "Información importante para clientes"
   ========================================================================== */
.info-banner { padding: 0; margin: 0; width: 100%; background-color: var(--color-white); }
.info-banner__link { display: block; width: 100%; cursor: pointer; transition: opacity 0.2s; }
.info-banner__link:hover { opacity: 0.9; }
.info-banner__image { width: 100%; height: auto; display: block; }

/* ==========================================================================
   Home — Información regulatoria
   ========================================================================== */
.regulatory { padding: 60px 24px; background-color: var(--color-white); }
.regulatory__col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.regulatory__col--left { align-items: flex-start; text-align: left; }
.regulatory__image { max-width: 100%; height: auto; display: block; width: auto; flex-shrink: 0; }
.regulatory__image--condusef { margin-bottom: 24px; }
.regulatory__text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-dark);
  line-height: 1.6;
  margin-top: 16px;
}
.regulatory__link { color: var(--color-text-dark); text-decoration: underline; }
.regulatory__link:hover { opacity: 0.8; }
.regulatory__title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: bold;
  color: var(--color-text-dark);
  margin-bottom: 12px;
  margin-top: 16px;
}
.regulatory__more {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-orange);
  text-decoration: none;
  margin-top: 8px;
  display: inline-block;
  cursor: default;
}

@media (max-width: 991px) {
  .regulatory .col + .col { margin-top: 40px; }
}
@media (min-width: 992px) {
  .regulatory { padding: 80px 140px; }
  .regulatory__text { font-size: 15px; }
  .regulatory__title { font-size: 18px; margin-top: 20px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 60px 24px 24px; background-color: var(--color-dark); color: var(--color-white); }
.site-footer__content { display: flex; flex-direction: column; gap: 40px; }
.site-footer__section { margin-bottom: 40px; }
.site-footer__title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.site-footer__title--bold { font-weight: bold; white-space: normal; }
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: 12px; }
.site-footer__list .site-footer__sub { padding-left: 16px; }
.site-footer__link,
.site-footer__text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-white);
  text-decoration: none;
  font-weight: bold;
  opacity: 1;
  white-space: nowrap;
}
.site-footer__link:hover { opacity: 0.8; }
.site-footer__text { cursor: default; }
.site-footer__text--wrap { white-space: normal; }
.site-footer__right { display: flex; flex-direction: column; align-items: flex-start; margin-top: 40px; }
.site-footer__available {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-white);
  font-weight: bold;
  margin: 0;
}
.site-footer__copyright {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer__copyright-left,
.site-footer__copyright-right {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-white);
  opacity: 0.6;
  text-align: left;
  line-height: 1.6;
}
.site-footer__copyright-left { flex: 0 0 auto; }
.site-footer__copyright-right { flex: 1; }
.site-footer__copyright-right p { margin: 0 0 16px 0; line-height: 1.6; }
.site-footer__copyright-right p:last-child { margin-bottom: 0; }

/* En móvil algunos enlaces largos (nowrap) desbordarían la pantalla */
@media (max-width: 480px) {
  .site-footer__link, .site-footer__title { white-space: normal; }
}

@media (min-width: 992px) {
  .site-footer { padding: 80px 140px 40px; }
  .site-footer__content { flex-direction: row; align-items: flex-start; gap: 60px; }
  .site-footer__section { margin-bottom: 0; margin-right: 60px; }
  .site-footer__right { margin-top: 0; margin-left: auto; align-items: flex-end; }
  .site-footer__copyright { flex-direction: row; gap: 40px; align-items: flex-start; }
  .site-footer__copyright-left { flex: 0 0 300px; }
}

/* ==========================================================================
   Páginas de contenido (legales, ayuda, avisos)
   ========================================================================== */
.page { min-height: 100vh; background-color: var(--color-white); }
.content { padding: 60px 24px; max-width: 800px; margin: 0 auto; }
.content__title {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: bold;
  color: var(--color-text-dark);
  margin-bottom: 32px;
  line-height: 1.3;
}
.content__subtitle {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: bold;
  color: var(--color-text-dark);
  margin-top: 40px;
  margin-bottom: 24px;
}
.content__subtitle--sm { font-size: 20px; margin-top: 32px; margin-bottom: 16px; line-height: 1.3; }
.content__h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: bold;
  color: var(--color-text-dark);
  margin-top: 24px;
  margin-bottom: 8px;
}
.content p,
.content__list {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-dark);
  margin-bottom: 24px;
  line-height: 1.6;
}
.content__list { padding-left: 24px; list-style: disc; }
ol.content__list { list-style: decimal; }
.content__list li { margin-bottom: 16px; }
.content__list--tight li { margin-bottom: 12px; }
.content__list ul { margin-top: 12px; padding-left: 24px; list-style: circle; }
.content a { color: var(--color-text-dark); text-decoration: underline; }
.content a:hover { opacity: 0.8; }
.content .content__key { font-size: 14px; margin-top: 40px; opacity: 0.7; }

/* Avisos y actualizaciones */
.notice { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(20, 13, 56, 0.1); }
.notice:last-child { border-bottom: none; }
.content .notice__date,
.content .notice__label { font-size: 14px; opacity: 0.7; line-height: 1; }
.content .notice__date { margin-bottom: 8px; }
.notice__time { display: block; margin-top: 4px; }
.content .notice__label { margin-bottom: 16px; }
.content .notice__title { font-weight: bold; margin-bottom: 12px; }
.content .notice__content { margin-bottom: 0; }

@media (min-width: 992px) {
  .content { padding: 100px 140px; }
  .content__title { font-size: 48px; margin-bottom: 40px; }
  .content__subtitle { font-size: 32px; margin-top: 50px; margin-bottom: 30px; }
  .content__subtitle--sm { font-size: 24px; margin-top: 40px; margin-bottom: 20px; }
  .content__h3 { font-size: 20px; margin-top: 28px; margin-bottom: 12px; }
  .content p, .content__list { font-size: 18px; margin-bottom: 28px; }
  .content__list { padding-left: 32px; }
  .content .content__key { font-size: 16px; margin-top: 50px; }
  .content .notice__date, .content .notice__label { font-size: 16px; }
  .content .notice__title { margin-bottom: 16px; }
}

/* ==========================================================================
   404
   ========================================================================== */
.not-found { font-family: var(--font-body); }
.not-found h1 { font-family: var(--font-title); font-size: 32px; font-weight: bold; margin-bottom: 16px; }

/* ==========================================================================
   Cuenta confirmada (/confirmed-account)
   ========================================================================== */
.confirmed { text-align: center; }
.confirmed__hero { padding: 24px; background-color: var(--color-light); }
.confirmed__logo { display: block; width: 100px; margin: auto; margin-bottom: 40px; }
.confirmed__icon { display: block; margin: auto; margin-bottom: 30px; }
.confirmed__title {
  font-family: var(--font-title);
  font-weight: bold;
  font-size: 35px;
  line-height: 1.14;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}
.confirmed__subtitle {
  font-family: var(--font-subtitle);
  font-size: 18px;
  line-height: 1.39;
  color: var(--color-text-dark);
  margin-bottom: 24px;
}
.confirmed__content { padding: 24px; background-color: var(--color-white); }
.confirmed__phone { margin-bottom: 37px; width: 100%; }
.confirmed__content-title {
  font-family: var(--font-body);
  margin: 0 26px 30px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  color: var(--color-text-dark);
}
.perk { margin-bottom: 30px; }
.perk__image { margin-bottom: 10px; }
.perk__title,
.perk__body { font-family: var(--font-body); font-size: 14px; color: var(--color-text-dark); }
.perk__title { margin-bottom: 10px; font-weight: bold; }
.confirmed__footer { padding: 48px 24px 20px; background-color: var(--color-dark); }
.confirmed__social {
  font-family: var(--font-body);
  margin-bottom: 20px;
  font-size: 11px;
  letter-spacing: -0.08px;
  color: var(--color-text-secondary);
}
.confirmed__social a { margin: 0 5px; }
.confirmed__social img { vertical-align: middle; }
.confirmed__copyright { font-family: var(--font-body); font-size: 11px; letter-spacing: -0.08px; color: var(--color-text-secondary); }

@media (min-width: 992px) {
  .confirmed__hero { padding: 76px 140px 95px; }
  .confirmed__logo { width: 120px; margin-bottom: 95px; }
  .confirmed__icon { width: 132px; }
  .confirmed__title { margin-bottom: 25px; font-size: 70px; text-align: left; line-height: 1.07; }
  .confirmed__subtitle { text-align: left; }
  .confirmed__content { padding: 79px 140px 0; margin-bottom: -107px; }
  .confirmed__phone { margin-top: -11px; margin-bottom: 0; align-self: flex-end; height: 532px; width: 490px; }
  .confirmed__content-title { margin-left: 0; text-align: left; font-size: 30px; }
  .perk__title, .perk__body { font-size: 16px; margin-left: 22px; text-align: left; }
  .confirmed__footer { text-align: left; padding: 37px 140px 48px; }
  .confirmed__social { margin-bottom: 0; text-align: right; }
}
