@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');
} 
.valores svg,
.info svg{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}
body{
    margin: 0;
    padding: 0;
    font-family: normal;
    background-color: #f8c98b;
    color: #3E5C76;
    font-size: 20px;
}
.edu{
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 0;
}
.edu 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: 40px;
  margin-bottom: 0.3em;
  color: #E27D60;
    font-family: etheris;
}

.texto p {
  font-size: 20px;
  margin-bottom: 1em;
  max-width: 500px;
}
.info{
    position: relative;
padding-bottom: 200px;
}
/* Valores */
.valores {
  display: flex;
  gap: 20px;
  padding: 0 20px 120px; /* Reducido el padding inferior */
  margin-top: -80px;
  position: relative;
  padding-bottom: 200px;
}
.card {
  background: #f6eee6;
  color: #3E5C76;
  padding: 20px;
  border-radius: 8px;
  flex: 1;
  z-index: 3;
  text-align: center;
  transition: transform 0.3s ease;
}
.card h3{
  font-size: 30px;
    font-family: etheris;
}
.card:hover{    
  transform: translateY(-5px);
}

.subclaset{
background-color: #f8c98b;
width: 100%;
padding: 50px 0; /* Usar padding en vez de height */
font-size: 20px;
text-align: center;
}
.subclaset p{
  width: 80%;
  text-align: center;
  margin: 0 auto; /* Centrado horizontal */
}
#subclase h1{
  font-size: 40px;
  color: #E27D60;
  width: 100%;
  display: flex;
  justify-content: center;
    font-family: etheris;
    margin-bottom: 20px;
}

/*Apartados de hogar propio*/
.contenedor2{
  display: flex;
  gap: 100px;
  justify-content: center;
  background-color: #f8c98b;
  padding-bottom: 150px; /* Espacio para el SVG */
}

.divs{
background-color:  #f6eee6;
border-radius: 15px;
width: 40%;
height: 150px;
display: flex;
justify-content: center;
margin-top: 12px;
font-size: 20px;
align-items: center;
transition: transform 0.3s ease;
position: relative; /* Para posicionar el h3 */
padding: 20px;
}
.divs:hover{
  transform: translateY(-5px);
}
.texto2{
  position: relative;
  margin-top: 40px;
  text-align: center;
}
.divs h3{
  font-size: 30px;
  color: #E27D60;
  position: absolute;
  top: 20px; /* Ajuste de posicionamiento */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  margin: 0;
    font-family: etheris;
}
.calculadora-container {
    padding: 50px 20px;
    background-color: #f6eee6;
}

.calculadora {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: #A3C4BC;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.calculadora h2 {
    font-family: "etheris", sans-serif;
    font-size: 40px;
    color: #E27D60;
    margin-bottom: 15px;
}

.calculadora p {
    font-size: 18px;
    color: #3E5C76;
    margin-bottom: 30px;
}

.filtro-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

#zonaSelect {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.calculadora button {
    padding: 12px 25px;
    background: #E27D60;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s;
}

.calculadora button:hover {
    background: #c46a52;
}

.resultado {
    margin-top: 30px;
    text-align: left;
}

.vivienda-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border-left: 5px solid #E27D60;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vivienda-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.vivienda-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.vivienda-info {
    flex-grow: 1;
}

.vivienda-info h4 {
    font-family: "etheris", sans-serif;
    font-size: 24px;
    color: #3E5C76;
    margin: 0 0 10px;
}

.vivienda-info p {
    margin: 5px 0;
    font-size: 16px;
}

.vivienda-info a {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background: #3E5C76;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.vivienda-info a:hover {
    background: #5a7a9c;
}

/* Apps Sugerencias */
.apps-sugerencias {
  padding: 50px 20px;
  background-color: #f6eee6;
  text-align: center;
}

.apps-sugerencias h2 {
  font-family: "etheris", sans-serif;
  font-size: 40px;
  color: #E27D60;
  margin-bottom: 40px;
}

.app-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.app-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 30px;
  max-width: 320px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.app-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.app-card h3 {
  font-family: "etheris", sans-serif;
  font-size: 24px;
  color: #3E5C76;
  margin-bottom: 10px;
}

.app-card p {
  font-size: 16px;
  color: #3E5C76;
  margin-bottom: 20px;
}

.app-card a {
  display: inline-block;
  padding: 10px 20px;
  background: #E27D60;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.app-card a:hover {
  background: #c46a52;
}



/* ==== Responsive General ==== */
@media (max-width: 1200px) {
    .texto p {
        max-width: 450px;
    }
    .contenedor2 {
        gap: 50px;
    }
}

@media (max-width: 992px) {
    .edu {
        height: 80vh;
    }
    .texto {
        left: 5%;
        bottom: 15%;
    }
    .texto h2 {
        font-size: 32px;
    }
    .texto p {
        font-size: 18px;
        max-width: 90%;
    }
    .valores {
        flex-direction: column;
        margin-top: -60px;
        padding-bottom: 100px;
    }
    .subclaset p {
        width: 90%;
    }
    .contenedor2 {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-bottom: 120px;
    }
    .divs {
        width: 80%;
        height: auto;
    }
    .calculadora {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .edu {
        height: 60vh;
    }
    .texto {
        text-align: center;
        left: 0;
        right: 0;
        bottom: 10%;
    }
    .texto h2 {
        font-size: 28px;
    }
    .texto p {
        font-size: 16px;
    }
    .valores {
        margin-top: -40px;
        padding: 0 15px 80px;
    }
    #subclase h1 {
        font-size: 32px;
    }
    .subclaset p {
        font-size: 18px;
    }
    .divs {
        width: 90%;
    }
    .divs h3 {
        font-size: 24px;
    }
    .texto2 {
        font-size: 18px;
    }
    .filtro-container {
        flex-direction: column;
    }
    .vivienda-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .vivienda-item img {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 18px;
    }
    .edu {
        height: 50vh;
    }
    .texto h2 {
        font-size: 24px;
    }
    .texto p {
        font-size: 14px;
    }
    .card {
        padding: 15px;
    }
    .card h3 {
        font-size: 24px;
    }
    #subclase h1 {
        font-size: 28px;
    }
    .subclaset p {
        font-size: 16px;
    }
    .calculadora {
        padding: 20px;
    }
    .calculadora h2 {
        font-size: 28px;
    }
    .calculadora p {
        font-size: 16px;
    }
    .vivienda-info h4 {
        font-size: 20px;
    }
    .vivienda-info p, .vivienda-info a {
        font-size: 14px;
    }
}