/* ===== RESET Y CONFIGURACIÓN BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(
    135deg,
    #0f0f23 0%,
    #1a1a2e 25%,
    #16213e 50%,
    #0f3460 75%,
    #533483 100%
  );
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 107, 107, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 183, 77, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(147, 51, 234, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* ===== LAYOUT PRINCIPAL ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* ===== HEADER Y LOGO ===== */
.header {
  text-align: center;
  margin-bottom: 3rem;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    #ff6b6b 0%,
    #ffa726 25%,
    #ab47bc 50%,
    #42a5f5 75%,
    #26c6da 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 40px rgba(255, 107, 107, 0.8));
  }
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #ffa726;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(255, 167, 38, 0.6);
  opacity: 0.9;
  letter-spacing: 0.05em;
}

/* ===== NAVEGACIÓN ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff6b6b;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  background: rgba(255, 107, 107, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.back-link:hover {
  color: #ffffff;
  background: rgba(255, 107, 107, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

/* ===== TIPOGRAFÍA ===== */
h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: #ffa726;
  text-shadow: 0 0 15px rgba(255, 167, 38, 0.5);
}

p {
  margin-bottom: 1rem;
  color: #e0e0e0;
  text-shadow: 0 0 10px rgba(224, 224, 224, 0.1);
}

ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  color: #e0e0e0;
  text-shadow: 0 0 10px rgba(224, 224, 224, 0.1);
}

/* ===== CONTENIDO PRINCIPAL ===== */
.content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.tagline {
  font-size: 1.2rem;
  font-weight: 300;
  color: #ffa726;
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(255, 167, 38, 0.5);
}

.company-info {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #b0b0b0;
  line-height: 1.6;
  padding: 1.5rem;
}

/* ===== BOTONES Y ENLACES ===== */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
  border: none;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(255, 107, 107, 0.6);
  background: linear-gradient(135deg, #ff5252 0%, #ff9800 100%);
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

/* ===== INFORMACIÓN DE CONTACTO ===== */
.contact-info {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #42a5f5;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  background: rgba(66, 165, 245, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(66, 165, 245, 0.2);
}

.contact-item:hover {
  color: #ffffff;
  background: rgba(66, 165, 245, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(66, 165, 245, 0.3);
}

.contact-item i {
  font-size: 1.2rem;
  color: #26c6da;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #b0b0b0;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-links a {
  color: #ab47bc;
  text-decoration: none;
  font-size: 0.8rem;
  margin: 0 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(171, 71, 188, 0.1);
  backdrop-filter: blur(10px);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(171, 71, 188, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(171, 71, 188, 0.3);
}

/* ===== WEBGL CANVAS ===== */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
  .container {
    max-width: 90%;
    padding: 1.5rem;
  }

  .logo {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .contact-info {
    gap: 1.5rem;
  }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
    max-width: 95%;
  }

  .content {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .logo {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .tagline {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .company-info {
    margin: 1.5rem 0;
  }

  .company-info p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .contact-info {
    flex-direction: column;
    gap: 1.2rem;
    margin: 2rem 0;
  }

  .contact-item {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    margin: 1.5rem 0;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .footer-links a {
    display: block;
    padding: 0.8rem;
    text-align: center;
    font-size: 0.9rem;
  }
}

/* Móviles grandes */
@media (max-width: 480px) {
  .container {
    padding: 1rem;
    max-width: 100%;
  }

  .content {
    padding: 1rem;
    margin: 0;
  }

  .logo {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }

  .subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .tagline {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  h1 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  h2 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }

  p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .company-info {
    margin: 1rem 0;
  }

  .company-info p {
    font-size: 0.85rem;
  }

  .contact-info {
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .contact-item {
    padding: 0.8rem;
    font-size: 0.85rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .contact-item i {
    font-size: 1.2rem;
  }

  .cta-button {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
    margin: 1rem 0;
  }

  .footer-links {
    gap: 0.6rem;
    margin-top: 1.5rem;
  }

  .footer-links a {
    padding: 0.7rem;
    font-size: 0.85rem;
  }

  .back-link {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
  .container {
    padding: 0.8rem;
  }

  .content {
    padding: 0.8rem;
  }

  .logo {
    font-size: 1.6rem;
  }

  .subtitle {
    font-size: 0.8rem;
  }

  .tagline {
    font-size: 0.8rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.85rem;
  }

  .contact-item {
    padding: 0.7rem;
    font-size: 0.8rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .footer-links a {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
}

/* Orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
  .container {
    padding: 1rem 2rem;
  }

  .logo {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .tagline {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .contact-item {
    flex: 1;
    min-width: 200px;
  }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.content {
  animation: fadeIn 0.8s ease-out;
}

.contact-item {
  animation: float 3s ease-in-out infinite;
}

.contact-item:nth-child(2) {
  animation-delay: 0.5s;
}

.contact-item:nth-child(3) {
  animation-delay: 1s;
}

/* ===== ENLACES ===== */
a {
  color: #42a5f5;
  text-decoration: underline;
  transition: all 0.3s ease;
}

a:hover {
  color: #26c6da;
  text-shadow: 0 0 10px rgba(38, 198, 218, 0.5);
}

/* ===== TEXTO DESTACADO ===== */
strong {
  color: #ffa726;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 167, 38, 0.3);
}

/* ===== LISTAS ESPECÍFICAS ===== */
ul li strong {
  color: #ffa726;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 167, 38, 0.3);
}

/* ===== EFECTOS ESPECIALES ===== */
.container::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 107, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
  z-index: -1;
}

.container::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(147, 51, 234, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite reverse;
  z-index: -1;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff6b6b, #ffa726);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff5252, #ff9800);
}
