/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utility Classes */
.font-bold {
  font-weight: 700;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: #015343;
  color: #ffffff;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: #013d32;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(1, 83, 67, 0.3);
}

.btn-outline {
  background: transparent;
  color: #22086d;
  border: 2px solid #22086d;
}

.btn-outline:hover {
  background: #22086d;
  color: #ffffff;
}

/* Header */
.header {
  background: transparent;
  padding: 15px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #22086d;
}

.logo-image {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.nav-buttons {
  display: flex;
  gap: 15px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #22086d;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(50deg, #cefde8 0%, #65f0c1 100%);
  backdrop-filter: blur(10px);
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 15px 15px;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-buttons {
  display: grid;
  gap: 15px;
  align-items: center;
}

/* Hero Section */
.hero {
  background: linear-gradient(50deg, #cefde8 0%, #65f0c1 100%);
  padding: 120px 0 80px;
  color: white;
  position: relative;
  overflow: hidden;
  border-radius: 0px 0px 120px 0px;
  align-content: center;
}

.hero-wrapper {
  background: #22086d;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #22086d;
}

.hero-text p {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #22086d;
}

.hero-text p strong {
  font-weight: 700;
}

.hero-image {
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.character {
  width: 405px;
  height: 405px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.character-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.floating-asset {
  position: absolute;
  width: 130px;
  height: 130px;
  animation: float 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.money-icon {
  top: -20px;
  left: -40px;
  animation-delay: 0s;
}

.percent-icon {
  bottom: -20px;
  left: -40px;
  animation-delay: 1s;
}

.chart-icon {
  top: -20px;
  right: -40px;
  animation-delay: 2s;
}

.floating-asset-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.asset-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

/* Belt Section */
.belt-section {
  background: #22086d;
  padding: 40px 0;
  border-radius: 0px 0px 42px 0px;
  position: relative;
}

.belt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.belt-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.belt-icon {
  color: white;
  font-size: 24px;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.belt-icon-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.belt-item p {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin: 0;
  line-height: 1.4;
}

/* Content Section */
.content-section {
  padding: 80px 0;
  background: white;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.content-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  overflow: hidden;
}

.content-main-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 15px;
  max-width: 100%;
}

.content-main-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #22086d;
  line-height: 1.2;
  margin-bottom: 30px;
}

.content-paragraph {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #262626;
  line-height: 1.6;
  margin-bottom: 40px;
}

.content-btn {
  background: #015343;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.content-btn:hover {
  background: #013d32;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(1, 83, 67, 0.3);
}

/* Steps Section */
.steps-section {
  padding: 80px 0;
  background: #ffffff;
}

.steps-title {
  text-align: center;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 60px;
  color: #22086d;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.step-item {
  text-align: center;
  padding: 30px 20px;
}

.step-icon {
  color: #22086d;
  font-size: 48px;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.step-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #22086d;
}

.step-description {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #262626;
  margin: 0;
}

.steps-cta {
  text-align: center;
  margin-top: 50px;
}

/* Target Section */
.target-section {
  background: #22086d;
  border-radius: 120px 0px 42px 0px;
  padding: 80px 0;
  color: white;
  position: relative;
  z-index: 2;
}

.target-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.target-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #ffffff;
  margin-bottom: 30px;
}

.target-description {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 30px;
}

.target-description p {
  margin: 0;
  color: #ffffff;
}

.app-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.app-btn {
  background: white;
  color: #333;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.app-btn:hover {
  background: #00d4aa;
  color: white;
}

.target-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  overflow: hidden;
}

.target-main-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(45deg, #cefde8 0%, #65f0c1 100%);
  padding: 80px 0 140px;
  text-align: center;
  margin-top: -60px;
  position: relative;
  z-index: 1;
  padding-top: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
}

.cta-section h2 {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #22086d;
  margin-bottom: 20px;
}

.cta-section p {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 28px;
  color: #22086d;
  margin-bottom: 40px;
  text-align: center;
  max-width: 600px;
}

/* Form Section */
.form-section {
  background: #ffffff;
  border-radius: 42px 42px 0px 0px;
  padding: 80px 0;
  margin-top: -60px;
  position: relative;
  z-index: 3;
  padding-top: 80px;
}

.form-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-companies {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #03c690;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.form-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #22086d;
  line-height: 1.2;
  margin-bottom: 20px;
}

.form-description {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #262626;
  line-height: 1.6;
  margin-bottom: 0;
}

.contact-form {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  text-align: left;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Open Sans", sans-serif;
  background: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder {
  color: #9ca3af;
  font-family: "Open Sans", sans-serif;
}

.form-help {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #6b7280;
  font-family: "Open Sans", sans-serif;
  line-height: 1.4;
  text-align: left;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #22086d;
  box-shadow: 0 0 0 3px rgba(34, 8, 109, 0.1);
}

.btn-submit {
  background: #015343;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-submit:hover {
  background: #013d32;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(1, 83, 67, 0.3);
}

/* Footer */
.footer {
  background: #ffffff;
  color: #262626;
  padding: 60px 0 30px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background-color: #b0b0b0;
}

.footer-content {
  display: inline-flex;
  gap: 62px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
}

.footer-logo-image {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.footer-services h3,
.footer-contact h3 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #262626;
  margin-bottom: 20px;
}

.footer-services ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-services li,
.footer-contact li {
  margin-bottom: 12px;
}

.footer-services a,
.footer-contact a {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #262626;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 4px 0;
  min-height: 44px;
  line-height: 1.4;
}

.footer-services a:hover,
.footer-services a:active,
.footer-contact a:hover,
.footer-contact a:active {
  color: #65f0c1;
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
  color: #9ca3af;
}

.footer-bottom p {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #262626;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-content {
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .content-layout,
  .target-content {
    gap: 40px;
  }

  .form-content {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .header {
    position: relative;
    background: linear-gradient(50deg, #cefde8 0%, #65f0c1 100%);
    padding: 20px 0;
  }

  .nav-buttons {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    font-size: 28px;
    padding: 12px;
  }

  .hero {
    padding: 80px 0 60px;
    border-radius: 0px 0px 80px 0px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: left;
  }

  .hero-text p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .hero-text .btn-primary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

  .belt-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .belt-item {
    justify-content: center;
    text-align: center;
    padding: 15px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .target-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .app-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }

  .app-btn {
    flex: 1;
    max-width: 140px;
    padding: 12px 8px;
    font-size: 13px;
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 25px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 14px;
    text-align: center;
  }

  .hero-text p {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 95%;
    text-align: center;
  }

  .character {
    width: 220px;
    height: 220px;
    margin-left: auto;
    margin-right: auto;
  }

  .floating-asset {
    width: 60px;
    height: 60px;
  }

  .steps-title {
    font-size: 32px;
    margin-bottom: 35px;
    padding: 0 15px;
  }

  .step-item {
    padding: 20px 15px;
  }

  .step-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .step-image {
    width: 80px;
    height: 80px;
  }

  .step-title {
    font-size: 24px;
    margin-bottom: 8px;
    line-height: 1.2;
  }

  .step-description {
    font-size: 16px;
    line-height: 1.3;
    padding: 0;
  }

  .content-main-title,
  .target-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .app-buttons {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }

  .app-btn {
    width: 100%;
    max-width: 200px;
    padding: 12px 16px;
    font-size: 14px;
    justify-content: center;
  }
}

/* =========================================================
   OVERRIDES SOLO TABLET/MOBILE (desktop intacto)
   ========================================================= */
/* ---------- MOBILE (Extra fino pantallas angostas) ---------- */
@media (max-width: 360px){
  .hero .floating-asset{ width: 78px; height: 78px; }
  .hero .money-icon   { top: -10%; left: 4%; }
  .hero .percent-icon { bottom: -14%; left: 12%; }
  .hero .chart-icon   { top: 6%; right: -2%; }
}

/* ---------- MOBILE (<= 767px) ---------- */
@media (max-width: 767px){

  /* Hero*/
  .hero-content{ grid-template-columns:1fr; gap:40px; text-align:center; }
  .hero-text .btn-primary{ width:100%; max-width:300px; margin:0 auto; display:block; }
  .hero{ border-radius:0 0 80px 0; }
  .hero .floating-asset{ width: 90px; height: 90px; } /* tamaño un poco menor */
  .hero .money-icon   { top: -6%; left: 6%; }
  .hero .percent-icon { bottom: -15%; left: 13%; }
  .hero .chart-icon   { top: 8%; right: -3%; }

  /* Belt */
  .belt .belt-items{ gap: 8px 12px; }
  .belt .belt-item{ gap: 8px; }

  /* Target */
  .target-content{
    grid-template-columns:1fr;
    gap:32px;
    justify-items:center;
    text-align:center;
  }
  .target-title, .target-description{ text-align:center; }
  .app-buttons{ justify-content:center; flex-wrap:wrap; }
  .target-section{ border-radius: 80px 0 28px 0; }
  .target-title{ font-size: 32px; line-height: 1.15; }
  .target-description{ font-size: 16px; line-height: 1.6; }

  /* CTA */
  .cta-section .cta-title,
  .cta-section h2{
    font-size: 32px;
    line-height: 1.15;
  }
  .cta-section .cta-description,
  .cta-section p{
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Form */
  .form-section .form-title{ font-size: 32px; line-height: 1.15; }
  .form-section .form-description{ font-size: 16px; line-height: 1.6; }
  .form-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
  }
  .btn-submit{
    display: block;
    width: 100%;
  }
  .form-row .btn-submit{
    grid-column: 1 / -1;
  }
}

  /* Footer */
  .footer-content{
    grid-template-columns:1fr;
    gap:32px;
    text-align:left;
  }
}

/* ---------- TABLET (768px – 1023px) ---------- */
@media (min-width:768px) and (max-width:1023px){

  /* Hero */
  .hero .floating-elements{ position:absolute; inset:0; pointer-events:none; }
  .hero .floating-asset{ width:110px; height:110px; }
  .hero .money-icon   { top:-16%;  left:22%; }
  .hero .percent-icon { bottom:8%; left:12%; }
  .hero .chart-icon   { top:-4%; right:-2%; }
  .hero{ border-radius:0 0 140px 0; }
  .hero-content{ grid-template-columns:1fr 1fr; gap:48px; }

  /* Belt */
  .belt .belt-items{
    display:flex; flex-wrap:nowrap; justify-content:space-between;
    align-items:center; gap:2px; text-align:left;
  }
  .belt .belt-item{ display:flex; align-items:center; gap:10px; }

  /* Target: 1 columna centrado */
  .target-content{
    grid-template-columns:1fr;
    gap:40px;
    justify-items:center;
    text-align:center;
  }
  .target-title, .target-description{ text-align:center; }
  .app-buttons{ justify-content:center; }

  /* Form: 2 columnas */
  .form-content{ grid-template-columns:1fr 1fr; gap:48px; text-align:left; align-items:start; }
  .form-row{ grid-template-columns:1fr 1fr; gap:16px 20px; }
  .form-group.full, .btn-submit{ grid-column:1 / -1; }

  /* Footer: 3 columnas */
  .footer-content{
    grid-template-columns:1fr 1fr 1fr;
    gap:48px;
    text-align:left;
  }
}

/* Evita saltos de altura del header/barras en móviles (Android/iOS) */
.hero{
  /* fallback general */
  min-height: 100vh;
  /* navegadores modernos */
  min-height: 100svh;  /* small viewport height */
  min-height: 100dvh;  /* dynamic viewport height */
}

/* Ajuste extra para anchos muy angostos (p.ej. 360px) */
@media (max-width: 360px){
  .hero .floating-asset{ width: 78px; height: 78px; }
  .hero .money-icon   { top: 12%; left: 22%; }
  .hero .percent-icon { bottom: 12%; left: 26%; }
  .hero .chart-icon   { top: 14%; right: 18%; }
}

/* ===== Anti-scroll horizontal para móviles angostos ===== */
* { box-sizing: border-box; }
img, svg, video { max-width: 100%; height: auto; display: block; }

@media (max-width: 380px){
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  /* Secciones no excedan 100vw */
  .container,
  .hero, .belt, .target-section, .cta-section, .form-section, .footer {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  /* Flex/Grid: encojer hijos */
  .belt .belt-items,
  .belt .belt-item,
  .target-content,
  .cta-section .container,
  .form-content,
  .form-row {
    min-width: 0;
  }

  .belt .belt-items { flex-wrap: wrap; }

  .btn-primary,
  .btn-submit,
  input, select, textarea {
    max-width: 100%;
  }
}

/* Estados de validación y estado del formulario */
.input-invalid{
  border-color:#d93025;
  box-shadow:0 0 0 3px rgba(217,48,37,.15);
}
.error-msg{
  margin-top:4px;
  font-size:14px;
  color:#d93025;
}
.form-status{
  margin-top:14px;
  font-size:14px;
}
.form-status--success{ color:#0f7b3a; }
.form-status--error{ color:#d93025; }
