@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap');

:root {
  /* Paleta de colores principal */
  --primary-color: #ffffff;
  --secondary-color: #ff0026;  /* Rojo más vibrante */
  --accent-color: #ff344f;  /* Rojo para acentos */
  --background-color: #0c0c0c;  /* Negro profundo */
  --dark-gray: #1a1a1a;  /* Gris oscuro */
  --medium-gray: #333333;  /* Gris medio */
  --light-gray: #aaaaaa;  /* Gris claro para texto */
  --hover-effect: rgba(255, 0, 38, 0.15);  /* Efecto hover transparente */
  --gradient-red: linear-gradient(135deg, #ff0026 0%, #cc0000 100%);
  --shadow-red: 0 4px 20px rgba(255, 0, 38, 0.25);
  --shadow-black: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

html, body {
  overflow-x: hidden;
  background-color: var(--background-color);
  color: var(--primary-color);
  line-height: 1.6;
}

section {
  scroll-margin-top: 100px;
  padding: 80px 5%;
  position: relative;
}

*::selection {
  color: var(--primary-color);
  background: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Elementos de efecto de fondo */
.bg-effect {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--secondary-color);
  filter: blur(150px);
  opacity: 0.05;
  z-index: -1;
}

.effect-1 {
  top: -100px;
  left: -100px;
}

.effect-2 {
  bottom: -50px;
  right: 20%;
}

/* Barra de navegación mejorada */
header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 15px 5%;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(12, 12, 12, 0.98);
  padding: 12px 5%;
}

.logo img {
  width: 110px;
  filter: drop-shadow(0px 0px 8px rgba(255, 0, 38, 0.4));
  transition: all 0.3s ease;
}

.logo img:hover {
  filter: drop-shadow(0px 0px 12px rgba(255, 0, 38, 0.6));
  transform: scale(1.05);
}

.navbar {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-grow: 1;
  justify-content: center;
}

.navbar a {
  font-size: 0.95rem;
  padding: 8px 16px;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.navbar a:hover {
  color: var(--secondary-color);
}

.navbar a:hover::after {
  width: 100%;
}

/* Botón de login mejorado */
.btn-login {
  background: var(--gradient-red);
  color: var(--primary-color);
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  display: inline-block;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-red);
  border: none;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
  transform: skewX(-25deg);
}

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 0, 38, 0.35);
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:active {
  transform: translateY(-1px);
}

.btn-login span {
  position: relative;
  z-index: 1;
}

#menu-icon {
  font-size: 26px;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 1001;
  display: none;
  transition: all 0.3s ease;
}

#menu-icon:hover {
  color: var(--secondary-color);
}

/* Sección About Us mejorada */
.about-us {
  background-color: var(--background-color);
  padding: 100px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
}

.section-title span {
  color: var(--secondary-color);
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-red);
  margin: 15px auto 0;
  border-radius: 5px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--light-gray);
  margin-bottom: 50px;
  line-height: 1.8;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Cajas de información mejoradas */
.info-boxes-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 35px;
  max-width: 1300px;
  margin: 0 auto;
}

.info-box {
  background-color: var(--dark-gray);
  padding: 35px 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-black);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-red);
  transition: all 0.4s ease;
}

.info-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, rgba(255, 0, 38, 0.05), transparent);
  z-index: -1;
  transition: all 0.5s ease;
}

.info-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.info-box:hover::before {
  width: 100%;
  height: 4px;
}

.info-box:hover::after {
  height: 100%;
}

.info-box i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.info-box:hover i {
  transform: translateY(-5px);
  color: var(--accent-color);
}

.info-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.info-box p {
  font-size: 1rem;
  color: var(--light-gray);
  line-height: 1.7;
  flex-grow: 1;
}

/* Footer mejorado */
footer {
  background-color: var(--background-color);
  color: var(--primary-color);
  padding-top: 80px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-red);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 60px;
  padding: 0 5%;
}

.footer-about {
  flex: 1 1 300px;
}

.footer-about img {
  max-width: 170px;
  margin-bottom: 25px;
  filter: drop-shadow(0px 0px 8px rgba(255, 0, 38, 0.3));
}

.footer-about p {
  color: var(--light-gray);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-links, .footer-contact, .footer-social {
  flex: 1 1 220px;
}

.footer-top h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
  font-weight: 600;
}

.footer-top h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 15px;
}

.footer-links ul li a {
  color: var(--light-gray);
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
  transform: translateX(7px);
}

.footer-contact p {
  color: var(--light-gray);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.footer-contact p i {
  color: var(--secondary-color);
  margin-right: 12px;
  min-width: 22px;
  font-size: 1.1rem;
}

.social-icons {
  display: flex;
  gap: 18px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: var(--medium-gray);
  color: var(--primary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 0, 38, 0.3);
}

.footer-bottom {
  background-color: var(--background-color);
  padding: 25px 5%;
  text-align: center;
}

.footer-legal {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-legal a {
  color: var(--light-gray);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-legal a:hover {
  color: var(--secondary-color);
}

.footer-bottom p {
  color: var(--light-gray);
  font-size: 0.9rem;
}

/* Efectos de animación para elementos */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 0.8s ease forwards;
}

/* Elementos personalizados: Divisores de sección */
.section-divider {
  width: 100%;
  height: 100px;
  overflow: hidden;
  position: relative;
}

.divider-wave {
  position: absolute;
  width: 100%;
  height: 100px;
  background: var(--dark-gray);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 65%);
}

/* Botones adicionales y animados */
.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid var(--secondary-color);
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 20px;
}

.btn-secondary:hover {
  background-color: var(--hover-effect);
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}

/* Media Queries mejorados */
@media (max-width: 1200px) {
  .info-boxes-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  section {
    padding: 70px 5%;
  }
  
  .info-boxes-container {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 5%;
  }
  
  header {
    padding: 15px 4%;
  }

  .navbar {
    display: none;
    width: 100%;
    height: 100vh;
    background-color: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
    padding: 100px 0 30px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 100;
  }

  .navbar.active {
    display: flex;
  }

  #menu-icon {
    display: block;
  }

  .navbar a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    width: 70%;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar a:last-child {
    border-bottom: none;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-description {
    font-size: 1rem;
  }
  
  .info-box {
    padding: 30px 25px;
  }
  
  .footer-top {
    gap: 40px;
  }
  
  .footer-top h3 {
    text-align: center;
  }
  
  .footer-top h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links ul li {
    text-align: center;
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .footer-about {
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  section {
    padding: 50px 4%;
  }
  
  header {
    padding: 12px 4%;
  }
  
  .logo img {
    width: 90px;
  }
  
  .btn-login {
    padding: 8px 20px;
    font-size: 0.85rem;
  }
  
  .info-boxes-container {
    grid-template-columns: 1fr;
  }
  
  .info-box {
    padding: 25px 20px;
  }
  
  .about-us {
    padding: 70px 4%;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 10px;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 375px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .btn-login {
    padding: 7px 18px;
    font-size: 0.8rem;
  }
}