@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;
}
.tra{
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 0;
    overflow: hidden; 
}
.tra img{
    width: 100%;
    height: 1000px;
    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;
}

.texto a {
  padding: 7px 15px;
  font-size: 20px;
  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;
}
.carro {
    position: relative;
    background-color: #f8c98b;
    padding-bottom: 250px;
}
section {
  padding: 40px 20px;
  text-align: center;
}

h2 {
    margin-top: 0;
  color: #E27D60;
  margin-bottom: 20px;
  font-size: 40px;
  font-family: etheris;
}
h3{
  font-size: 30px;
  font-family: etheris;
}
.carousel-container {
  position: relative;
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 40px; /* espacio para flechas */
  z-index: 5;
}
.tra svg,
.carro svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-card {
  flex: 0 0 calc(25% - 35px);
  margin: 10px;
  background-color: transparent;
  min-height: 280px;
  perspective: 1000px;
  border: none;
  box-shadow: none;
}

.carousel-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;
}

.carousel-card:hover .carousel-card-inner {
  transform: rotateY(180deg);
}

.carousel-card-front, .carousel-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 20px;
  box-sizing: border-box;
}

.carousel-card-front {
  background: #A3C4BC;
  color: #3E5C76;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel-card-back {
  background: #A3C4BC;
  color: #3E5C76;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel-card-back h3 {
    margin-bottom: 15px;
}

.carousel-card-back p {
    font-size: 18px;
}

.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;
}
body{
  background-color: #f6eee6;
}
/*Funcion*/
.funcion {
  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;
}

.funcion:hover {
  transform: translateY(-5px);
}

.funcion h2 {
  font-family: etheris;
  font-size: 40px;
  color: #E27D60;
}

.funcion select {
  width: 100%;
  max-width: 420px;
  padding: 12px;
  margin: 20px 0;
  min-height: 50px;
  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;
}

.funcion select:focus {
  outline: none;
  border-color: #3E5C76;
  box-shadow: 0 0 10px rgba(62,92,118,0.4);
}

.funcion button {
  padding: 12px 25px;
  background: #A3C4BC;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s;
}

.funcion button:hover {
  background: #7b9b93;
  transform: scale(1.05);
}

.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;
}
.resultado h3 {
  margin-top: 20px;
  color: #3E5C76;
  border-bottom: 2px solid #F3B562;
  padding-bottom: 5px;
  font-family: etheris;
  font-size: 30px;
}

.resultado p {
  margin-top: 20px;
  color: #3E5C76;
  border-bottom: 2px solid #F3B562;
  padding-bottom: 5px;
  font-family: etheris;
  font-size: 30px;
}

.resultado ul {
  list-style-type: none;
  padding: 0;
  margin-top: 10px;
  font-size: 20px;
}

.resultado li {
  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);
  transition: 0.3s;
}

.resultado li:hover {
  transform: translateX(5px);
  background: #e8eef5;
}

/* ==== 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 */
  .tra.eco {
    height: 80vh;
    min-height: 500px;
  }

  .texto h2 {
    font-size: 2.5em;
  }

  .texto p {
    font-size: 18px;
  }

  /* Ajustes para contenido */
  .contenido {
    padding: 40px 20px;
  }

  .contenido h2 {
    font-size: 1.8em;
  }

  .contenido p {
    font-size: 16px;
  }

  /* Ajustes para listas */
  #grado2 ul {
    padding: 15px;
  }

  #grado2 li {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .carousel-card {
    flex: 0 0 calc(50% - 20px); /* 2 tarjetas por fila */
    min-height: 300px; /* Ajustar altura para contenido */
  }

}

/* ==== Responsive móviles (max-width: 768px) ==== */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 15px;
  }
/* Ajustes para el carrusel */
  .carousel-container {
    width: 100%;
    padding: 20px 0;
  }

  .carousel-card {
    flex: 0 0 80%; /* 1 tarjeta por fila */
    min-height: 320px; /* Más altura para el texto en móvil */
  }
  /* 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 */
  .tra.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%;
  }

  /* Ajustes para contenido */
  .contenido {
    padding: 30px 15px;
  }

  .contenido h2 {
    font-size: 1.5em;
  }

  .contenido p {
    font-size: 14px;
  }

  /* Ajustes para listas */
  #grado2 ul {
    padding: 12px;
  }

  #grado2 li {
    font-size: 14px;
    margin-bottom: 8px;
  }


}