* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background: #f7edd5;
}
/* fonts*/
@font-face {
  font-family: "BigNoodleTitling";
  src: url("/fonts/big_noodle_titling.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "futura-light";
  src: url("/fonts/futuralight.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "futura-medium";
  src: url("/fonts/Futura\ Medium.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Navegación */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: #f49c15;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border: 1px solid black;
  height: 18vh;
  position: fixed;
}

.nav-container {
  max-width: 1900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
}
.nav-container.containerscroll {
  height: 18vh;
}

.logo-icon {
  width: clamp(100px, 15vw, 350px);
  height: auto;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon img {
  max-width: 100%; /* Se ajusta al ancho del contenedor */
  max-height: 100%; /* Se ajusta a la altura del contenedor */
  width: 50%;
  height: auto;
  object-position: center;
}

.logo-icon.shrink .imglogo {
  height: 17vh; /* Ajusta según el tamaño del logo */
  width: 7vw;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  gap: 2rem;
  justify-content: center;
}

/* Hover con diferentes colores */
.navbar ul li:nth-child(1) a:hover {
  background: #3fc89a;
  border: 2px solid black;
}
.navbar ul li:nth-child(2) a:hover {
  background: #ed2b4b;
  border: 2px solid black;
}
.navbar ul li:nth-child(3) a:hover {
  background: #f49c15;
  border: 2px solid black;
}
.navbar ul li:nth-child(4) a:hover {
  background: #79c832;
  border: 2px solid black;
}
.navbar ul li:nth-child(5) a:hover {
  background: #f55624;
  border: 2px solid black;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: "BigNoodleTitling";
  background-color: #f7edd5;
  color: black;
  text-decoration: none;
  font-weight: 500;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid black;
  cursor: pointer;
}

.navbar.scrolled .nav-link {
  color: black;
}

.navbar.scrolled .nav-link::before {
  background: rgba(102, 126, 234, 0.1);
}

.nav-link:hover {
  transform: translateY(-2px);
}

.scroll-text {
  font-size: 1.5rem;
}
/* NUEVOS ESTILOS PARA EL DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: " ▼";
  font-size: 0.9rem;
  margin-left: 0.4rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f7edd5;
  min-width: 250px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.3s ease;
  z-index: 1001;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 1rem 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
  font-family: "BigNoodleTitling";
  font-size: 1.6rem;
}
.scroll-drop {
  font-size: 1.5rem;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: #f7edd5;
  color: black;
  padding-left: 2rem;
}

/* Botón hamburguesa para móvil */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.navbar.scrolled .mobile-menu-btn span {
  background: #333;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
/* Sección de contenido normal */
.principal-content {
  position: relative;
  background: #f7edd5;
  padding: 80px 20px;
  min-height: 100vh;
  margin-top: 5%;
}

.title {
  color: #f49c15;
  text-align: center;
  margin-bottom: 40px;
  font-family: "futura-medium";
  font-size: 3rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  margin-bottom: 5%;
}

.card {
  width: 100%;
  height: 200px;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid black;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: black;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.card-front {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
  font-family: "futura-medium";
  font-size: 2rem;
}

.card-back {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  transform: rotateY(180deg);
  font-family: "futura-light";
  font-size: 1.35rem;
}

/* Colores únicos para cada tarjeta */
.card:nth-child(1) .card-front {
  background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
}

.card:nth-child(1) .card-back {
  background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
}

.card:nth-child(2) .card-front {
  background: linear-gradient(135deg, #fdfb57 0%, #a8ff78 100%);
}

.card:nth-child(2) .card-back {
  background: linear-gradient(135deg, #76b852 0%, #8dc26f 100%);
}

.card:nth-child(3) .card-front {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.card:nth-child(3) .card-back {
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.card:nth-child(4) .card-front {
  background: linear-gradient(135deg, #dce35b 0%, #45b649 100%);
}

.card:nth-child(4) .card-back {
  background: linear-gradient(135deg, #f0f2f0 0%, #000c40 100%);
}

.card:nth-child(5) .card-front {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.card:nth-child(5) .card-back {
  background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
}

.card:nth-child(6) .card-front {
  background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
}

.card:nth-child(6) .card-back {
  background: linear-gradient(135deg, #2980b9 0%, #6dd5fa 100%);
}
.card:nth-child(7) .card-front {
  background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
}

.card:nth-child(7) .card-back {
  background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
}
.card:nth-child(8) .card-front {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card:nth-child(8) .card-back {
  background: linear-gradient(135deg, #e0f7fa 0%, #80deea 100%);
}
.card:nth-child(9) .card-front {
  background: linear-gradient(135deg, #16a085 0%, #f4d03f 100%);
}

.card:nth-child(9) .card-back {
  background: linear-gradient(135deg, #76b852 0%, #8dc26f 100%);
}
.card:nth-child(10) .card-front {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.card:nth-child(10) .card-back {
  background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
}
.card:nth-child(11) .card-front {
  background: linear-gradient(135deg, #283c86 0%, #45a247 100%);
}

.card:nth-child(11) .card-back {
  background: linear-gradient(135deg, #fceabb 0%, #f8b500 100%);
}
.card:nth-child(12) .card-front {
  background: linear-gradient(135deg, #485563 0%, #29323c 100%);
}

.card:nth-child(12) .card-back {
  background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
}
.containers {
  max-width: 1800px;
  margin: 0 5vw;
  margin-bottom: 5%;
}

.content-text {
  font-family: "futura-light";
  font-size: 1.4rem;
  color: black;
  text-align: justify;
  max-width: 100%;
  line-height: 1.8;
  margin-right: 50px;
  margin-bottom: 2%;
}
.contact {
  display: flex;
  justify-content: center;
}

.contacto {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.iconos img {
  padding: 10px;
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 20px;
  }

  .card {
    height: 150px;
  }

  h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(12, 1fr);
  }
}
