/* === BASE GLOBAL === */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #0d0d0f;
  color: #f2f2f2;
  line-height: 1.7;
  margin: 0;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: 600;
}

p {
  color: #d1d1d1;
}

.text-muted {
  color: #b4b4b4 !important;
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* === LOGO === */

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 1px;
}

.logo .arzua {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  color: transparent;
}

.logo .dev {
  color: #f2f2f2;
}

/* === NAVBAR === */
.navbar {
  background: rgba(13, 13, 15, 0.95) !important;
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
}

.navbar a {
  color: #bdbdbd !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #fff !important;
}

/* === HERO SLIDER === */
.hero-slide {
  height: 90vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide .overlay {
  background: rgba(0, 0, 0, 0.55);
  width: 100%;
  height: 100%;
  padding: 0 1rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.hero-slide h1, 
.hero-slide h2 {
  text-shadow: 0 0 15px rgba(0,0,0,0.6);
}

/* === SECCIONES === */
section {
  padding: 5rem 0;
}

.bg-dark {
  background-color: #111115 !important;
}

.bg-black {
  background-color: #0a0a0c !important;
}

/* === TARJETAS === */
.card {
  background: rgba(20, 20, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.4);
}

.card h5, .card h4 {
  color: #8b5cf6;
  font-weight: 600;
}

.card p {
  color: #e0e0e0;
}

.service-card img {
  border-radius: 16px 16px 0 0;
}

/* === PROCESO === */
.step {
  background: rgba(30, 30, 40, 0.6);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.step .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: #f2f2f2;
}

.step small {
  color: #b8b8b8;
}

/* === PLANES / PRECIOS === */
.price-card {
  padding: 2.2rem 1.5rem;
  background: linear-gradient(180deg, rgba(25,25,30,0.95), rgba(15,15,20,0.95));
}

.price-card h5 {
  color: #ffffff;
  font-weight: 600;
}

.price-card .subtitle {
  color: #cccccc;
  font-size: 0.95rem;
}

.price-card .price {
  color: #6366f1;
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.price-card li {
  color: #dcdcdc;
  margin: 0.3rem 0;
}

/* === BOTONES === */
.btn-primary {
  background-color: #6366f1 !important;
  border: none;
  color: #fff !important;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #818cf8 !important;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: #8b5cf6;
  border-color: #8b5cf6;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #8b5cf6;
  color: #fff;
}

/* === PORTAFOLIO === */
.portfolio-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(25, 25, 30, 0.85);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-card:hover {
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.25);
  transform: translateY(-5px);
}

.portfolio-card .info {
  padding: 1rem;
}

.portfolio-card h5 {
  color: #8b5cf6;
  font-weight: 600;
}

.portfolio-card p {
  color: #d1d1d1;
}

/* === CONTACTO === */
#contacto {
  background: linear-gradient(180deg, #111115, #0d0d0f);
}

#contacto .btn-success {
  background-color: #22c55e !important;
  border: none;
}

#contacto .btn-success:hover {
  background-color: #16a34a !important;
}

/* === FOOTER === */
footer {
  background-color: #0a0a0c;
  color: #9b9b9b;
  border-top: 1px solid #1f1f24;
}

/* === ANIMACIONES === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.overlay-violet {
  background: linear-gradient(
    rgba(99, 102, 241, 0.35),
    rgba(0, 0, 0, 0.55)
  );
  width: 100%;
  height: 100%;
  padding: 0 1rem;
}
/* === PROCESO NUEVO === */
.process-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.process-bg {
  background-size: cover;
  background-position: center;
  height: 300px;
  position: relative;
  border-radius: 20px;
}

.process-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(20, 0, 40, 0.55),
    rgba(0, 0, 0, 0.7)
  );
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.process-overlay:hover {
  background: linear-gradient(
    rgba(99, 102, 241, 0.55),
    rgba(0, 0, 0, 0.7)
  );
}

.process-number {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  position: absolute;
  top: 10px;
  left: 20px;
}

/* === LOADER ARZUADEV === */
#loader {
  position: fixed;
  inset: 0;
  background: #0d0d0f;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  animation: fadeIn 1.2s ease-in-out;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 2px;
}

.logo .arzua {
  color: #fff;
  animation: shine 2s infinite linear;
}

.logo .dev {
  color: #6366f1;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #6366f1;
  border-radius: 50%;
  margin-top: 25px;
  animation: spin 1s linear infinite;
}

/* === ANIMACIONES === */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
  0% { text-shadow: 0 0 5px #6366f1, 0 0 10px #6366f1; }
  50% { text-shadow: 0 0 15px #818cf8, 0 0 25px #818cf8; }
  100% { text-shadow: 0 0 5px #6366f1, 0 0 10px #6366f1; }
}

/* === LÍNEA BRILLANTE BAJO EL NAVBAR ARZUADEV === */
.navbar {
  position: relative;
  z-index: 100;
}

/* Línea animada con brillo violeta */
.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a78bfa, #6366f1);
  background-size: 300% 100%;
  box-shadow: 0 0 8px #6366f1, 0 0 16px #818cf8;
  animation: glowLine 3s linear infinite;
  border-radius: 2px;
}

/* Efecto de movimiento del brillo */
@keyframes glowLine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === HOVER VIOLETA LUMINOSO EN NAVBAR === */
.navbar-nav .nav-link {
  color: #e5e7eb; /* gris claro por defecto */
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

/* Línea inferior brillante al hacer hover */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a78bfa, #6366f1);
  box-shadow: 0 0 8px #6366f1, 0 0 16px #818cf8;
  border-radius: 2px;
  transition: width 0.3s ease-in-out;
}

/* Efecto al pasar el cursor */
.navbar-nav .nav-link:hover {
  color: #a78bfa; /* violeta suave */
  text-shadow: 0 0 8px #818cf8, 0 0 16px #6366f1;
}

.navbar-nav .nav-link:hover::after {
  width: 60%;
}

/* Opción activa */
.navbar-nav .nav-link.active {
  color: #6366f1;
  text-shadow: 0 0 10px #6366f1;
}

.navbar-nav .nav-link.active::after {
  width: 60%;
}

#sobre-mi {
  background: linear-gradient(to bottom, #0c0c0f, #111);
  position: relative;
}

#sobre-mi h2 {
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tech-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(140, 82, 255, 0.05);
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(140, 82, 255, 0.3);
  border-color: #9b5fff;
}

.gradient-text {
  background: linear-gradient(90deg, #9b5fff, #7a37ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#sobre-mi p {
  max-width: 800px;
  margin: 0 auto;
}

.border-violet {
  border-color: #9b5fff !important;
}

.gradient-text {
  background: linear-gradient(90deg, #9b5fff, #7a37ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(140, 82, 255, 0.3);
  border-color: #9b5fff;
}

.modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.btn-close-white {
  filter: invert(1);
}

.footer {
  background: #0f0f13;
  border-top: 1px solid rgba(158, 0, 255, 0.3);
  color: #ccc;
  padding: 60px 0 20px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  align-items: start;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.footer-logo span {
  color: #9e00ff;
  text-shadow: 0 0 8px rgba(158, 0, 255, 0.8);
}

.footer-about p {
  margin-top: 10px;
  line-height: 1.6;
  color: #aaa;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-payments h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
  border-bottom: 2px solid rgba(158, 0, 255, 0.3);
  display: inline-block;
  padding-bottom: 5px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 8px 0;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #9e00ff;
  text-shadow: 0 0 5px rgba(158, 0, 255, 0.8);
}

.payment-icons {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: start;
  flex-wrap: wrap;
}

.payment-icons img {
  height: 36px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4));
}

.payment-icons img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px rgba(158, 0, 255, 0.6));
}

::placeholder {
  color: rgba(255, 255, 255, 0.7); /* gris claro legible */
  opacity: 1; 
}
input:focus::placeholder,
textarea:focus::placeholder {
  color: rgba(155, 77, 255, 0.8);
  transition: color 0.3s ease;
}

#contacto .btn-success {
  background-color: #25d366;
  border: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

#contacto .btn-success:hover {
  background-color: #1ebe5d;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.7);
  transform: translateY(-2px);
}

/* === FORMULARIO ARZUADEV === */
#contacto input,
#contacto textarea {
  background-color: #0d0d0d; /* fondo oscuro elegante */
  border: 1px solid #9b4dff; /* borde violeta ArzuaDev */
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

/* Hover y focus */
#contacto input:hover,
#contacto textarea:hover,
#contacto input:focus,
#contacto textarea:focus {
  border-color: #b07aff; /* tono violeta más brillante */
  box-shadow: 0 0 10px rgba(155, 77, 255, 0.4);
  outline: none;
}

/* Placeholders lilas claros */
#contacto ::placeholder {
  color: #c9aaff; /* lila suave y legible */
  opacity: 1;
  transition: color 0.3s ease;
}

/* Placeholder cambia al enfocar */
#contacto input:focus::placeholder,
#contacto textarea:focus::placeholder {
  color: #b07aff;
}

/* Botón principal coherente con el estilo */
#contacto .btn-primary {
  background-color: #9b4dff;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

#contacto .btn-primary:hover {
  background-color: #b07aff;
  box-shadow: 0 0 15px rgba(155, 77, 255, 0.7);
  transform: translateY(-2px);
}

/* === BARRA LUMINOSA ARZUADEV === */
.glow-bar {
  width: 100%;
  height: 2px; /* más fina y elegante */
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #9b4dff, #8b5cf6, #6366f1);
  background-size: 300% 100%;
  animation: glowMove 4s linear infinite;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
  border: none;
  margin: 0;
  padding: 0;
}

/* Animación del brillo que recorre la barra */
@keyframes glowMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #6f42c1; /* violeta ArzuaDev */
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 15px rgba(111, 66, 193, 0.7);
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
}

/* Hover con brillo */
.whatsapp-float:hover {
  background-color: #8e63e6;
  box-shadow: 0 0 25px rgba(146, 80, 255, 0.9);
  transform: scale(1.1);
}

/* Pulso violeta */
.whatsapp-float i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { text-shadow: 0 0 5px #b388ff, 0 0 10px #b388ff; }
  50% { text-shadow: 0 0 15px #b388ff, 0 0 30px #b388ff; }
  100% { text-shadow: 0 0 5px #b388ff, 0 0 10px #b388ff; }
}

/* Previene fondo blanco o scroll raro */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #0a0a0a;
}

/* ✅ Adaptación Responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 60px; /* un poquito más grande en tablets */
    height: 60px;
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 58px; /* más grande en móviles */
    height: 58px;
    font-size: 30px;
    box-shadow: 0 0 20px rgba(179, 136, 255, 0.7);
  }
}
