@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root {
  --main-red: #333333;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f4f4f4;
  --gray-dark: #222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: var(--main-red);
}

.logo img {
  width: 10vw;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  position: relative;
}

nav ul li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  padding: 8px 12px;
  display: block;
}

.submenu {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  min-width: 180px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.submenu li a {
  padding: 10px;
  color: black !important;
}

nav ul li:hover .submenu {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

footer {
  background: var(--main-red);
  color: white;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  font-size: 0.95rem;
}

footer h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  border-bottom: 2px solid white;
  display: inline-block;
  padding-bottom: 5px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin: 5px 0;
}

footer ul li a {
  color: white;
  text-decoration: none;
}

footer ul li a:hover {
  text-decoration: underline;
}

/*END STATICS*/

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 1;
  padding: 2rem;
  max-width: 800px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  transition: all 0.5s ease;
}

.hero-content.hidden {
  transform: translateY(-60px);
  opacity: 0;
}

h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-content .btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(45deg, #393d42, #606468);
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-content .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(45deg, #292b2e, #393d42);
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 1;
  padding: 2rem;
  max-width: 800px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  animation: fadeInDown 1s ease-out;
}

p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeIn 1.5s ease-out;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(45deg, #dc4038, #d96121);
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(45deg, #df8852, #d0b396);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.tabs-section {
  background: #fff;
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.tabs-section h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.tabs-section p {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.tabs-underline {
  width: 60px;
  height: 4px;
  background: var(--main-red);
  margin: 0 auto 40px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.tab-button {
  border: 1px solid #ccc;
  padding: 10px 20px;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.tab-button.active {
  background: var(--main-red);
  color: white;
  border-color: var(--main-red);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
}

.tab-card {
  flex: 0 0 250px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tab-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.tab-card h4 {
  padding: 10px 15px;
  font-size: 1rem;
  font-weight: bold;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-select {
  margin: 40px auto;
  max-width: 400px;
  text-align: left;
}

.profile-select label {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 10px;
  display: inline-block;
}

.profile-select select {
  width: 100%;
  padding: 10px 15px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.profile-select select:focus {
  border-color: var(--main-red);
  box-shadow: 0 0 5px rgba(200, 16, 46, 0.5);
  outline: none;
}

#grandeza-toluca {
  background: #f9f9f9;
  padding: 60px 20px;
}

#grandeza-toluca .contenedor {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

#grandeza-toluca h2 {
  font-size: 2.5rem;
  color: #d35400;
  margin-bottom: 10px;
}

#grandeza-toluca .subtitulo {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 40px;
}

.tarjetas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.tarjeta {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
  text-align: left;
  border-left: 6px solid transparent;
}

.tarjeta h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.1rem;
}

.tarjeta ul {
  padding-left: 20px;
  list-style: disc;
  color: #555;
  font-size: 0.95rem;
}

.borde-naranja {
  border-color: #e67e22;
}

.borde-morado {
  border-color: #9b59b6;
}

.borde-azul {
  border-color: #3498db;
}

.borde-verde {
  border-color: #2ecc71;
}

.borde-gris {
  border-color: #7f8c8d;
}

@media screen and (max-width: 768px) {
  .tarjetas {
    flex-direction: column;
    align-items: center;
  }

  .tarjeta {
    width: 90%;
  }
}

.scroll-container {
  position: relative;
  display: flex;
  align-items: center;
}

.scroll-btn {
  position: absolute;
  transform: translateY(-50%);
  background: rgb(255, 255, 255);
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  padding: 0em 0.5em;
  border: #000000 1px solid;
  display: flex;
  justify-content: center;
  align-items: center;
}

#scrollLeftBtn {
  left: 0;
  display: none;
}

#scrollRightBtn,
.right {
  right: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 20px;
  color: #000000 !important;
  line-height: 1;
}

.nav {
  position: relative;
}
.nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
}

.has-submenu {
  position: relative;
}
.submenu {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: #fff;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}
.has-submenu:hover > .submenu {
  display: block;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
  }
  .nav-list {
    flex-direction: column;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-list.open {
    max-height: 70vh;
  }

  .nav-link {
    padding: 12px 16px;
  }

  .has-submenu > .submenu {
    position: static;
    display: none;
    margin: 0 12px 8px 12px;
    border: 1px solid #eee;
  }
  .has-submenu.open > .submenu {
    display: block;
  }

  .logo img {
    width: 96px;
  }
  .site-header {
    display: flex;
    align-items: center;
  }

  .site-header .logo {
    order: 1;
    margin-left: auto;
  }
  .site-header .menu-toggle {
    order: 0;
  }
}

@media screen and (max-width: 430px) {
  .site-header {
    padding: 10px 16px;
  }
  .logo img {
    width: 88px;
  }
  h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-content .btn {
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
  }
}
