/* --- Custom styles for calculator-section intro-section --- */

html, body {
    font-family: "Apertura", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    scroll-behavior: smooth;
}

/* Typography */
.titulo {
    text-align: center;
    color: #007199;
    font-size: 2em;
    margin: 0.67em 0;
    font-weight: bold;
    unicode-bidi: isolate;
}

.titulo_info {
    text-align: center;
    color: white;
    margin-top:-100px;
    margin-bottom: 25px;
    font-size: 3em;
    font-weight: bold;
    unicode-bidi: isolate;
    line-height: 1.3;
}

.subtitulo {
    display: block;
    font-size: 1.5rem;
    line-height: 1.6;
    margin: 0 auto; 
    margin-bottom: 3.5em;
    font-weight: bold;
    text-align: center;
    max-width: 100%;
    width:100%;
    padding: 0 2rem;
    position: relative;
    z-index: 0;
}

.subtitulo_info {
    display: block;
    font-size: 1.5rem;
    line-height: 1.6;
    margin: 0 auto; 
    margin-top:0px;
    margin-bottom: 25px;
    font-weight: bold;
    text-align: center;
    max-width: 100%;
    width:100%;
    padding: 0 2rem;
    position: relative;
}

.intro-section_info {
    background: #0081AF;
    color: white;
    text-align: center;
    padding-top:0px ;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-in;
    min-height: 66vh;
    max-height: 66vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    font-size: 1.1rem;
    margin-bottom: -13rem;
}

.t_secundario{
    display: block;
    color: #007199;
    font-size: 1rem;
    line-height: 1.2;
    margin: 0.83em auto; 
    margin-bottom: 3.5em;
    text-align: center;
    max-width: 90%;
    padding: 0 2rem;
    position: relative;
}

.contenido {
    display: block;
    unicode-bidi: isolate;
    line-height: normal;
}

.txtPaso {
    display: block;
    margin: 1.33em 0;
    font-weight: bold;
    unicode-bidi: isolate;
    line-height: normal;
}

.p_info {
    display: block;
    margin: 1em 0;
    font-size: 19px;
    line-height: normal;
}

.video-container1 {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 85%;
  margin: 0rem  auto -5rem;
}

.video-container1 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}



.info-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  color: white;
  background-color: #2bbfe2;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  margin-top: 2rem;
}

.info-button:hover {
  background-color: #0081AF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.info-button:active {
  transform: scale(0.98);
}

.intro-section {
    background: #0081AF;
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-in;
    min-height: 66vh;
    max-height: 66vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    font-size: 1.1rem;
    margin-bottom: -13rem;
}

@media (max-width: 900px) {
    .intro-section {
        padding: 3rem 1rem;
        min-height: 50vh;
        max-height: none;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .intro-section {
        padding: 2rem 0.5rem;
        min-height: 35vh;
        font-size: 0.95rem;
    }
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/subtle-dots.png');
    opacity: 0.1;
}

.intro-section .titulo {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: white;
    animation: slideInDown 1s ease-out;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    margin-top: 2rem;
}



#container-two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}


#container-checklist {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 1rem;
}

#container-checklist ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

#container-checklist ul li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.container_general_creditos{
    margin-bottom: -30px;
    border-color: red;
    border-radius: 1px;
}

.calculator-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 90%;
    margin: 0 auto 50px auto; /* Reduce bottom margin to bring it closer */
    border-radius: 10px;
    background: #dae6f0;
    box-shadow: 0 4px 16px rgba(21,134,191,0.08);
    padding: 0;
}

.calculator-form {
    background-color: #dae6f0;
    color: #0171b3;
    padding: 40px 100px;      /* Increase horizontal padding */
    border-radius: 10px;
    border-style: solid;
    border-color: #2cc0e2;
    width: 700px;            /* Set a fixed width, adjust as needed */
    max-width: 700px;        /* Prevent growing with padding */
    font-weight: bold;
    box-sizing: border-box;  /* Ensures padding doesn't increase outer size */
}

.calculator-form label {
    font-size: 16px;
    color: #0171b3;
    margin-bottom: 10px;
    display: block;
}

.calculator-form button {
    background-color: #0171b3;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 24px auto 0 auto;
}

.calculator-result {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    border-style: solid;
border-color: #2cc0e2;
}

.calculator-result h2 {
    font-size: 2.5rem;
    color: #0171b3;
    text-transform: none;
    margin-bottom: 10px;
}
.result-details {
    text-align: center;
    padding: 1px;
    margin-top: 20px;
    background-color: #f3f3fa;
    min-width: 75%;
    max-width: 90%;
    margin: 0 auto;
    border-radius: 10px;
}
.result-details p {
    font-size: 15px;
    color: #0171b3;
    margin: 15px 5px; /* Increased vertical space between results */
}

.result-circle {
    font-size: 2rem;
    font-weight: bold;
    color: #000000;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background-color: #e6f7fa;
    margin: 0 auto 20px;
    border: 23px solid #2cc0e2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.down-payment-input {
    display: flex;
    align-items: center;
    gap: 10px;
}
.down-payment-input input[type="range"] {
    width: 50%;
    margin: 0;
}
.down-payment-input #down-payment-output {
    font-size: 16px;
    color: #0171b3;
}

.calculator-footer {
    text-align: center;
    margin-top: 20px;
    color: #fff;
    background-color: #002248;
    padding: 10px;
    max-width: 70%;
    margin: 20px auto;
    border-radius: 5px;
}
.calculator-footer p {
    margin: 0;
    font-size: 14px;
}
.calculator-form .view-rates {
    display: inline-block;
    text-align: right ;
    text-decoration: none;      /* Remove underline */
    color: #012940;             /* Change color */
    font-weight: bold;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}
.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
}
.bank-logo {
    width: 100px;
    height: auto;
}
.footer-text p {
    margin: 0;
    font-size: 16px;
}
.footer-text strong {
    color: #2bbfe2;
}

.foto_footer_calc {
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: #0000ff; /* Optional: keep your background */
}

.foto_footer_calc img {
    width: 100%;
    height: auto;
    display: block;
}


.intro-section .titulo{
    text-align: center;
    font-size: 3vw;
    max-width: 95%;
}



.intro-section .subtitulo {
    text-align: center;
    font-size: 1.5vw;
    max-width: 95%;

}
/* More specific selector for calc.html only */


.titulo_derecho {
    max-width: 430px;
}

.titulo_derecho h1,
.titulo_derecho h2 {
    margin: 0;
}

.container_info_corredores {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.div_info_corredores {
    padding: 25px 15px 15px;
    background-color: white;
    border-radius: 15px;
    box-sizing: border-box;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 300px;
    height: 500px;
    position: relative;
}

.div_info_media {
    padding: 25px 15px 15px;
    background-color: #f4fbfc;
    border-radius: 15px;
    box-sizing: border-box;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 700px;
    position: relative;
}

.pasos {
    display: flex;
    justify-content: center;
    gap: 10rem;
    flex-wrap: wrap;
    padding: 0 2rem;
    background-color: #f3f3fa;
    
}

.paso1 {
    background: #0F759B;
    border-radius: 12px;
    padding: 2rem 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    flex: 1 1 220px;
    max-width: 315px;
    min-height: 450px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease-in;
    border: 2px solid #2CC0E2;
    cursor: pointer;
    padding-top: 150px;
}

.paso1:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    background: #2CC0E2;
    color: white;
}

.paso1 h4 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1rem;
    margin-top:1rem;
    font-weight: bold;
    padding: 4px;
}

.paso1 p {
    font-size: 1rem;
    color: white;
    line-height: 1.5;
    margin: 0;
}

/* Components */
.currency-toggle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 6px;
}

.currency-toggle button {
    background-color: #0171b3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 6px;
    font-size: 16px;
    width: 20%;
    min-width: 75px;
    transition: background-color 0.3s ease;
}

.currency-toggle button:hover {
    background-color: #B3F4FF;
}

.currency-toggle button.selected {
    background-color: #0171b3;
    color: white;
    border: 2px solid #55c5ed;
}

.bank-buttons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px;
}

.bank-buttons button {
    width: 70px;
    height: 70px;
    background-color: #ffffff;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s;
}

.bank-buttons button.selected {
    border-color: #00aaff;
}

.bank-buttons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.button-style,
.quote-button button {
    background-color: #2bbfe2;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.quote-button {
    display: none;
    margin-top: 20px;
}

.quote-button button:hover,
.button-style:hover {
    background-color: #B3F4FF;
}

.links_info,
.links_media {
    cursor: pointer;
    background-color: rgb(45, 192, 226);
    border-radius: 20px;
    padding: 10px 20px;
    text-decoration: none;
    text-align: center;
    color: white;
    transition: background-color 0.3s ease;
}

.links_info {
    position: absolute;
    bottom: 20px;
}

.links_info:hover,
.links_media:hover {
    background-color: #B3F4FF;
}

.testimonials-section {
    background: #f3f3fa;
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
}

.testimonials-section .sec-title h2 {
    font-size: 2.5rem;
    color: #0081AF;
    margin-bottom: 2rem;
    animation: slideInDown 1s ease-out;
}

.testimonials-container {
    display: flex;
    gap: 2rem;
    animation: slide 10s linear infinite;
    width: 200%;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex: 0 0 300px;
    text-align: left;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-card h5 {
    font-size: 1.1rem;
    color: #006A94;
    font-weight: bold;
}

/* --- Enganche: slider above, input full width --- */
.calculator-form input[type="number"] {
  width: 100% !important;          /* make number inputs full width inside the form */
  box-sizing: border-box;
}

/* Reflow the Enganche row (slider + % on top, input below) */
.down-payment-input {
  display: grid;
  grid-template-columns: 1fr auto;  /* slider + % label */
  grid-auto-rows: min-content;
  align-items: center;
  gap: 8px 12px;                    /* row gap, column gap */
  margin-bottom: 16px;
}

/* Full-width slider on top-left */
.down-payment-input input[type="range"],
#down-payment-percent {
  grid-column: 1 / 2;
  width: 100% !important;
  margin: 0;
}

/* % label on the top-right */
#down-payment-output {
  grid-column: 2 / 3;
  white-space: nowrap;
  font-weight: 600;
}

/* Enganche number input spans full width on the next row */
#down-payment {
  grid-column: 1 / 3;
  width: 100% !important;
  box-sizing: border-box;
}


/* Images and Logos */
#logodecalcu {
    width: 120px;
}

#logodecalcu2 {
    width: 180px;
}

#logodepasos {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: auto;
    transition: transform 0.3s;
    z-index: 10;
}

#step-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    z-index: 1;
    padding-bottom: 3px;
}

.image_info {
    width: 100%;
    height: auto;
    max-height: 150px;
    margin-bottom: 0;
    object-fit: contain;
}

/* Inputs */
input[type="number"],
input[type="range"] {
    width: 95%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid rgb(165, 165, 165);
}



.range-output {
    text-align: center;
    font-size: 18px;
    color: #0081AF;
    margin-bottom: 20px;
}

/* Misc */
#principal {
    display: flex;
    justify-content: center;
}

#headerinfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#result {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

.container_parte2 {
    background-color: rgb(45, 192, 226);
}




/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-20%); }
}

/* Media Queries */
@media (max-width: 1200px) {
    .hamburger {
        top: 29px !important;
    }
}

/* =========================
   ≤ 900px (tighten spacing, keep layout)
   ========================= */
/* ===== 900px and below ===== */
@media (max-width: 900px) {
  .intro-section_info {
    min-height: 40vh;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    margin-bottom: -10rem;
    margin-top: 90px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #0081AF;
    color: #fff;
  }

  .titulo_info {
    order: 1;
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.3;
    margin: 0 0 1rem 0;
    max-width: 95vw;
    z-index: 2;
    position: relative;
  }

  .subtitulo_info {
    order: 2;
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    line-height: 1.4;
    margin: 0 0 1.5rem 0;
    max-width: 95vw;
    z-index: 2;
    position: relative;
  }
  
    .intro-section_info { align-items: stretch !important; }  /* children can stretch full width */
  .titulo_info,
  .subtitulo_info {
    display: block;
    width: 100% !important;
    max-width: none !important;     /* override earlier 700px/95vw caps */
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    text-align: center;
    align-self: stretch;            /* belt + suspenders */
  }

  .video-container1 {
    order: 3;
    max-width: 100vw;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 1.5rem 0;
    position: relative;
    z-index: 1;
    display: block;
  }

  .pasos {
    gap: 2rem;
    padding: 1.5rem 0.5rem;
  }

  .paso1 {
    max-width: 95vw;
    min-width: 180px;
    padding: 1.2rem 0.5rem;
    min-height: 280px;
  }

  .testimonials-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .testimonial-card {
    font-size: 0.95rem;
    padding: 1rem;
  }
    .calculator-wrapper {
    flex-direction: column;
    max-width: 100%;
    padding: 0;
    gap: 0;
    margin: 4%;
    border-radius: 15px;
  }
  .calculator-form {
    width: 100%;
    max-width: 100%;
    padding: 5px 5% 5%;
    border-radius: 15px;
    border-style: none;
  }
  .calculator-result {
    min-width: unset;
    padding: 20px 10px;
    border-radius: 15px;
    border-style: none;
  }

  .container_general_creditos .titulo {
    font-size: 1.5rem;
    padding: 0 0.2rem;
    }
.container_general_creditos .subtitulo {
    font-size: 1.1rem;
    padding: 0 0.2rem;

}
  .calculator-footer {
    max-width: 95%;
    padding: 5px 5% 5%;
    font-size: 1em;
    margin: 20px 10px;
  }
  .footer-content {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .bank-logo {
    width: 80px;
  }
  .footer-text p {
    font-size: 15px;
  }
  
  .t_secundario {
    width: 100%;
    max-width: none;
    margin-top: 1rem !important;   /* remove large negative offset */
    text-align: center;
    position: relative;
    z-index: 0;                    /* ensures menu sits above */
    font-size: clamp(0.95rem, 3.2vw, 1.1rem);
    line-height: 1.4;
  }
  
}

/* ===== 768px and below ===== */
@media (max-width: 768px) {
  .intro-section_info {
    min-height: 38vh;
    padding-top: 1.8rem;
    padding-bottom: 1.2rem;
    margin-top: 80px;
     margin-bottom:-7px
  }

  .titulo_info {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
  }

  .subtitulo_info {
    font-size: clamp(0.95rem, 3.2vw, 1.2rem);
  }
  
  .intro-section_info { align-items: stretch !important; }
  .titulo_info,
  .subtitulo_info {
    width: 100% !important;
    max-width: none !important;
    align-self: stretch;
  }

  .pasos {
    gap: 1.5rem;
  }
  
   #step-image {
    position: relative;   /* no longer absolute */
    height: auto;         /* use natural height */
  }
  .paso1 {
    --step-image-h: 0px;  /* no reserved space needed */
    padding-top: 1rem;
  }

  .testimonials-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
   .t_secundario {
    margin-top: 0.85rem !important;
    font-size: clamp(0.9rem, 3.6vw, 1.05rem);
  }
}

/* ===== 600px and below ===== */
@media (max-width: 600px) {
  .intro-section_info {
    min-height: 36vh;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    margin-top: 70px;
    margin-bottom:-7px ;
  }
  .subtitulo{
    position: relative;
    z-index: 0;
  }


  .titulo_info {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }

  .subtitulo_info {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }
  
   .intro-section_info { align-items: stretch !important; }
  .titulo_info,
  .subtitulo_info {
    width: 100% !important;
    max-width: none !important;
    align-self: stretch;
  }

  .pasos {
    gap: 1rem;
  }
  
  .currency-toggle button {
        font-size: 14px;
        padding: 8px;
    }

     .calculator-wrapper {
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-top:  -20px;
  }
  .calculator-form{
    padding: 5px 25px 25PX;
    font-size: 1em;
    border-radius: 15px 15px 0 0;
  }
.calculator-result{
border-radius: 0 0 15px 15px;
padding: 5px 25px 25PX;
    font-size: 1em;
}
.container_general_creditos .titulo {
    font-size: 1.5rem;
    padding: 0 0.2rem;
    }
.container_general_creditos .subtitulo {
    font-size: 1.1rem;
    padding: 0 0.2rem;
    }

  .result-details p {
    font-size: 13px;
  }
  .result-circle {
    font-size: 2.5em;
    padding: 10px;
  }
  .currency-toggle button {
    font-size: 1em;
    padding: 8px 16px;
  }
   .calculator-form input,
  .calculator-form label,
  .calculator-form button,
  .down-payment-input,
  .range-output {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0.5em 0;
  }

  .calculator-footer {
    max-width: 100%;
    padding: 5px 5% 5%;
    font-size: 1em;
    margin: 20px 10px;
  }
  .footer-content {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .bank-logo {
    width: 60px;
  }
  .footer-text p {
    font-size: 13px;
    text-align: center;
  }
  .footer-text strong {
    font-size: 1em;
    display: inline-block;
    margin-top: 2px;
  }

    #body_calc {
        margin: 0 0 10% 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #f4f4f4;
        overflow-x: hidden;
    }


    .container_derecho_creditos {
        width: 90%;
        max-width: 500px;
        margin: 10px auto;
        min-width: 380px;
    }

    .container_derecho_creditos .titulo,
    .container_derecho_creditos .subtitulo,
    .container_derecho_creditos p {
        text-align: center;
        padding-right: 0;
    }

    #boton_preca {
        display: block;
        margin: 10px auto;
        text-align: center;
        width: fit-content;
    }
    
     .t_secundario {
    margin-top: 0.75rem !important;
    font-size: clamp(0.85rem, 4vw, 1rem);
    line-height: 1.35;
  }
    
    
  
  
  
}


