/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #7b2cbf 0%, #6a1b9a 50%, #4a148c 100%);
  color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(123, 44, 191, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.lang-option:hover {
  background: rgba(255, 123, 0, 0.2);
}

.lang-option.active {
  background: linear-gradient(45deg, #ff7b00, #ff4500);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 123, 0, 0.3);
}

.flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.flag-es {
  background: linear-gradient(to bottom, #c60b1e 33.33%, #ffc400 33.33%, #ffc400 66.66%, #c60b1e 66.66%);
}

.flag-en {
  background: linear-gradient(to bottom,
      #012169 0%, #012169 33.33%,
      #ffffff 33.33%, #ffffff 66.66%,
      #012169 66.66%, #012169 100%);
  position: relative;
}

.flag-en::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(45deg, transparent 40%, #c8102e 40%, #c8102e 60%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, #c8102e 40%, #c8102e 60%, transparent 60%),
    linear-gradient(to right, transparent 45%, #c8102e 45%, #c8102e 55%, transparent 55%),
    linear-gradient(to bottom, transparent 45%, #c8102e 45%, #c8102e 55%, transparent 55%);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 80px;
  height: 80px;
  background: url('/img/LOGO_byTokio_REDONDO_001.png') no-repeat center center;
  background-size: contain;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(45deg, #ff7b00, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s ease-in-out infinite alternate;
}

/* Team Photos */
.FotoJavier {
  width: 210px;
  height: 210px;
  background: url('/assets/nosotros/img/descarga_6.png') no-repeat center center;
  background-size: contain;
}

.FotoLara {
  width: 210px;
  height: 210px;
  background: url('/assets/nosotros/img/descarga_90.png') no-repeat center center;
  background-size: contain;
}

.FotoAna {
  width: 210px;
  height: 210px;
  background: url('/assets/nosotros/img/descarga_73.png') no-repeat center center;
  background-size: contain;
}

.FotoVinchu {
  width: 410px;
  height: 410px;
  background: url('/assets/nosotros/img/descarga_76.png') no-repeat center center;
  background-size: contain;
}

.FotoLuisfa {
  width: 410px;
  height: 410px;
  background: url('/assets/nosotros/img/descarga_10.png') no-repeat center center;
  background-size: contain;
}

.FotoPato {
  width: 410px;
  height: 410px;
  background: url('/assets/nosotros/img/descarga_92.png') no-repeat center center;
  background-size: contain;
}

.FotoIvan {
  width: 210px;
  height: 210px;
  background: url('/assets/nosotros/img/descarga_20.png') no-repeat center center;
  background-size: contain;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 5px #ff7b00);
  }

  to {
    filter: drop-shadow(0 0 20px #ff4500);
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #ff7b00;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #ff7b00, #ff4500);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Modern Hero Section */
.modern-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: linear-gradient(135deg, #4a148c 0%, #7b2cbf 100%);
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;
}

.video-fade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 1.5;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.video-fade-overlay.fade-in {
  opacity: 1;
}

.modern-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(74, 20, 140, 0.7) 0%, rgba(123, 44, 191, 0.7) 100%);
  z-index: 2;
}

.modern-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.modern-hero h1 {
  font-size: 5.5vw;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.modern-hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

.typewriter-cursor {
  color: #ff7b00;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.glow-text {
  text-shadow: 0 0 10px rgba(255, 123, 0, 0.5);
}

/* Modern Sections */
.modern-section {
  padding: 120px 0;
  position: relative;
  background-color: #012169;
}

.modern-section-title {
  font-size: 3.5vw;
  font-weight: 800;
  margin-bottom: 80px;
  color: white;
  text-transform: uppercase;
  letter-spacing: -1px;
  text-align: center;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #ff7b00, #ff4500);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ff7b00;
}

.service-description {
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.service-example {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 10px;
  border-left: 3px solid #ff7b00;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.8;
}

/* Team Section */
.modern-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.modern-team-member {
  text-align: center;
}

.modern-team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid rgba(255, 123, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-team-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: white;
}

.modern-team-role {
  color: #ff7b00;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(45deg, #ff7b00, #ff4500);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 123, 0, 0.3);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 123, 0, 0.4);
}

/* Contact Section */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #ffffff, #ff7b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-input {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
  outline: none;
  border-color: #ff7b00;
  background: rgba(255, 255, 255, 0.08);
}

.form-textarea {
  grid-column: 1 / -1;
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #ff7b00;
}

.footer-section p,
.footer-section a {
  opacity: 0.8;
  text-decoration: none;
  color: #ffffff;
}

.footer-section a:hover {
  color: #ff7b00;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  opacity: 0.6;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

.service-card:nth-child(5) {
  animation-delay: 0.5s;
}

.service-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  nav {
    padding: 1rem 15px;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 1;
  }

  .language-switcher {
    order: 2;
    padding: 0.4rem;
    gap: 0.3rem;
  }

  .lang-option {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(123, 44, 191, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 0;
    transition: left 0.3s ease;
    gap: 2rem;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1.2rem;
    width: 100%;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .modern-hero {
    min-height: 90vh;
    padding: 100px 0 2rem;
    text-align: center;
  }

  .modern-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .modern-hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .modern-section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .form-group {
    grid-template-columns: 1fr;
  }

  .contact-content {
    padding: 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .modern-section {
    padding: 3rem 0;
  }
}

/* Tablet Portrait */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .modern-hero h1 {
    font-size: 3.5rem;
  }

  .modern-hero p {
    font-size: 1.2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .modern-section-title {
    font-size: 2.5rem;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .modern-hero {
    min-height: 100vh;
    padding: 120px 0 2rem;
  }

  .modern-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .modern-hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .nav-links {
    height: calc(100vh - 70px);
    top: 70px;
    padding: 1rem 0;
    gap: 1rem;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .modern-section {
    padding: 2rem 0;
  }

  .modern-section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  nav {
    padding: 1rem 10px;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .modern-hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .modern-hero p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .modern-section-title {
    font-size: 1.8rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .service-title {
    font-size: 1.3rem;
  }

  .service-description {
    font-size: 0.9rem;
  }

  .service-example {
    font-size: 0.8rem;
    padding: 0.8rem;
  }

  .language-switcher {
    padding: 0.3rem;
  }

  .lang-option {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }

  .flag {
    width: 14px;
    height: 14px;
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
    padding: 0 40px;
  }

  .modern-hero h1 {
    font-size: 4.5rem;
  }

  .modern-hero p {
    font-size: 1.4rem;
  }

  .modern-section-title {
    font-size: 3.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Focus states for accessibility */
.nav-links a:focus,
.lang-option:focus,
.cta-button:focus,
.form-input:focus,
.mobile-menu-toggle:focus {
  outline: 2px solid #ff7b00;
  outline-offset: 2px;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .service-card {
    border: 2px solid rgba(255, 255, 255, 0.3);
  }

  .form-input {
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
}

/* Estilos para el botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  margin-top: 2px;
}

/* Animación de pulso para llamar la atención */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Para dispositivos móviles */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}

/* Estilos para el preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #0a0a2a, #1a1a4a, #2a2a6a);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out;
  overflow: hidden;
}

.space-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  animation: twinkle 3s infinite alternate;
}

.star:nth-child(1) {
  top: 15%;
  left: 20%;
  width: 3px;
  height: 3px;
  animation-delay: 0.5s;
}

.star:nth-child(2) {
  top: 25%;
  left: 80%;
  width: 2px;
  height: 2px;
  animation-delay: 1s;
}

.star:nth-child(3) {
  top: 40%;
  left: 40%;
  width: 4px;
  height: 4px;
  animation-delay: 1.5s;
}

.star:nth-child(4) {
  top: 60%;
  left: 60%;
  width: 2px;
  height: 2px;
  animation-delay: 0.8s;
}

.star:nth-child(5) {
  top: 75%;
  left: 30%;
  width: 3px;
  height: 3px;
  animation-delay: 2s;
}

.star:nth-child(6) {
  top: 20%;
  left: 65%;
  width: 2px;
  height: 2px;
  animation-delay: 2.5s;
}

.planet {
  position: absolute;
  border-radius: 50%;
}

.planet-1 {
  width: 70px;
  height: 70px;
  top: 10%;
  right: 15%;
  background: radial-gradient(circle at 30% 30%, #ff9e4a, #ff7b00, #e65c00);
  box-shadow: 0 0 20px rgba(255, 123, 0, 0.6);
}

.planet-2 {
  width: 50px;
  height: 50px;
  bottom: 20%;
  left: 10%;
  background: radial-gradient(circle at 30% 30%, #7b2cbf, #5a189a, #3c096c);
  box-shadow: 0 0 15px rgba(123, 44, 191, 0.6);
}

.planet-3 {
  width: 60px;
  height: 60px;
  top: 50%;
  right: 5%;
  background: radial-gradient(circle at 30% 30%, #ff6b35, #ff4500, #cc3700);
  box-shadow: 0 0 18px rgba(255, 107, 53, 0.6);
  animation: floatPlanet 25s ease-in-out infinite;
}

.planet-4 {
  width: 45px;
  height: 45px;
  bottom: 35%;
  right: 25%;
  background: radial-gradient(circle at 30% 30%, #ffd60a, #ffc300, #ff9500);
  box-shadow: 0 0 12px rgba(255, 214, 10, 0.6);
  animation: floatPlanet 30s ease-in-out infinite reverse;
}

.planet-5 {
  width: 55px;
  height: 55px;
  top: 30%;
  left: 20%;
  background: radial-gradient(circle at 30% 30%, #00b4d8, #0077b6, #023e8a);
  box-shadow: 0 0 16px rgba(0, 180, 216, 0.6);
  animation: floatPlanet 35s ease-in-out infinite;
}

.asteroid {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, #9d4edd, #7b2cbf);
  border-radius: 35% 65% 70% 30% / 30% 30% 70% 70%;
  animation: floatAsteroid 20s linear infinite;
}

.asteroid:nth-child(1) {
  top: 25%;
  left: 5%;
  animation-duration: 25s;
  animation-delay: 0s;
}

.asteroid:nth-child(2) {
  top: 65%;
  left: 85%;
  animation-duration: 20s;
  animation-delay: 5s;
  width: 15px;
  height: 15px;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.rocket-loader {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.rocket-animation {
  width: auto;
  height: 240px;
  display: block;
  transition: transform 0.1s ease-out;
}

.rocket-window {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 25px;
  background: #0a0a1a;
  border-radius: 50%;
  border: 2px solid #ff7b00;
  z-index: 3;
  box-shadow: 0 0 10px #ff7b00;
}

.rocket-flap {
  position: absolute;
  width: 12px;
  height: 60px;
  background: linear-gradient(to right, #ff5500, #ff7b00);
  top: 30px;
  z-index: 2;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 123, 0, 0.6);
}

.flap-left {
  left: -10px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.flap-right {
  right: -10px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.rocket-fin {
  position: absolute;
  width: 20px;
  height: 40px;
  background: linear-gradient(to bottom, #ff7b00, #ff9e4a);
  z-index: 1;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 0 8px #ff7b00;
}

.fin-left {
  bottom: -20px;
  left: 0;
  transform: rotate(-45deg);
  transform-origin: bottom right;
}

.fin-right {
  bottom: -20px;
  right: 0;
  transform: rotate(45deg);
  transform-origin: bottom left;
}

.rocket-nose {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 30px solid #ff7b00;
  z-index: 3;
  filter: drop-shadow(0 0 5px #ff7b00);
}

.rocket-fire {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 60px;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.flame {
  position: absolute;
  width: 20px;
  height: 50px;
  background: linear-gradient(to bottom, #ff9e4a, #ff7b00, #ff5500);
  border-radius: 50% 50% 20% 20%;
  bottom: auto;
  top: 0;
  opacity: 0.9;
  animation: flameAnimation 0.8s infinite alternate;
  box-shadow: 0 0 15px #ff7b00;
}

.flame-left {
  transform: translateX(-10px) rotate(-10deg);
  animation-delay: 0.2s;
}

.flame-right {
  transform: translateX(10px) rotate(10deg);
  animation-delay: 0.4s;
}

.flame-center {
  width: 25px;
  height: 60px;
  animation-delay: 0.1s;
}

.rocket-trail {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 40px;
  background: rgba(255, 123, 0, 0.6);
  border-radius: 50%;
  filter: blur(5px);
  animation: trailAnimation 1.2s infinite;
}

.progress-bars {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 120px;
  justify-content: space-between;
}

.progress-bar {
  width: 20px;
  height: 18px;
  background: linear-gradient(135deg, #ff9e4a, #ff7b00);
  border: 2px solid #ff7b00;
  border-radius: 3px;
  transition: all 0.4s ease;
  box-shadow: 0 0 10px rgba(255, 123, 0, 0.4);
}

.progress-bar.active-white {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress-bar.active-red {
  background: linear-gradient(135deg, #ff5500, #ff0000);
  border-color: #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

@keyframes flameAnimation {
  0% {
    height: 40px;
    opacity: 0.7;
  }

  100% {
    height: 60px;
    opacity: 1;
  }
}

@keyframes trailAnimation {
  0% {
    height: 20px;
    opacity: 0.3;
  }

  50% {
    height: 40px;
    opacity: 0.6;
  }

  100% {
    height: 20px;
    opacity: 0.3;
  }
}

@keyframes pulseDots {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}

@keyframes floatAsteroid {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(-100vw, 100vh) rotate(360deg);
  }
}

.rocket-loader {
  animation: floatRocket 3s ease-in-out infinite;
}

@keyframes floatRocket {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Estilos para el botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  margin-top: 2px;
}

/* Animación de pulso para llamar la atención */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Para dispositivos móviles */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }

  .rocket-loader {
    width: 150px;
    height: 150px;
  }

  .rocket-container {
    width: 120px;
    height: 120px;
  }

  .rocket-body {
    width: 40px;
    height: 90px;
  }

  .rocket-nose {
    top: -20px;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 25px solid #ff7b00;
  }

  .rocket-window {
    width: 20px;
    height: 20px;
    top: 20px;
  }

  .planet-1 {
    width: 50px;
    height: 50px;
    top: 15%;
    right: 10%;
  }

  .planet-2 {
    width: 40px;
    height: 40px;
    bottom: 15%;
    left: 5%;
  }
}

/* Header Audio Player */
.header-audio-player {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 123, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-width: 400px;
}

.header-audio-player:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 123, 0, 0.5);
}

.audio-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.audio-btn {
  background: linear-gradient(45deg, #ff7b00, #ff4500);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.audio-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 123, 0, 0.4);
}

.audio-btn:active {
  transform: scale(0.95);
}

.audio-btn.stop-btn {
  background: linear-gradient(45deg, #c60b1e, #8b0000);
}

.audio-btn.mute-btn {
  background: rgba(255, 255, 255, 0.2);
}

.audio-btn.mute-btn.muted {
  background: rgba(255, 255, 255, 0.1);
  opacity: 0.6;
}

.audio-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.audio-track-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff7b00;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.audio-track-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.audio-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.audio-progress:hover {
  height: 8px;
  transition: height 0.2s ease;
}

.audio-progress-bar {
  height: 100%;
  background: linear-gradient(to right, #ff7b00, #ff4500);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 123, 0, 0.5);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .header-audio-player {
    padding: 0.4rem 0.8rem;
    gap: 0.7rem;
  }

  .audio-info {
    min-width: 120px;
    max-width: 150px;
  }

  .audio-track-name {
    font-size: 0.75rem;
  }

  .audio-track-time {
    font-size: 0.7rem;
  }

  .audio-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {

  /* Solo fijar posición si está en el header (no en hero section) */
  .nav-right .header-audio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-right .header-audio-player .audio-info {
    display: none;
  }

  .nav-right .header-audio-player:hover .audio-info {
    display: flex;
  }

  /* Cuando está en hero section (modelos), mantener diseño normal */
  .projects-hero .header-audio-player {
    position: relative;
    width: 100%;
    max-width: 400px;
  }
}