/* Tipografia */
@font-face {
    font-family: "Substance W00 Bold";
    src: url("https://db.onlinewebfonts.com/t/74a63d4eec6b8edbaf0ab36e3e66ce37.eot");
    src: url("https://db.onlinewebfonts.com/t/74a63d4eec6b8edbaf0ab36e3e66ce37.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/74a63d4eec6b8edbaf0ab36e3e66ce37.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/74a63d4eec6b8edbaf0ab36e3e66ce37.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/74a63d4eec6b8edbaf0ab36e3e66ce37.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/74a63d4eec6b8edbaf0ab36e3e66ce37.svg#Substance W00 Bold")format("svg");
}

@font-face {
    font-family: "Substance W00 Regular";
    src: url("https://db.onlinewebfonts.com/t/034d937e9e24e7963f4f4b13ca0ca9e4.eot");
    src: url("https://db.onlinewebfonts.com/t/034d937e9e24e7963f4f4b13ca0ca9e4.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/034d937e9e24e7963f4f4b13ca0ca9e4.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/034d937e9e24e7963f4f4b13ca0ca9e4.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/034d937e9e24e7963f4f4b13ca0ca9e4.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/034d937e9e24e7963f4f4b13ca0ca9e4.svg#Substance W00 Regular")format("svg");
}

/* Estilos base */
body {
  margin: 0;
  font-family: 'Substance W00 Bold';
  background-color: #fbfaf9;
  color: #062145;
  overflow-x: hidden;
}

.hero {
  position: relative;
  padding: 2.5rem 1rem;
  text-align: center;
  overflow: hidden;
  background-image: url("assets/background-hero-section.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-inner {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Logo */
.logo {
  width: 170px;
  margin: 2rem auto;
  display: block;
}

.dolar-escondido{
  display: none;
}

/* Imagen principal de billete */
.dollar-main {
  width: 100%;
  max-width: 320px;
  margin: 1rem auto;
  display: block;
}

/* Título y texto */
h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 1rem 0;
  line-height: 100%;
}

.sub {
    font-size: 1rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: 'Substance W00 Regular';
    padding: 0rem 1.5rem;
}

/* Formulario */
.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0rem 2.5rem;
}

input[type="email"] {
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  max-width: 92%;
  font-family: 'Substance W00 Regular';
  outline: none; /* <--- esto es esencial */
}

input[type="email"]:focus {
  border-color: #c8ecdb; /* Verde principal */
  box-shadow: 0 0 0 3px rgba(13, 170, 96, 0.1); /* Glow sutil */
  outline: none; /* <--- esto es esencial */
}

button {
  padding: 0.7rem 0.9rem;
    font-size: 1rem;
    background-color: #0daa60;
    color: white;
    border: none;
    border-radius: 6px;
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Substance W00 Regular';
}

button:hover {
  background-color: #0a9655;
}

.success-msg {
  color: #0daa60;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Esquinas de billetes */
.corner {
  position: absolute;
  width: 120px;
  opacity: 0.7;
  z-index: 1;
}

.dollar-top-left {
  top: -20px;
  left: -20px;
  transform: rotate(-15deg);
}

.dollar-bottom-right {
  bottom: -20px;
  right: -20px;
  transform: rotate(15deg);
}

/* Sección Qué es Dolarya */

.value {
  background-color: #ffffff;
  padding: 3rem 0rem;
  text-align: center;
}

.value-container {
  max-width: 900px;
  margin: 0 auto;
}

.value h2 {
  font-size: 1.8rem;
  font-family: 'Substance W00 Bold';
  margin-bottom: 2rem;
}

.value .sinopsis{
  margin-bottom: 1rem;
}

.value p {
  font-size: 1rem;
  font-family: 'Substance W00 Regular';
  color: #333;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.value-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.value-item {
  padding: 1rem;
}

.value-item img {
  width: 60%;
  margin-bottom: 0rem;
}

.value-item h3 {
  font-size: 1.3rem;
  font-family: 'Substance W00 Bold';
  margin-bottom: 0.5rem;
}

.subtitulos-que-es{
  margin-top: 0rem;
}

.value-item p {
  font-size: 0.95rem;
  font-family: 'Substance W00 Regular';
  color: #666;
}

.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

.swiper .swiper-slide {
  background: #fefefe;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  text-align: center;
  width: 73%;
  max-width: 300px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.swiper-pagination{
  bottom: var(--swiper-pagination-bottom, 30px) !important;
}

.value-swiper {
  padding-bottom: 2rem;
}

/* Cómo funciona */

.how-it-works {
  background-color: #ffffff;
  padding: 2rem 0rem;
}

.how-container {
  max-width: 1200px;
  margin: 0 auto;
}

.how-grid {
  display: flex;
  flex-direction: column-reverse;
}

.mockup-container {
  display: flex;
  justify-content: center;
}

.mockup-img {
  max-width: 100%;
}

.steps-container {
  padding: 2rem;
}

.steps{
  display: flex;
  flex-direction: column;
  gap: 1.5rem; 
}

.how-title {
  font-size: 1.8rem;
  font-family: 'Substance W00 Bold';
  margin-bottom: 0rem;
  margin-top: 0;
}

.how-sub {
  font-size: 1rem;
  color: #333;
  font-family: 'Substance W00 Regular';
  margin-bottom: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step h3 {
  font-family: 'Substance W00 Bold';
  font-size: 1.1rem;
  margin: 0;
}

.step p {
  font-size: 0.95rem;
  color: #555;
  margin: 0.3rem 0 0;
  font-family: 'Substance W00 Regular';
}

.tick {
  font-size: 1rem;
  color: #ffffff;
  background: rgba(13, 170, 96, 1);
  border-radius: 50%;
  padding: 0.4rem 0.5rem;
  line-height: 1;
  font-weight: bold;
}

/* Banner de AYP Rentabilidad */

  .earn-banner {
  background-color: #062145;
  color: white;
  padding: 2rem 1rem;
}

.earn-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1rem;
}

.earn-image {
  flex: 2;
  max-width: 25%;
}

.img-earn-banner {
  width: 100%;
  height: auto;
}

.earn-text {
  flex: 2;
}

.earn-text h2 {
  font-size: 1.8rem;
  font-family: 'Substance W00 Bold';
  margin-bottom: 1rem;
  margin-top: 0;
}

.earn-text h4 {
  font-size: 1rem;
  font-family: 'Substance W00 Regular';
  font-weight: 400;
  margin-bottom: 1rem;
  margin-top: 0;
}

.cta-btn {
  background-color: #0daa60;
  color: white;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  font-family: 'Substance W00 Regular';
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background-color: #0a9655;
}

.arrow {
  font-size: 1.2rem;
  line-height: 1;
}
@media (max-width: 768px) {
  .earn-container {
    flex-direction: row;
  }

  .earn-image {
    max-width: 100%;
  }

  .earn-text h2 {
    font-size: 1.5rem;
  }

  .earn-text h4 {
    font-size: 0.95rem;
  }

  .cta-btn {
    justify-content: center;
    padding: 0.7rem 0.9rem;
  }
}

/* Sección de Confianza */

.trust {
  background: #ffffff;
  padding: 0rem 0rem 3rem 0rem;
  text-align: center;
}

.trust-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

.trust h2 {
  font-size: 1.8rem;
  font-family: 'Substance W00 Bold';
  margin-bottom: 1rem;
  margin-bottom: 1rem;
  margin-top: 0;
  padding: 0rem 3rem;
}

.trust-desc {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-family: 'Substance W00 Regular';
  padding: 0rem 2rem;
}

.trust-icons {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: hidden;
  padding: 1rem;
}

.trust-superior{
  display: flex;
  width: fit-content;
  gap: 1rem;
}

.trust-item{
  width: 45vw;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #dedede;
}

.trust-item i {
  font-size: 2rem;
  color: #0daa60;
  margin-bottom: 1rem;
}

.trust-item h4 {
  font-size: 1.1rem;
  font-family: 'Substance W00 Bold';
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.trust-item p {
  font-size: 0.95rem;
  font-family: 'Substance W00 Regular';
  color: #444;
  margin: 0.5rem 0rem;
}


.endorsement {
  margin-top: 4rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.endorsement-avatar {
  width: 50%;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0rem;
}

.endorsement blockquote {
  font-size: 1rem;
  font-style: italic;
  color: #333;
  line-height: 1.6;
  font-family: 'Substance W00 Regular';
  margin-bottom: 1rem;
}

.endorsement-name {
  font-size: 0.9rem;
  font-weight: bold;
  color: #0daa60;
}

/* Aclaración ficticia opcional */
.endorsement-name::after {
  content: ' *';
  font-weight: normal;
  color: #aaa;
}

#calculadora-png{
  position: absolute;
  z-index: 0;
  left: -30%;
  width: 63%;
  transform: rotate(-74deg) translate(34px, -86px);
  filter: drop-shadow(-4px 5px 4px rgba(0, 0, 0, 0.32));
}

#lapiz-png{
  position: absolute;
  z-index: 0;
  width: 63%;
  right: 0;
  transform: rotate(49deg) translate(109px, -70px);
  filter: drop-shadow(4px 1px 3px rgba(0, 0, 0, 0.32));
}

/* Confianza bottom */
.cta-final {
  background-color: #0daa60;
  color: white;
  text-align: center;
  padding: 3rem 1.5rem;
}

.cta-container-superior{
  display: inherit;
}

.cta-final h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 100%;
}

.cta-final p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-family: 'Substance W00 Regular';
}

.cta-final .form input[type="email"],
.cta-final .form button {
  width: 100%;
  max-width: 320px;
}

#bikini-png{
  width: 100%;
}

/* Confianza */

.form-bottom{
  display: flex;
  justify-content: start;
  max-width: 100%;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0.5rem;
}

.input-cta-btm{
  max-width: 100% !important;
  width: -webkit-fill-available !important;
  margin-bottom: 0.5rem;
}

.boton-btm{
  max-width: 100% !important;
  width: -webkit-fill-available !important;
  margin-left: 0;
  background-color: #062145;
  color: white;
  margin-bottom: 0.5rem;
}

.boton-btm:hover{
  background-color: #031834;
}

/* Footer final contact */
.footer {
  background-color: #062145;
  color: #fbfaf9;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.footer a {
  color: #0daa60;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer small {
  display: block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #ccc;
}

/* Aceptas nuestra política */
.form-consent {
  font-size: 0.85rem;
  color: #444;
  font-family: 'Substance W00 Regular';
  margin-top: 0rem;
  margin-bottom: 0rem;
  max-width: 300px;
  text-align: left;
}

.form-consent-bottom {
  font-size: 0.85rem;
  color: #444;
  font-family: 'Substance W00 Regular';
  margin-top: 0rem;
  max-width: 300px;
  text-align: left;
  margin-bottom: 0.5rem;
}

.form-consent input[type="checkbox"] {
  margin-right: 0.5rem;
}

.form-consent a {
  color: #0daa60;
  text-decoration: underline;
}

.form-consent-bottom a {
  color: #062145;
  text-decoration: underline;
}

.form-bottom .form-consent{
  margin-bottom: 0;
}

/* Toast estilo */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  background-color: #0daa60;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}


/* Solo se aplica hasta 767px */
@media (min-width: 767px) {
  .hero {
    position: relative;
    min-height: 100vh; /* 👈 esto fuerza a ocupar todo el alto de pantalla */
    display: flex; /* 👈 centrado vertical */
    justify-content: center;
    align-items: center;
    padding: 0rem 1rem;
    overflow: hidden;
    text-align: center;
    background-image: url("assets/background-hero-section.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fbfaf9;
  }

  .hero-inner {
    width: 100%;
    max-width: 700px;
    padding: 1rem;
    position: relative;
    z-index: 2;
    display: grid;
    justify-content: center;
    justify-items: center;
  }
  /* Logo */
  .logo {
    margin: 0rem auto;
  }

  h1 {
    font-size: 2.5rem;
  }

  .sub {
    font-size: 1.1rem;
  }

  .form {
    flex-direction: row;
    justify-content: center;
  }

  input[type="email"], button {
    max-width: none;
    width: auto;
  }

  button {
    margin-left: 0.5rem;
    white-space: nowrap;
  }
  .dolar-escondido{
    width: 400px;
    display: block;
  }

  /* Qué es dolar ya */
  .value {
    background-color: #ffffff;
    padding: 3rem 1.5rem;
    text-align: center;
  }
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .value h2 {
    font-size: 2rem;
  }

  /* Iconos de qué es dolarYa */
  .sinopsis{
    padding: 0 4rem !important;
    margin-bottom: 1rem !important;
  }

  .value-item img {
    width: 85%;
    margin-bottom: 0rem;
  }

  .subtitulos-que-es{
    font-size: 1.3rem !important;
    margin-top: 0rem;
  }

  /* Por defecto, ocultamos swiper en desktop */
  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* Cómo funcina */
  .how-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .mockup-container {
    flex: 1;
    justify-content: center;
  }

  .steps-container {
    flex: 1;
    padding: 2rem;
  }

  .how-title {
    font-size: 2rem;
  }

  /* earn banner */
  .earn-container{
    gap: 2rem;
  }
  .earn-banner {
    padding: 2rem 3rem;
  }

  .earn-text h2 {
    font-size: 2rem;
  }

  .earn-text h4 {
    font-size: 1.20rem;
  }

  .cta-btn {
    font-size: 1.20rem;
    margin-left: 0;
  }

  /* Confianza */
  #calculadora-png {
    position: absolute;
    z-index: 0;
    left: -21%;
    width: 45%;
    transform: rotate(-74deg) translate(14px, -109px);
    filter: drop-shadow(-4px 5px 4px rgba(0, 0, 0, 0.32));
  }

  #lapiz-png {
    position: absolute;
    z-index: 0;
    width: 47%;
    right: 0;
    transform: rotate(49deg) translate(154px, -116px);
    filter: drop-shadow(4px 1px 3px rgba(0, 0, 0, 0.32));
  }

  .endorsement {
    margin-top: 4rem;
    text-align: center;
    max-width: 582px;
    margin-left: auto;
    margin-right: auto;
  }

  .endorsement-avatar {
    width: 39%;
    object-fit: cover;
    margin-bottom: 0rem;
  }

  .endorsement blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #333;
    line-height: 1.6;
    font-family: 'Substance W00 Regular';
    margin-bottom: 1rem;
  }

  .endorsement-name {
    font-size: 1rem;
    font-weight: bold;
    color: #0daa60;
  }

  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background-color: #a6a6a6 transparent;
    border-radius: 4px;
  }

  /* Firefox */
  * {
    scrollbar-width: thin;
    scrollbar-color: #725151 transparent;
  }

  /* Call to action final */

  .cta-final {
    background-color: #0daa60;
    color: white;
    text-align: center;
    padding: 3rem 1.5rem;
    justify-items: center;
  }

  .cta-container-superior{
    display: flex;
    width: 80%;
  }

  .cta-container{
    text-align: left;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
  }

  .cta-subcontainer{
    width: 100%;
  }

  .cta-final h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 0;
  }

  .cta-final p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Substance W00 Regular';
  }

  .form-bottom{
    display: flex;
    justify-content: start;
    max-width: 100%;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0rem;
  }

  .input-cta-btm{
    max-width: 100% !important;
    width: -webkit-fill-available !important;
    margin-bottom: 0.5rem;
  }

  .boton-btm{
    max-width: 100% !important;
    width: -webkit-fill-available !important;
    margin-left: 0;
    background-color: #062145;
    color: white;
  }

  .boton-btm:hover{
    background-color: #031834;
  }

  .caja-bikini{
    width: 50%;
    text-align: left;
  }

  #bikini-png{
    width: 100%;
  }
}

/* Solo se aplica hasta 1024px */
@media (min-width: 1024px) {
  .hero {
    position: relative;
    min-height: 100vh; /* 👈 esto fuerza a ocupar todo el alto de pantalla */
    display: flex; /* 👈 centrado vertical */
    justify-content: center;
    align-items: center;
    padding: 0rem 1rem;
    overflow: hidden;
    text-align: center;
    background-image: url("assets/background-money_1920.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fbfaf9;
  }

  .hero-inner {
    width: 100%;
    max-width: 700px;
    padding: 1rem;
    position: relative;
    z-index: 2;
  }
  /* Logo */
  .logo {
    margin: 0rem auto;
  }

  h1 {
    font-size: 2.5rem;
  }

  .sub {
    font-size: 1.1rem;
  }

  .form {
    /*flex-direction: row;
    justify-content: center;*/
    display: flow;
  }

  input[type="email"], button {
    max-width: none;
    width: auto;
  }

  button {
    white-space: nowrap;
  }
  .dolar-escondido{
    width: 400px;
    display: block;
  }

  /* Iconos de qué es dolarYa */
  .sinopsis{
    padding: 0 4rem !important;
    margin-bottom: 1rem !important;
  }

  .value-container {
    max-width: 1024px;
    margin: 0 auto;
  }

  .value-item img {
    width: 80%;
    margin-bottom: 0rem;
  }

  .subtitulos-que-es{
    margin-top: 0rem;
  }

  /* Como funciona */
  .how-container {
    max-width: 1300px;
    margin: 0 auto;
  }

  .how-title {
    font-size: 2.25rem 36px;
  }

  .step h3 {
    font-family: 'Substance W00 Bold';
    font-size: 1.3rem;
    margin: 0;
  }

  .mockup-img {
    max-width: 90%;
  }

  .mockup-container {
    flex: 1.75;
    justify-content: center;
  }

  /* Earn Banner */

  .earn-container {
    gap: 3rem;
  }

  .earn-text h2 {
    font-size: 2.25rem;
  }

  .earn-text h4 {
    font-size: 1.20rem;
    width: 90%;
  }

  /* Confianza */

  .trust-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .trust-icons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: inherit;
    padding: 1rem;
    width: 60%;
    align-items: center;
  }

  .trust-superior {
    display: flex;
    width: fit-content;
    gap: 2rem;
  }

  .trust-item {
    width: 13vw;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dedede;
  }
  
  #calculadora-png {
    position: absolute;
    z-index: 0;
    left: 0;
    width: 19vw;
    transform: rotate(-74deg) translate(-13vw, 13vh);
    filter: drop-shadow(-2px 3px 3px rgba(0, 0, 0, 0.32));
  }

  #lapiz-png {
    position: absolute;
    z-index: 0;
    width: 23vw;
    right: 0;
    transform: rotate(41deg) translate(11vw, 26vh);
    filter: drop-shadow(2px 0px 3px rgba(0, 0, 0, 0.32));
  }

  .endorsement {
    margin-top: 4rem;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  .endorsement-avatar {
    width: 28%;
    object-fit: cover;
    margin-bottom: 0rem;
  }

  .endorsement blockquote{
    font-size: 1rem;
    font-style: italic;
    color: #333;
    line-height: 1.6;
    font-family: 'Substance W00 Regular';
    margin-bottom: 1rem;
    margin-right: 10rem;
    margin-left: 10rem;
  }

  /* Call to action bottom */

  .cta-subcontainer {
    width: 100%;
  }

  #bikini-png {
    width: 100%;
  }

  /* Consentimiento de Form */

  .form-consent {
    margin-top: 0.25rem;
    margin-bottom: 0rem;
  }
}
