/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #fff;
  color: #222;
  line-height: 1.6;
}

/* LOGO flotante */
.logo {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  height: 60px;
}

.logo img {
  height: 100%;
  width: auto;
}

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

  .nav-links {
    display: none !important; /* 🔒 oculta menú horizontal en móviles */
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 10px;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    z-index: 1001;
  }

  .nav-links.show {
    display: flex !important; /* ✅ solo visible si se activa */
  }
}



/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: white;
  background-color: #d50000;
  background-image: none;
  padding: 0;
  margin: 0;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  z-index: 450;
}

.overlay-left {
  display: none;
}

.hero-content {
  position: relative;
  margin-top: 0;
  padding-top: 20px;
  text-align: center;
  z-index: 500;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: white;
}

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

/* Botón Hero */
.btn-hero {
  display: inline-block;
  background-color: #FFD700;
  color: #000;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: float 3s ease-in-out infinite;
}

.btn-hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, transparent 10.01%);
  background-position: center;
  transform: scale(10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.btn-hero:hover::after {
  transform: scale(0);
  opacity: 1;
}

.btn-hero:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

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

/* Lobo promocional */
@keyframes flotar {
  0% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-3px); }
  100% { transform: rotate(-5deg) translateY(0); }
}

.lobo-promocional {
  display: inline-block;
  background-color: #e31b23;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transform: rotate(-5deg);
  position: relative;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 1.9rem;
  animation: flotar 2.5s ease-in-out infinite;
}

/* Estilos por defecto (escritorio) */
.hero-desktop {
  display: block;
}

.hero-mobile {
  display: none;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .hero-desktop {
    display: none;
  }

  .hero-mobile {
    display: block;
    width: 100%;
  }

  .banner-movil {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}



/* Planes */
.planes {
  padding: 3rem 2rem;
  background: #FFF0DC;
  text-align: center;
}

.planes h2 {
  margin-bottom: 2rem;
  font-size: 2.2rem;
  font-weight: 700;
}

.plan-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.plan-card {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  width: 280px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #e31b23;
}

.plan-card .price {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #111;
}

.plan-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.plan-card ul li {
  margin-bottom: 0.6rem;
  color: #444;
}

/* Botones estilo Nubyx */
.btn-nubyx {
  background: #e31b23;
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  border-radius: 25px;
  display: inline-block;
  text-align: center;
  margin-bottom: 0.8rem;
  transition: background-color 0.3s ease;
}

.btn-nubyx:hover {
  background: #b4161b;
}

.btn-nubyx-secondary {
  background: transparent;
  color: #e31b23;
  border: 2px solid #e31b23;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 15px;
  display: block;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Beneficios */
.beneficios {
  padding: 3rem 2rem;
  text-align: center;
}

.beneficios h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.beneficios ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
  color: #555;
}

.beneficios ul li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Contacto */
.contacto {
  padding: 3rem 2rem;
  background: #eee;
  max-width: 500px;
  margin: 0 auto 3rem;
  border-radius: 10px;
}

.contacto h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

#contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

#contact-form button.btn-primary {
  width: 100%;
  background: #e31b23;
  border: none;
  color: white;
  font-weight: 700;
  padding: 1rem;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact-form button.btn-primary:hover {
  background: #b4161b;
}

#form-message {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  color: #e31b23;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #000;
  color: #fff;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content,
  .hero-image {
    max-width: 100%;
  }

  .plan-cards {
    flex-direction: column;
    align-items: center;
  }
}






.beneficio {
  margin-bottom: 2rem;
}

.beneficio-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.globo-container {
  flex-shrink: 0;
}

.globo {
  position: relative;
  background-color: #e63946; /* rojo */
  color: yellow;
  padding: 5px 10px;
  border-radius: 12px;
  display: inline-block;
  font-weight: bold;
  max-width: 120px;
  line-height: 1.0;
}

.balanceo {
  animation: balanceo 1.5s infinite ease-in-out;
}

@keyframes balanceo {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@media (max-width: 600px) {
  .globo {
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
    display: inline-block;
    white-space: normal;
  }

  .beneficio-header h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .beneficio-header h3 .globo {
    margin-bottom: 0.2rem;
  }
}

.beneficio p {
  margin-left: 2.5em; /* ajusta el valor para controlar la indentación */
  text-indent: 0;
}

#confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* Para que no interfiera con clicks */
  z-index: 9999;
}

.contenido-beneficios {
  max-width: 800px;        /* ancho máximo deseado */
  margin: 0 auto;          /* centra horizontalmente */
  padding: 0 1rem;         /* espacio lateral para móviles */
  box-sizing: border-box;  /* incluye padding en el ancho total */
}

/* Color de los Titulares de Beneficios */
.verde-intenso {
  color: #22c55e;
}

/* GLOBO Y COLITA ANIMADOS */
.globo-rojo {
  display: inline-block;
  background: #e3342f; /* rojo inicial */
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  position: relative;
  animation: colorShift 6s infinite ease-in-out, floatUpDown 4s infinite ease-in-out;
}

/* Colita abajo a la derecha animada */
.globo-rojo::after {
  content: "";
  position: absolute;
  bottom: -12px;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #e3342f; /* color inicial */
  animation: colaColorShift 6s infinite ease-in-out, floatUpDown 4s infinite ease-in-out;
}

/* Animación de color con efecto elegante de ida y vuelta */
@keyframes colorShift {
  0%   { background-color: #e3342f; }
  25%  { background-color: #ff6a00; }
  50%  { background-color: #ffd600; }
  75%  { background-color: #990000; }
  100% { background-color: #6b21a8; }
  125% { background-color: #990000; }
  150% { background-color: #ffd600; }
  175% { background-color: #ff6a00; }
  200% { background-color: #e3342f; }
}

@keyframes colaColorShift {
  0%   { border-top-color: #e3342f; }
  25%  { border-top-color: #ff6a00; }
  50%  { border-top-color: #ffd600; }
  75%  { border-top-color: #990000; }
  100% { border-top-color: #6b21a8; }
  125% { border-top-color: #990000; }
  150% { border-top-color: #ffd600; }
  175% { border-top-color: #ff6a00; }
  200% { border-top-color: #e3342f; }
}

/* Movimiento suave de subida y bajada */
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}



#texto-fantasma {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.maquina {
  font-size: inherit;         /* Mantiene el tamaño del diseño original */
  white-space: nowrap;        /* Evita saltos de línea mientras escribe */
  overflow: hidden;
  position: relative;
  height: 1.5em;               /* Ajusta a la altura del texto que usas */
}

#texto-visible,
#maquina-negrita {
  display: inline;
}

/* Si deseas reservar espacio sin fantasma visible */
.maquina::after {
  content: "Planes de hosting desde S/50 + IGV";
  visibility: hidden;
  display: block;
  height: 0;
}




/* Botón común (igual a los otros botones) */
.btn-contratar {
  background-color: #dc2626; /* rojo intenso */
  color: white;
  padding: 0.75rem 1.0rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

/* Efecto de flotación */
.flota {
  animation: flotarSuave 4s ease-in-out infinite;
}

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

/* Texto tipo máquina */
.maquina-texto {
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  min-width: 90px;
  color: white;
}

/* Cursor parpadeante 
.cursor {
  display: inline-block;
  width: 1ch;
  background-color: white;
  animation: blink 1s step-start infinite;
  margin-left: 4px;
}*/

@keyframes blink {
  50% { opacity: 0; }
}


.flota {
  animation: flotar 2s ease-in-out infinite;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #dc2626; /* Rojo */
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

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

@media (max-width: 600px) {
  .hero {
    min-height: 100vh; /* Asegura altura de pantalla completa */
    padding-top: 70px;  /* Espacio extra si el menú superior es fijo */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-content {
    padding: 1rem;
    text-align: center;
    z-index: 300;
    position: relative;
  }
}
/* Clase para centrar la imagen y limitar su tamaño */
.firmas {
  /* Centrar horizontalmente usando margin auto */
  display: block;           /* Necesario para que margin auto funcione con img */
  margin: 0 auto;           /* Margen izquierdo y derecho automáticos para centrar */

  /* Limitar el ancho máximo de la imagen */
  max-width: 90%;           /* Puedes ajustar esto al gusto (50%, 60%, etc.) */
  height: auto;             /* Mantener la relación de aspecto */

  /* Opcional: un marco o sombra si quieres darle más "encajonado" visual */
 /*  border: 1px solid #ccc;   Borde gris claro */
  padding: 0px;            /* Espacio interno alrededor de la imagen */
  /*box-shadow: 0 0 10px rgba(0,0,0,0.1);  Sombra suave */
  background: #fff;         /* Fondo blanco para que se vea más limpio */
}

/* Estilos generales 
.firmas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}*/

/* Ocultar versión móvil por defecto */
.firmas.movil {
  display: none;
}

/* Mostrar versión móvil y ocultar escritorio en pantallas pequeñas */
@media (max-width: 768px) {
  .firmas.escritorio {
    display: none;
  }
  .firmas.movil {
    display: block;
  }
}

.hero {
  position: relative;
}

.hero-content {
  position: absolute;
  top: 20%;
  left: 10%;
  text-align: left;
  z-index: 200;
  color: white;
}

.hero-mobile .hero-content {
  top: 15%;
  left: 5%;
  right: 5%;
  text-align: center;
}

/* Control de visibilidad */
.hero-desktop {
  display: block;
}

.hero-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero-desktop {
    display: none;
  }

  .hero-mobile {
    display: block;
    position: relative;
  }
}


/* Reglas específicas solo para móviles */
@media (max-width: 768px) {
  .hero-desktop {
    display: none;
  }

  .hero-mobile {
    display: block;
    position: relative;
  }

  .hero-mobile .hero-content {
    position: static;     /* ← esto es clave */
    text-align: center;
    z-index: 1200;
  }

  .hero-mobile img.hero-image {
    display: block;
    width: 100%;
    height: auto;
  }
}
/* ==================== LOGO flotante arriba izquierda ==================== */
.logo {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  height: 60px;
}

.logo img {
  height: 100%;
  width: auto;
}

/* ==================== HEADER fijo con fondo negro al 60% ==================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 80px 20px 140px; /* espacio al logo flotante */
  background-color: rgba(0, 0, 0, 0.6); /* negro con opacidad */
  z-index: 1000;
  backdrop-filter: blur(2px); /* opcional: vidrio suave */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ==================== NAVBAR FLEX horizontal en escritorio ==================== */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Menú horizontal por defecto */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #fff; /* blanco sobre fondo negro */
  font-weight: bold;
}

/* ==================== HAMBURGUESA: OCULTA EN ESCRITORIO ==================== */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  margin-left: auto;
  z-index: 1001;
}

/* ==================== RESPONSIVE: móviles ==================== */
@media (max-width: 768px) {
  header {
    padding: 20px 20px 20px 20px;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
  }

  .nav-links {
    display: none !important;
    flex-direction: column;
    position: fixed;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    border-radius: 10px;
    z-index: 1000;
  }

  .nav-links.show {
    display: flex !important;
  }

  .nav-links li a {
    color: #fff;
    padding: 10px 0;
  }
}

/* ==================== BODY con espacio arriba ==================== */
body {
  padding-top: 100px; /* evita que el contenido quede oculto tras el header */
}

.logo {
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 1000;
  height: 160px;
}

.logo img {
  height: 100%;
  width: auto;
}

/* Logo fijo, encima de todo */
.logo {
  position: fixed;
 z-index: 1100; /* más alto que el header */
  height: 200px;
}

.logo img {
  height: 100%;
  width: auto;
}

/* Header con padding para que no tape el logo */
header {
  padding-left: 100px; /* ajustar según el tamaño del logo */
  z-index: 1000; /* menor que logo */
}

@media (max-width: 768px) {
  .logo {
    height: 120px; /* más bajo para que sea cuadrado */
    width: 120px;  /* cuadrado */
    overflow: hidden;
    top: 0;
    left: 0;
  }

  .logo img {
    transform: translateY(-40px); /* desplaza hacia arriba para mostrar la parte inferior */
  }
}

.borde-amarillo {
  color: black;
  text-shadow:
    -1px -1px 0 yellow,
     1px -1px 0 yellow,
    -1px  1px 0 yellow,
     1px  1px 0 yellow;
}


.franja-roja {
  position: absolute;     /* para siga al scroll de pantalla */
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: red;
  z-index: 100;        /* menor que header y logo (que tienen 1000+) */
}

/* Ocultar en móviles */
@media (max-width: 768px) {
  .franja-roja {
    display: none;
  }
}

/* La franja roja solo visible en escritorio */
.franja-roja {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px; /* la altura que mencionaste */
  background-color: red;
  z-index: 0; /* detrás de logo y menú */
  display: block;
}

/* En móviles, ocultamos la franja roja */
@media (max-width: 768px) {
  .franja-roja {
    display: none;
  }

  /* Eliminar padding-top del body para que hero esté en el tope */
  body {
    padding-top: 0 !important;
  }

  /* Ajustar header para que no ocupe mucho espacio */
  header {
    padding: 15px 20px;
  }

  /* Que hero móvil se pegue al top, sin margen ni padding arriba */
  .hero-mobile {
    margin-top: 0;
    padding-top: 0;
  }
}


#scrollToTopBtn {
  position: fixed;
  bottom: 10%;
  right: 10%;
  z-index: 999;
  background-color: #dc2626; /* rojo */
  border: none;
  border-radius: 0; /* cuadrado */
  padding: 16px;
  cursor: pointer;
  display: none;
  transition: opacity 0.3s ease;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
}

/* Flecha minimalista con CSS */
#scrollToTopBtn .arrow-up {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(135deg);
  margin-top: 4px;
}

/* Mostrar el botón al hacer scroll */
#scrollToTopBtn.show {
  display: flex;
}

/* Opcional: ajustar tamaño y margen en escritorio */
@media (min-width: 768px) {
  #scrollToTopBtn {
    width: 56px;
    height: 56px;
    padding: 18px;
    bottom: 5%;
    right: 5%;
  }
}
