@font-face {
    font-family: "normal";
    src: url('../fuentes/AlteHaasGrotesk_Bold.woff') format('woff');
}
@font-face {
    font-family: "etheris";
    src: url('../fuentes/TARSICARegular.woff') format('woff');
} 
body{
    margin: 0;
    padding: 0;
    font-family: normal;
    background-color: #f8c98b;
    color: #3E5C76;
    font-size: 20px;
    overflow-x: hidden;
}
.eco{
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 0;
}
.eco img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.texto {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: #f6eee6;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.texto h2 {
  font-size: 3em;
  margin-bottom: 0.3em;
  color: #F3B562;
  font-family: etheris;
}

.texto p {
  font-size: 1.2em;
  margin-bottom: 1em;
  max-width: 500px;
}

.texto a {
  padding: 7px 15px;
  font-size: 1em;
  background-color: #f8c98b;
  font-family: normal;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
  text-shadow: none;
}
.texto a{
  color: #E27D60;
  text-decoration: none;
}
.texto a:hover {
  background-color: #F3B562;
}
.eco svg{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}
.infoxd{
    position: relative;
    height: auto;
    padding-bottom: 300px;
    background-color: #A3C4BC;
    overflow-x: hidden;
}
.info{ 
  max-width:1100px;
  z-index: 10;
  margin:auto; 
  padding:0 20px; 
  text-align:center; 
}
.info h2{ 
  color: #3E5C76; 
  margin-bottom:18px; 
  font-family: etheris;
    font-size: 40px;
}
.cards{
  display:grid; 
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); 
  gap:20px;
}
.card{
  background: #f6eee6; 
  border-radius:16px; 
  padding:24px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  border:1px solid rgba(0,0,0,.05);
  transition: transform 0.3s ease;
}
.card:hover{
  transform: translateY(-5px);
}
.card h3{ 
  color:#3E5C76; 
  margin:0 0 8px; 
  font-family: etheris;
    font-size: 30px;
}
.card p{ 
  margin:0; 
}
.infoxd svg{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}
/* Gastos básicos */
.carro{
    position: relative;
    padding-bottom: 150px;
}
section {
  padding: 40px 20px;
  text-align: center;
}

h2 {
  color: #E27D60;
  margin-bottom: 20px;
  font-size: 40px;
  font-family: etheris;
    font-size: 40px;
}
h3{
  font-size: 24px;
  font-family: etheris;
    font-size: 30px;
}
.carousel-container {
  position: relative;
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 40px;
  z-index: 5;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-card {
  flex: 0 0 calc(25% - 35px);
  margin: 10px;
  background: #A3C4BC;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  min-height: 300px;
  z-index: 5;
  transition: transform 0.3s ease;
  font-size: 20px;
  }
.carousel-card:hover{
  transform: translateY(-5px);
}
.carousel-card img{
  border-radius: 50%;
  background-color: #f6eee6;
  width: 150px;
  height: 150px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #F3B562;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 10; 
  }

.carousel-btn:hover {
  background: #E27D60;
  color: white;
}

.prev {
  left: 10px; /* ahora dentro del padding */
}

.next {
  right: 10px;
}

.carro svg{
    position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}
   @media (max-width: 1200px) {
    .carousel-card {
      flex: 0 0 calc(33.33% - 20px);
    }
  }
  @media (max-width: 992px) {
    .carousel-card {
      flex: 0 0 calc(50% - 20px);
      font-size: 16px;
    }
    .carousel-card img {
      width: 100px;
      height: 100px;
    }
  }

/* Calculadora */
.calc{
  background-color: #f6eee6;
  height: auto;
}
.calculadora{
  max-width:950px; 
  margin:0 auto 80px; 
  padding:40px 20px;
  background:#f6eee6; 
  border-radius:16px;
  box-shadow:0 10px 26px rgba(0,0,0,.08);
  border:1px solid rgba(0,0,0,.04);
  text-align:center;
  height: auto;
}
.calculadora h2{ 
  color: #3E5C76; 
  margin-top:0; 
}
.input-salario{ 
  margin:10px 0 16px; 
}
.input-salario input{
  width:240px; 
  padding:10px 12px; 
  font-size:16px;
  border:1px solid #f6eee6; 
  border-radius:10px; 
  outline:none;
}
.input-salario input:focus{
  border-color:#3E5C76; 
  box-shadow:0 0 0 3px rgba(62,92,118,.12); 
}

.gastos-opciones{
  display:flex; 
  flex-wrap:wrap; 
  gap:10px 18px; 
  justify-content:center; 
  margin-bottom:14px;
}
.gastos-opciones label{
  background:#fff; 
  border:1px solid #e5e7eb; 
  border-radius:999px;
  padding:8px 14px; 
  cursor:pointer; 
  user-select:none; 
  color: #3E5C76; 
  font-weight:600;
}
.gastos-opciones input{ 
  margin-right:6px; 
  transform:translateY(1px); 
}

.btn{
  background: #f8c98b;
  color:#E27D60; 
  border:none; 
  border-radius:12px; 
  padding:12px 22px;
  font-weight:700; 
  cursor:pointer; 
  transition:.25s; 
  font-size:16px;
}
.btn:hover{ 
  background: #F3B562;
  color: #E27D60;
  transform:translateY(-1px) scale(1.02); 
}

/* Resultado */
.resultado{ 
  margin-top:22px; 
  text-align:left; 
}
.resultado .fila{
  display:flex; 
  align-items:center; 
  gap:12px; 
  margin:10px 0;
}
.resultado .etiqueta{ 
  width:210px; 
  font-weight:700; 
  color:v #3E5C76; 
}
.resultado .monto{ 
  min-width:140px; 
  font-variant-numeric:tabular-nums; 
}
.barra{
  flex:1; 
  height:10px; 
  background:#e5e7eb; 
  border-radius:999px; 
  overflow:hidden;
}
.barra > span{
  display:block; 
  height:100%; 
  width:0%;
  background:linear-gradient(90deg, #A3C4BC, #E27D60);
  border-radius:999px; 
  transition:width .6s ease;
}

/* Utilidades */
@media (max-width: 520px){
  .resultado .etiqueta{ width:150px; }
}

/* ==== Responsive tablets grandes (max-width: 1200px) ==== */
@media (max-width: 1200px) {
  .container .menu a {
    font-size: 24px;
    padding: 8px;
  }
}

/* ==== Responsive tablets medianos (max-width: 1100px) ==== */
@media (max-width: 1100px) {
  .container .menu a {
    font-size: 20px;
    padding: 6px;
  }
}

/* ==== Responsive tablets pequeños (max-width: 1000px) ==== */
@media (max-width: 1000px) {
  .container .btn-menu {
    display: block;
  }

  .container .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.95);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  .container .menu.active {
    display: flex;
  }

  .container .menu a {
    display: block;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(243, 181, 98, 0.3);
    font-size: 24px;
  }
}

/* ==== Responsive tablets (max-width: 992px) ==== */
@media (max-width: 992px) {
  .container {
    width: 95%;
    padding: 0 15px;
  }

  /* Mostrar botón menú, ocultar menú horizontal */
  .container .btn-menu {
    display: block;
  }

  .container .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  .container .menu.active {
    display: flex;
  }

  .container .menu a {
    display: block;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(243, 181, 98, 0.3);
    font-size: 24px;
  }

  .logo h1 {
    font-size: 32px;
  }

  .logo img {
    height: 40px;
  }

  /* Ajustes para sección hero */
  .eco {
    height: 80vh;
    min-height: 500px;
  }

  .texto h2 {
    font-size: 2.5em;
  }

  .texto p {
    font-size: 18px;
  }

  /* Ajustes para tarjetas de información */
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px 20px;
  }

  .card {
    padding: 20px;
  }

  .card h3 {
    font-size: 1.5em;
  }

  .card p {
    font-size: 16px;
  }

  /* Ajustes para carrusel */
  .carousel-container {
    padding: 40px 20px;
  }

  .carousel-card {
    flex: 0 0 calc(50% - 20px);
    padding: 10px;
  }

  .carousel-card img {
    height: 200px;
    width: 200px;
  }

  .carousel-card h3 {
    font-size: 30px;
  }

  .carousel-card p {
    font-size: 20px;
  }

  /* Ajustes para calculadora */
  .calculadora {
    padding: 30px 20px;
    margin: 0 auto 60px;
  }

  .calculadora h2 {
    font-size: 1.8em;
  }

  .calculadora p {
    font-size: 16px;
  }

  .gastos-opciones {
    gap: 8px 15px;
  }

  .gastos-opciones label {
    padding: 6px 12px;
    font-size: 14px;
  }

  }

/* ==== Responsive móviles (max-width: 768px) ==== */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 15px;
  }

  /* Mostrar botón menú, ocultar menú horizontal */
  .container .btn-menu {
    display: block;
    font-size: 28px;
  }

  .container .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  .container .menu.active {
    display: flex;
  }

  .container .menu a {
    display: block;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(243, 181, 98, 0.3);
    font-size: 20px;
  }

  .logo h1 {
    font-size: 24px;
  }

  .logo img {
    height: 30px;
  }

  /* Ajustes para sección hero */
  .eco {
    height: 70vh;
    min-height: 400px;
  }

  .texto {
    left: 5%;
    right: 5%;
    bottom: 15%;
    max-width: 90%;
  }

  .texto h2 {
    font-size: 2em;
    text-align: center;
  }

  .texto p {
    font-size: 16px;
    text-align: center;
    max-width: 100%;
  }

  .texto a {
    font-size: 14px;
    padding: 8px 16px;
  }

  /* Ajustes para tarjetas de información */
  .cards {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 30px 15px;
  }

  .card {
    padding: 15px;
  }

  .card h3 {
    font-size: 1.3em;
  }

  .card p {
    font-size: 14px;
  }

  /* Ajustes para carrusel */
  .carousel-container {
    padding: 30px 15px;
  }

  .carousel-card {
    flex: 0 0 100%;
    padding: 15px;
  }

  .carousel-card img {
    height: 150px;
    width: 150px;
  }

  .carousel-card h3 {
    font-size: 30px;
  }

  .carousel-card p {
    font-size: 20px;
  }

  /* Ajustes para calculadora */
  .calculadora {
    padding: 20px 15px;
    margin: 0 auto 40px;
  }

  .calculadora h2 {
    font-size: 1.5em;
  }

  .calculadora p {
    font-size: 14px;
  }

  .input-salario input {
    width: 200px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .gastos-opciones {
    gap: 6px 12px;
  }

  .gastos-opciones label {
    padding: 5px 10px;
    font-size: 12px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
.resultado .fila {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .resultado .etiqueta {
    flex-basis: 50%;
    flex-grow: 1;
    width: auto;
  }

  .resultado .monto {
    flex-basis: 40%;
    flex-grow: 1;
    text-align: right;
    min-width: auto;
  }

  .barra {
    flex-basis: 100%;
  }}