/* === Montserrat local (archivos por peso) === */
@font-face {
    font-family: 'Montserrat-Bold';
    src: url(../fonts/Montserrat/static/Montserrat-Bold.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat-SemiBold';
    src: url(../fonts/Montserrat/static/Montserrat-SemiBold.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat-Medium';
    src: url(../fonts/Montserrat/static/Montserrat-Medium.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat-Regular';
    src: url(../fonts/Montserrat/static/Montserrat-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'Jakarta-SemiBold';
    src: url(../fonts/Plus_Jakarta_Sans/static/PlusJakartaSans-SemiBold.ttf) format('truetype');
}

@font-face {
    font-family: 'Jakarta-Regular';
    src: url(../fonts/Plus_Jakarta_Sans/static/PlusJakartaSans-Regular.ttf) format('truetype');
}

/* ================================
   RESET & TIPOGRAFÍA BASE
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.5;
  color: #333;
  font-family: "MontserratLocal", system-ui, sans-serif;
  padding-top: 100px;
}

/* Scroll suave en Safari */
html {
	scroll-behavior: smooth !important;
  -webkit-font-smoothing: antialiased;    /* Safari/WebKit */
  -moz-osx-font-smoothing: grayscale;     /* Firefox en macOS */
  text-rendering: optimizeLegibility;     /* mejor kerning/ligaduras */
}

/* ================================
   HERO
   ================================ */
.hero {
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: 6fr 7fr;
  align-items: start;
  gap: 50px;
  background: #fff;
  padding: 0 30px !important;
}

.hero h1 {
  font-family: "MontserratLocal", system-ui, sans-serif;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0;
  font-style: normal;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #0b1b2b;
}

.hero p {
  margin: .5rem 0;
  font-size: 18px;
  color: #555;
}

.hero button {
  background: #0a7d35;
  color: #fff;
  border: none;
  padding: .8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

mark {
  background: #FCD92A;
  padding: 5px 10px;
  border-radius: 30px;
}

/* Videos hero */
.video-container {
  position: relative;
  width: 100%;
  max-width: 650px;
  height: 492px;
  overflow: hidden;
}

.video-container video {
  position: absolute; inset: 0;
  width: 100%;
  height: 100%; 
  border-radius: 70px; 
  object-fit: cover;
  display: block;
  opacity: 0; transition: opacity 1s ease;
  box-shadow: none !important;
}

.video-container video.active {
  opacity: 1;
}

/* ================================
   CALCULADORA
   ================================ */
.wrap {
  width: 100%;
  padding: 150px 0 !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  background-color: #00000016;
  border-radius: 35px;
  margin-top: -13rem;
  margin-bottom: 80px;
}

.calc {
  background: #fff; 
  border-radius: 68px; 
  padding: 45px 50px;
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 28px;
  box-shadow: 0 16px 40px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.03);
  max-width: 1180px !important;
  margin: 0 auto;
}

@media (max-width: 1050px) {
  .calc {
    grid-template-columns: 1fr
  }

  .result {
    height: 280px;
    padding-bottom: 20px !important;
    border-radius: 50px !important;
  }

  .money {
    top: 52% !important;
    transform: translate(-50%, -50%);
  }

  .muted {
    line-height: 1;
  }
}

@media (max-width: 650px) {
  .services1 h2 {
    font-size: 36px !important;
  }
}

@media (max-width: 480px) {
  .services1 h2 {
    font-size: 32px !important;
  }
}

@media (max-width: 400px) {
  .services1 h2 {
    font-size: 26px !important;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 80px 30px !important;
  }
  
  .calc {
    padding: 20px;
    border-radius: 50px;
  }
  
  .result {
    height: 240px !important;
    border-radius: 40px !important;
    padding-top: 20px !important;
  }
  
  .result h3,
  .result .muted {
    font-size: 22px !important;
  }

  .money {
    font-size: 50px !important;
  }
}

@media (max-width: 550px) {
  .video-container video {
    border-radius: 30px !important;
  }
}

@media (max-width: 480px) {
  .result {
    height: 220px !important;
  }
  
  .result h3,
  .result .muted {
    font-size: 18px !important;
  }

  .money {
    font-size: 40px !important;
  }
}

.left h2 { 
  font-family: "Montserrat-SemiBold", sans-serif;
  font-weight: 510;
  font-size: 30px;
  line-height: 40px;
  letter-spacing: 0;
  font-synthesis: none;
}

.left p.lead {
  margin: 0 0 22px 0;
  color: #6e7a86;
}

.top-row{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
}

/* Asegura que nada lo empuje a la derecha */
.currency {
  margin-left: 0;
  text-align: left;
}

.currency label {
  white-space: nowrap;
  font-family: 'Jakarta-Regular', sans-serif;
  font-size: 16px;
}

.currency select {
  padding: 4px;
  margin-left: 8px;
  border-radius: 8px;
  border: 1px solid black;
  font-family: 'Jakarta-Regular', sans-serif;
  font-size: 16px;
  outline: 0;
  background: white;
  /* color blanco safari */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  font-weight: 600;
  max-width: 170px;
}

.field {
  margin: 22px 0 26px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 0px 12px;
  flex-wrap: wrap;
}

.label-row span.help {
  font-family: 'Jakarta-Regular', sans-serif;
  font-size: 16px;
  color: black;
}

.value-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 18px;
}

.pill-input {
  border: none;
  outline: none;
  background: transparent;
  text-align: center;
  width: 80px;
  max-width: 40vw;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #0b1b2b;
  text-align: right;
}

.value-pill span,
.value-pill input {
  font-family: 'Jakarta-Regular', sans-serif;
  font-size: 16px;
}

.pill-suffix {
  color: #0b1b2b;
  opacity: .85;
  font-weight: 600;
}

/* === Barras de la calculadora (mejoradas) === */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #A8E0FF;
  outline: 0;
  position: relative;
}

input[type="range"]::before {
  content: "";
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 999px;
  background: #0f2a3a;
  width: var(--fill, 0%);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #000000;
  border: 3px solid #000000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  cursor: pointer;
  position: relative;
  z-index: 2;
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
}

.cta { margin-top:20px; }


.btn {
  display: flex;
  width: fit-content;
  text-align: center;
  border: 1px solid #0D2435;
  color: white;
  padding: 14px 22px;
  border-radius: 30px;
  text-decoration: none;
  background: #0D2435;
  font-family: "Jakarta-Medium", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover { 
  background:white; 
  color:#0D2435; 
  border: 1px solid #0D2435;
  transition: background-color 0.2s, color 0.2s;
}

.result{
  background:#fff;
  border-radius:70px;
  padding: 40px 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  text-align:center;
  box-shadow: 0px 5px 3px rgba(0,0,0,0.2);
  position: relative;
}

.result h3,
.result p {
  margin: 0;
}

.result h3,
.result .muted {
  font-family: "Montserrat-Medium", sans-serif;
  font-size: 26px;
}

.money{
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -45%);
  font-family:"Montserrat-Medium",sans-serif;
  font-weight:600;
  font-size:70px;
  line-height:1;
  color:#22CC5E;
}

small.note { display:block; margin-top:10px; color:#6e7a86; }

/* ================================
   TARJETAS SERVICIOS
   ================================ */
.services {
  width: 100%;
  padding: 0 30px !important;
  text-align: center;
}

.services h2 {
  font-family: "Montserrat-SemiBold", sans-serif;
  font-size: 48px;
  color: black;
  line-height: 1.4 !important;
}
/* CONTENEDOR */
.services {
  width: 100%;
  padding: 3rem 5%;
  text-align: center;
}

.services1 {
  margin-bottom: 80px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-items: center;
  margin-top: 50px;
  margin-bottom: 100px !important;
  max-width: 1180px;
  margin: 0 auto;
  gap: 25px;
}

/* TARJETA */
.card {
  background: #fff;
  border-radius: 70px;
  box-shadow: 0 0px 7px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  text-align: center;
  padding: 20px 22px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  max-width: 400px !important;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-video {
  width: 100%;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  padding-top: 100%;
  max-width: 100%;
  min-height: 0;
  height: auto;
  display: block;
}

/* --- Video centrado y ajustado --- */
.card-video video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 60px;
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}

/* --- Texto superior --- */
.card h3 {
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

/* --- CTA inferior --- */
.card-subtitle1{
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 15px;
}

/* CTA inferior (solo esta clase) */
.card-cta2 {
  font-family: "Jakarta-SemiBold", system-ui, sans-serif;
  font-size: 20px;
  color: #E4572E;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  text-decoration: none;
  line-height: 1;
}

.card-cta2:hover {
  text-decoration: underline;
}

/* Icono flecha del CTA (opcional) */
.card-cta2::after{
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: center / contain no-repeat url("../img/flechaNaranja.svg");
  transition: transform .2s ease;
  border: none; border-radius: 0;
  margin-top: 5px;
}
.card:hover .card-cta2::after{
  transform: translateX(3px);
}

/* Botones hero */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 30px;
}

.hero-buttons button {
  border: 1px solid #062638;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 190px;
  height: 60px;
  border-radius: 25px;
  font-family: "Jakarta-Regular", sans-serif;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

button.btn1Inicio {
  background-color: #062638;
}

button.btn1Inicio:hover {
  background-color: white;
  color: #062638;
}

button.btn1Inicio:active {
  text-decoration: underline;
}

button.btn2Inicio {
  background-color: white;
  color: #062638;
}

button.btn2Inicio:hover {
  background-color: #062638;
  color: white;
}

button.btn2Inicio:active {
  text-decoration: underline;
}

button.btn2Inicio span {
  font-family: "Jakarta-Regular", sans-serif;
  font-size: 16px;
}

button.btn2Inicio img {
  filter: brightness(0);
  width: 18px;
  height: 18px;
}

button.btn2Inicio:hover img {
  filter: brightness(0) invert(1);
}

/* ================================
   FOOTER
   ================================ */
.footer {
  background: #072d40;
  color: #fff;
  padding: 2rem 5%;
  font-family: "PlusJakartaLocal", system-ui, sans-serif;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-address h4 {
  margin-bottom: .5rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 1rem 0;
}

.footer-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
}

.footer-logo img {
  max-width: 220px;
}

.footer-contact h5,
.footer-advisor h5 {
  margin-bottom: .5rem;
  font-size: .95rem;
  font-weight: 600;
}

.footer-contact p,
.footer-advisor p {
  margin: .2rem 0;
  font-size: .9rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  font-size: 1.2rem;
}

.footer-social a {
  color: #18c35a;
  text-decoration: none;
  transition: color .3s;
}

.footer-social a:hover {
  color: #fff;
}

/* ================================
   SCROLL IMAGE SECTION
   ================================ */
/* .scroll-image-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 110px 0 110px;
  position: relative;
  height: 460px;
  overflow: visible;
}

.scroll-appear {
  position: absolute;
  top: -440px;
  left: 40%;
  transform: translate(100%, 120px);
  width: 980px;
  max-width: min(950px, 92vw);
} */

.scroll-image-section {
  display: flex;
  justify-content: flex-start;   /* 👉 arranca desde el lado izquierdo */
  align-items: center;
  padding: 110px 0 110px;
  position: relative;
  height: 460px;
  overflow: visible;
}

/* La imagen se ancla al borde izquierdo del viewport */
.scroll-appear {
  position: absolute;
  top: -440px;
  left: 0;                       /* 👉 ya no 40% */
  transform: translate(-120%, 120px); /* estado inicial de respaldo si aún no corre el JS */
  width: 980px;
  max-width: min(950px, 92vw);
}

/* ================================
   RESPONSIVE EXISTENTE
   ================================ */
@media (max-width: 750px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  header { flex-direction: column; gap: 1rem; }
}

/* ================================
   AJUSTES RESPONSIVE (solo donde hace falta)
   ================================ */
@media (max-width:1180px) {
  .wrap {
    padding-left: 60px;
    padding-right: 60px;
  }

  .services h2 {
    font-size: 44px;
    line-height: 58px;
  }
}

@media (max-width:1050px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 0px !important;
    padding: 0 30px !important;
  }

  .scroll-appear {
    height: 250px;
    width: auto;
    top: -150px;
    object-fit: contain;
  }

  .hero .hero-buttons {
    justify-content: center;
  }
  
  .video-container {
    margin: 0 auto;
    height: 500px;
    max-width: 100%;
  }

  .video-container video {
    width: 100% !important;
    height: 100% !important;
  }

  .wrap {
    margin-top: -6rem;
  }

  .scroll-image-section {
    height: 520px;
    padding: 120px 0 120px;
  }

  .hero-left > p {
    max-width: 540px;
    margin: 0 auto;
  }
}