* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: black;
  color: white;
}

/* NAVBAR */
.navbar {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 20px 50px;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

.logo img {
  height: 40px;
}

.nav-links a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}

/* BOT脫N */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff1a1a, #b30000);
  padding: 12px 25px;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 50px;
  background: url('../assets/img/backgrounds/hero-industrial.jpg') center/cover no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* AROS */
.rings {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 1;
}

.ring {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
}

/* ARO 1 (YA BIEN) */
.ring1 {
  width: 320px;
  height: 320px;

  background: conic-gradient(
    red 0deg 40deg,
    transparent 40deg 120deg,
    red 120deg 160deg,
    transparent 160deg 240deg,
    red 240deg 280deg,
    transparent 280deg 360deg
  );

  -webkit-mask: radial-gradient(circle, transparent 60%, black 61%);
  animation: spin 25s linear infinite;
}

/* 馃敶 ARO 2 (4 SEGMENTOS CORREGIDO) */
.ring2 {
  width: 220px;
  height: 220px;
  top: 50px;
  left: 50px;

  background: conic-gradient(
    rgba(255,255,255,0.6) 0deg 25deg,
    transparent 25deg 90deg,

    rgba(255,255,255,0.6) 90deg 115deg,
    transparent 115deg 180deg,

    rgba(255,255,255,0.6) 180deg 205deg,
    transparent 205deg 270deg,

    rgba(255,255,255,0.6) 270deg 295deg,
    transparent 295deg 360deg
  );

  -webkit-mask: radial-gradient(circle, transparent 60%, black 61%);
  animation: spin-rev 18s linear infinite;
}

/* 馃敶 ARO 3 (3 SEGMENTOS CORREGIDO) */
.ring3 {
  width: 120px;
  height: 120px;
  top: 100px;
  left: 100px;

  background: conic-gradient(
    red 0deg 40deg,
    transparent 40deg 120deg,

    red 120deg 160deg,
    transparent 160deg 240deg,

    red 240deg 280deg,
    transparent 280deg 360deg
  );

  -webkit-mask: radial-gradient(circle, transparent 55%, black 56%);
  animation: spin 12s linear infinite;
}


@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-rev {
  to { transform: rotate(-360deg); }
}

/* MEN脷 M脫VIL */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 1000;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  transition: right 0.4s ease;
  z-index: 1001;
}

.mobile-menu.active {
  right: 0;
}

/* ABOUT */
.about {
  padding: 100px 50px;
  text-align: center;
  background: #0a0a0a;
}

.about-text {
  max-width: 700px;
  margin: 0 auto 50px;
  color: #ccc;
}

.about-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.about-card {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 10px;
  width: 250px;
}

/* INTERACTIVO */
.interactive-section {
  height: 400vh;
  position: relative;
}

.interactive-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
    gap: 40px;
  padding: 0 60px;
}

.interactive-text {
  width: 50%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.step {
  position: absolute;
  top: 50%;
  left: 0; /* 馃敟 quitar el 50% */
  width: 100%;
  transform: translateY(-50%);
  opacity: 0;
  text-align: left;
  padding: 0 20px;
  transition: opacity 0.5s ease;

}

.step.active {
  opacity: 1;
  transform: translateY(-50%);
}

.step h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.subtitle {
  color: #ff1a1a;
  margin: 10px 0;
}

.step p {
  color: #ccc;
  margin-bottom: 10px;
    line-height: 1.6;
}

/* IM脕GENES */
.interactive-images {
  width: 50%;
  height: 100%;
  position: relative; /* 馃敟 clave */
  display: flex;
  align-items: center;
  justify-content: center;
    overflow: hidden; /* solo en el contenedor de im谩genes, no en el padre */
}

.interactive-images img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.interactive-images img.active {
  opacity: 1;
}
/* CTA */
.cta {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, #1a0000, #000);
}

/* FOOTER */
.footer {
  background: #050505;
  padding: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .interactive-section {
    height: 350vh;
    position: relative;
  }

  .interactive-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  /* 🔥 MÁS ESPACIO PARA EL TEXTO */
  .interactive-text {
    width: 100%;
    height: 55%; /* antes 50% */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  /* 🔥 MENOS ESPACIO PERO MEJOR USADO PARA LA IMAGEN */
  .interactive-images {
    width: 100%;
    height: 45%; /* antes 50% */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  /* 🔥 BAJAMOS EL TEXTO (CLAVE) */
  .step {
    position: absolute;
    top: 58%; /* antes 50% */
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    opacity: 0;
    text-align: center;
    padding: 0 20px;
    transition: opacity 0.5s ease;
  }

  .step.active {
    opacity: 1;
    transform: translateY(-50%);
  }

  /* 🔥 IMAGEN MÁS GRANDE Y MEJOR POSICIONADA */
  .interactive-images img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 95%; /* antes 85% */
    max-height: 90%; /* antes 100% */
    object-fit: cover;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  .interactive-images img.active {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

}
.hero {
  position: relative;
}

.rings {
  z-index: 2;
}

.hero::before {
  z-index: 1;
}

.hero-content {
  z-index: 3;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
   position: relative;
  margin: 15px 0;
  font-size: 1.2rem;
  transition: 0.3s;
}

/* 馃敟 Quitar azul del navegador */
.mobile-menu a:focus,
.mobile-menu a:active {
  outline: none;
  background: none;
}

/* 馃敟 Efecto rojo al interactuar */
.mobile-menu a:hover,
.mobile-menu a:active {
  color: #ff1a1a;
}

.mobile-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #ff1a1a;
  transition: 0.3s;
}

.mobile-menu a:hover::after {
  width: 100%;
}

.nav-links a {
  position: relative;
  color: white;
  text-decoration: none;
  margin: 0 10px;
  transition: 0.3s;
}

/* L铆nea animada */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #ff1a1a;
  transition: 0.3s;
}

/* Hover */
.nav-links a:hover {
  color: #ff1a1a;
}

.nav-links a:hover::after {
  width: 100%;
}

.about-card {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 10px;
  width: 250px;

  /* 馃敟 base para animaci贸n */
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

/* 馃敟 HOVER */
.about-card:hover {
  transform: translateY(-10px) scale(1.02); /* levanta */
  border: 1px solid #ff1a1a;   /* borde rojo */
  box-shadow: 0 15px 35px rgba(255, 0, 0, 0.25);
}

.about-card h3 {
  transition: 0.3s;
}

.about-card:hover h3 {
  color: #ff1a1a;
}

* {

  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

html, body {

}


/* ===== NAVEGACI脫N FLOTANTE ===== */

.floating-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3000;

  display: flex;
  flex-direction: column;
  gap: 10px;

  transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

/* 🔥 ocultar cuando menú está activo */
.floating-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 🔥 BOTONES (FIJAMOS TAMAÑO REAL) */
.floating-nav div {
  width: 40px;
  height: 40px;
  min-width: 40px;   /* 🔥 evita que crezcan */
  min-height: 40px;

  background: rgba(255,255,255,0.1);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  cursor: pointer;

  flex-shrink: 0; /* 🔥 clave para evitar deformaciones */
}

/* 🔥 ICONOS SVG (ESTE ERA EL PROBLEMA REAL) */
.floating-nav svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;

  stroke: white;
  fill: none;
  stroke-width: 2;

  display: block; /* 🔥 evita comportamientos raros */
}

/* ICONO ACTIVO */
.floating-nav div.active {
  border: 1px solid #ff1a1a;
  box-shadow: 0 0 15px rgba(255,0,0,0.6);
  transform: scale(1.1);
}
/* ===== MEJORAS VISUALES (SAFE MODE) ===== */

/* Animaci贸n m谩s suave en im谩genes */
.interactive-images img {
  transform: translate(-50%, -50%) scale(1.05);
  transition: all 0.6s ease;
}

.interactive-images img.active {
  transform: translate(-50%, -50%) scale(1);
}

/* Mejora 铆conos flotantes */
.floating-nav div {
  transition: all 0.3s ease;
}

.floating-nav div:hover {
  transform: scale(1.15);
  border: 1px solid #ff1a1a;
  box-shadow: 0 0 20px rgba(255,0,0,0.5);
}

/* ===== ICONOS SVG ===== */

.floating-nav svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  transition: 0.3s;
}

.floating-nav div:hover svg {
  stroke: #ff1a1a;
}

.floating-nav div.active svg {
  stroke: #ff1a1a;
}