@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;
    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 {
  margin-bottom: 0.3em;
  color: #E27D60;
  font-family: etheris;
    font-size: 40px;
}

.texto p {
  font-size: 20px;
  margin-bottom: 1em;
  max-width: 500px;
}
/* Valores */
.valores {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0 20px 210px;
  margin-top: -150px;
  position: relative;
  z-index: 2;
}
.card {
  background: transparent;
  width: 400px;
  height: 200px;
  perspective: 1000px;
  border: none;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 15px;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  color: #3E5C76;
}

.card-front {
  background: #f6eee6;
}

.card-back {
  background: #f6eee6;
  transform: rotateY(180deg);
}

.card h3 {
  font-size: 30px;
  margin: 0;
  font-family: etheris;
  color: #E27D60;
}

.card p {
  font-size: 18px;
  margin-top: 15px;
}
/* Universidades */
.universidades {
  background-color: #A3C4BC;
  padding: 50px 20px 250px;
  text-align: center;
  position: relative;
}
.universidades h2{
    margin-top: -20px;
  color: #3E5C76;
  font-size: 40px;
  font-family: etheris;
    font-size: 40px;
}
.universidades .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
}
.uni {
  background: #f6eee6;
  padding: 20px;
  border-radius: 8px;
  color: #3E5C76;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 4;
  transition: transform 0.3s ease;
}
.uni:hover{
  transform: translateY(-5px);
}
.uni h3{
    color: #E27D60;
    font-size: 20px;
}
.uni a {
  display: inline-block;
  margin-top: 10px;
  background: #f8c98b;
  color: #E27D60;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
    font-size: 20px;
}
.uni a:hover {
  background: #F3B562;
  color: #E27D60;
}
.uni img{
    width: 200px;
    height: 100px;
}
.carreras {
  padding: 50px 20px;
  text-align: center;
  background: #F3B562;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 50px auto;
  transition: transform 0.3s;
  z-index: 10;
  color: #3E5C76;
  font-size: 20px;
}

.carreras:hover {
  transform: translateY(-5px); /* pequeño efecto al pasar el mouse */
}
.carreras h2{
  font-family: etheris;
  font-size: 40px;
  color: #E27D60;
}
.funcion{
      padding: 50px 20px;
    background-color: #f6eee6;
}
.valores svg,
.universidades svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}


/* Select carreras */
select {
  width: 100%;
  max-width: 420px;
  padding: 12px;
  margin: 20px 0;
  min-height: 220px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.3s;
}

select:focus {
  outline: none;
  border-color: #3E5C76;
  box-shadow: 0 0 10px rgba(62,92,118,0.4);
}

/* Botón buscar */
button {
  padding: 12px 25px;
  background: #A3C4BC;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: 0.3s;
    font-size: 20px;
}

button:hover {
  background: #7b9b93;
  transform: scale(1.05);
}

/* Contenedor de resultados */
.resultado {
  display: none; 
  margin-top: 30px;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}

/* Titulos de resultados */
.resultado h3 {
  margin-top: 20px;
  color: #3E5C76;
  border-bottom: 2px solid #F3B562;
  padding-bottom: 5px;
  font-family: etheris;
    font-size: 30px;
}

/* Lista de universidades */
.resultado ul {
  list-style-type: none;
  padding: 0;
  margin-top: 10px;
    font-size: 20px;
}

.uni-item {
  padding: 12px 15px;
  margin-bottom: 12px;
  background: #f9fafc;
  border-left: 5px solid #3E5C76;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

.uni-item:hover {
  transform: translateX(5px);
  background: #e8eef5;
}

.uni-item .ubicacion {
  font-style: italic;
  color: #666;
  margin-left: 10px;
}

.uni-item .btn-uni {
  padding: 6px 14px;
  background: #3E5C76;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.uni-item .btn-uni:hover {
  background: #F3B562;
  color: #fff;
}
/* ==== Responsive Tablets (max-width: 992px) ==== */
@media (max-width: 992px) {
  .texto {
    left: 5%;
    bottom: 15%;
  }

  .texto h2 {
    font-size: 36px;
  }

  .texto p {
    font-size: 18px;
    max-width: 90%;
  }

  .valores {
    flex-direction: column;
    align-items: center;
    margin-top: -100px;
    padding-bottom: 150px;
  }

  .card {
    flex-basis: auto;
    width: 80%;
    max-width: 400px;
  }

  .universidades {
    padding: 40px 20px 180px;
  }

  .universidades .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .carreras {
    width: 90%;
    margin: 40px auto;
  }
}

/* ==== Responsive Móviles (max-width: 768px) ==== */
@media (max-width: 768px) {
  .edu {
    height: 60vh;
  }

  .texto {
    bottom: 10%;
    text-align: center;
    left: 0;
    right: 0;
    padding: 0 20px;
  }

  .texto h2 {
    font-size: 28px;
  }

  .texto p {
    font-size: 16px;
    max-width: 100%;
  }

  .valores {
    margin-top: 20px;
    padding-bottom: 120px;
  }

  .card {
    width: 90%;
  }

  .card h3 {
    font-size: 24px;
  }

  .universidades h2 {
    font-size: 28px;
  }

  .universidades {
    padding-bottom: 150px;
  }

  .carreras h2 {
    font-size: 28px;
  }

  select {
    min-height: 150px;
  }

  .resultado {
    padding: 20px;
  }

  .resultado h3 {
    font-size: 24px;
  }
}