/* ==========================================================
   ARZUADEV - CSS OPTIMIZADO Y COMPLETO (CON COMENTARIOS)
   - Unificado color principal: #9e00ff
   - Mantiene todas las clases originales y efectos
   - Logo navbar con resplandor pulsante (texto)
   ========================================================== */

/* ---------------------------
   VARIABLES GLOBALES
   --------------------------- */
:root{
  --bg: #0d0d0f;
  --bg-alt: #0a0a0c;
  --panel: rgba(20,20,25,0.85);
  --text: #f2f2f2;
  --muted: #9b9b9b;
  --muted-2: #b4b4b4;
  --primary: #9e00ff;                /* violeta principal unificado */
  --primary-2: #6366f1;              /* secundario usado originalmente */
  --primary-glow: rgba(158,0,255,0.8);
  --radius: 12px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
  --font: 'Poppins', sans-serif;
  --card-bg: rgba(25,25,30,0.85);
}

/* ---------------------------
   BASE GLOBAL
   --------------------------- */
*{box-sizing: border-box;}
html,body{
  margin:0;
  padding:0;
  overflow-x:hidden;
  background-color:var(--bg-alt);
  color:var(--text);
  font-family:var(--font);
  scroll-behavior:smooth;
}

h1,h2,h3,h4,h5,h6{ color:#fff; font-weight:600; margin:0; }
p{ color:#d1d1d1; margin:0 0 1rem 0; }
.text-muted{ color:var(--muted-2) !important; }

/* ---------------------------
   UTILIDADES / GRADIENT TEXT
   --------------------------- */
.gradient-text{
  background: linear-gradient(90deg,var(--primary-2), #8b5cf6);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* ---------------------------
   LOGO (UNIFICADO) - Footer + Navbar
   --------------------------- */
.footer-logo, .navbar .footer-logo, .navbar-logo, .logo-text{
  font-size:1.8rem;
  font-weight:700;
  letter-spacing:1px;
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* footer specific */
.footer-logo span,
.navbar .footer-logo span,
.footer-logo span{ 
  color:var(--primary);
  text-shadow:0 0 8px var(--primary-glow);
  animation: glow 2s ease-in-out infinite alternate;
}

/* navbar logo (texto) con resplandor pulsante */
.navbar-logo{ font-size:1.8rem; font-weight:700; color:#fff; letter-spacing:1px; }
.navbar-logo span{
  color:var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
  animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse{
  0%,100%{
    text-shadow: 0 0 8px var(--primary-glow), 0 0 16px var(--primary);
    transform: translateZ(0);
  }
  50%{
    text-shadow: 0 0 16px var(--primary-glow), 0 0 28px var(--primary);
  }
}
@keyframes glow{
  from{ text-shadow: 0 0 5px rgba(158,0,255,0.6), 0 0 10px rgba(158,0,255,0.3); }
  to{ text-shadow: 0 0 20px rgba(158,0,255,1), 0 0 30px rgba(158,0,255,0.8); }
}

/* ---------------------------
   NAVBAR (estilos completos)
   --------------------------- */
.navbar{
  background: rgba(13,13,15,0.95);
  backdrop-filter: blur(8px);
  transition: background var(--transition);
  position:relative;
  z-index:100;
  padding:1rem 1.5rem;
  border-bottom:1px solid #1f1f24;
}

/* línea brillante bajo el navbar */
.navbar::after{
  content:"";
  position:absolute;
  bottom:0; left:0;
  width:100%; height:2px;
  background: linear-gradient(90deg, var(--primary-2), var(--primary), var(--primary-2));
  background-size:300% 100%;
  box-shadow: 0 0 8px var(--primary-2), 0 0 16px #818cf8;
  animation: glowLine 3s linear infinite;
  border-radius:2px;
}
@keyframes glowLine{
  0%{ background-position:0% 50%; }
  50%{ background-position:100% 50%; }
  100%{ background-position:0% 50%; }
}

/* nav links */
.navbar a{ color:#bdbdbd !important; font-weight:500; transition: color var(--transition); }
.navbar a:hover{ color:#fff !important; }

/* hover violeta y línea inferior */
.navbar-nav .nav-link{
  color:#e5e7eb; font-weight:500; position:relative; transition:all var(--transition);
}
.navbar-nav .nav-link::after{
  content:"";
  position:absolute; bottom:4px; left:50%;
  transform:translateX(-50%); width:0; height:2px;
  background:linear-gradient(90deg,var(--primary-2), var(--primary), var(--primary-2));
  box-shadow: 0 0 8px var(--primary-2), 0 0 16px var(--primary);
  border-radius:2px; transition:width 0.3s ease-in-out;
}
.navbar-nav .nav-link:hover{ color:var(--primary); text-shadow: 0 0 8px var(--primary), 0 0 16px var(--primary-2); }
.navbar-nav .nav-link:hover::after{ width:60%; }
.navbar-nav .nav-link.active{ color:var(--primary); text-shadow:0 0 10px var(--primary); }
.navbar-nav .nav-link.active::after{ width:60%; }

/* navbar logo hover */
.navbar-logo:hover{ transform:scale(1.05); }

/* ---------------------------
   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); }

/* solo hero genérico */
.hero{
  padding:100px 20px; text-align:center;
  background: linear-gradient(180deg,#0d0d0f 0%, #111113 100%);
}
.hero h1{ font-size:3rem; margin-bottom:1rem; }
.hero p{ font-size:1.2rem; color:var(--muted); }
.hero .btn{ margin-top:2rem; padding:0.8rem 2rem; border-radius:var(--radius); border:none; cursor:pointer; background:var(--primary); color:#fff; font-weight:600; transition:var(--transition); }
.hero .btn:hover{ background:#b533ff; box-shadow: 0 0 12px var(--primary-glow); transform:translateY(-2px); }

/* ---------------------------
   CARDS / TARJETAS
   --------------------------- */
.card, .service-card, .plan-card, .price-card, .tech-card, .portfolio-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 var(--transition);
}

.card:hover, .service-card:hover, .plan-card:hover, .portfolio-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 headings */
.card h5, .card h4, .portfolio-card h5, .servicio-card h3{ color:var(--primary); font-weight:600; }

/* servicio-card específico (mantener estilo detallado) */
.service-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(179,136,255,0.2);
  border-radius:20px; padding:30px 20px; color:#e0e0e0; backdrop-filter: blur(8px);
}
.service-card:hover{ background: rgba(179,136,255,0.15); box-shadow: 0 0 25px rgba(179,136,255,0.4); transform:translateY(-10px); }
.service-icon{ font-size:45px; color:#b388ff; margin-bottom:15px; transition:0.3s; }
.service-card:hover .service-icon{ color:#fff; text-shadow:0 0 10px #b388ff; }

/* portfolio */
.portfolio-card{ overflow:hidden; border-radius:18px; background: rgba(25,25,30,0.85); }
.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 .info{ padding:1rem; }

/* price card */
.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:#fff; font-weight:600; }
.price-card .price{ color:var(--primary-2); font-size:2rem; font-weight:700; margin:1rem 0; }
.price-card li{ color:#dcdcdc; margin:0.3rem 0; }

/* tech card */
.tech-card{ background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:12px; padding:15px; transition:all var(--transition); 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; }

/* ---------------------------
   PROCESO / PROCESS CARD
   --------------------------- */
.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 var(--transition), box-shadow var(--transition);
}
.step:hover{ transform: translateY(-4px); box-shadow:0 6px 20px var(--primary-glow); }
.step .icon{ font-size:2rem; margin-bottom:0.5rem; }
.step p{ color:var(--text); } .step small{ color:#b8b8b8; }

/* process-card (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:#fff; 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; }

/* ---------------------------
   HEADER / LOADER
   --------------------------- */
#loader{
  position:fixed; inset:0; background:var(--bg); 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; display:flex; flex-direction:column; align-items:center; animation: fadeIn 1.2s ease-in-out; }
.loader-content .logo{ font-family:var(--font); font-weight:700; font-size:2.5rem; letter-spacing:2px; margin-bottom:15px; }
.loader-content .logo .arzua{ color:#fff; animation: shine 2s infinite linear; }
.loader-content .logo .dev{ color:var(--primary-2); }
.spinner{ width:60px; height:60px; border:3px solid rgba(255,255,255,0.1); border-top:3px solid var(--primary-2); border-radius:50%; animation: spin 1s linear infinite; }
@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 var(--primary-2), 0 0 10px var(--primary-2);} 50%{ text-shadow:0 0 15px #818cf8, 0 0 25px #818cf8;} 100%{ text-shadow:0 0 5px var(--primary-2), 0 0 10px var(--primary-2);} }

/* ---------------------------
   SECCIONES / BACKGROUNDS
   --------------------------- */
section{ padding:5rem 0; }
.bg-dark{ background-color:#111115 !important; }
.bg-black{ background-color:var(--bg-alt) !important; }

/* sobre-mi */
#sobre-mi{ background: linear-gradient(to bottom, #0c0c0f, #111); position:relative; }
#sobre-mi h2{ letter-spacing:1px; text-transform:uppercase; }
#sobre-mi p{ max-width:800px; margin:0 auto; }

/* planes con imagen fija */
#planes{ position:relative; background-image: url('img/imagen2.jpg'); background-size:cover; background-position:center; background-attachment: fixed; color:#fff; }
#planes::before{ content:""; position:absolute; inset:0; background: rgba(13,13,15,0.2); z-index:0; }
#planes .container{ position:relative; z-index:1; }

/* contacto con efecto 3D */
#contacto{ position:relative; background: url("img/imagen4.jpg") center/cover fixed no-repeat; perspective:1000px; overflow:hidden; }
#contacto::before{ content:""; position:absolute; inset:0; background: linear-gradient(rgba(24,24,47,0.85), rgba(10,0,30,0.9)); backdrop-filter: blur(2px); z-index:0; transform: translateZ(-30px) scale(1.1); transition: transform 0.5s ease; }
#contacto:hover::before{ transform: translateZ(-50px) scale(1.15); }
#contacto .container{ position:relative; z-index:1; transform: translateZ(0); }

/* contacto - forms 3D */
#contacto .btn-success{ background-color:#22c55e; border:none; }
#contacto .btn-success:hover{ background-color:#16a34a; }

/* ---------------------------
   FORMULARIO
   --------------------------- */
#contacto input, #contacto textarea, form input, form textarea{
  background-color: #0d0d0d; border:1px solid #9b4dff; color:#fff; border-radius:12px; padding:12px 16px; font-size:1rem; transition: all var(--transition);
}
#contacto input:hover, #contacto textarea:hover, #contacto input:focus, #contacto textarea:focus,
form input:focus, form textarea:focus{
  border-color: #b07aff; box-shadow: 0 0 10px rgba(155,77,255,0.4); outline:none;
}
#contacto ::placeholder{ color:#c9aaff; opacity:1; transition: color var(--transition); }
#contacto input:focus::placeholder, #contacto textarea:focus::placeholder{ color:#b07aff; }
#contacto .btn-primary{ background-color:#9b4dff; border:none; font-weight:500; transition:all var(--transition); }
#contacto .btn-primary:hover{ background-color:#b07aff; box-shadow: 0 0 15px rgba(155,77,255,0.7); transform: translateY(-2px); }

/* formulario general botones */
form button{ background:var(--primary); color:#fff; padding:0.8rem 2rem; border:none; border-radius:var(--radius); cursor:pointer; transition:all var(--transition); }
form button:hover{ background:#b533ff; box-shadow: 0 0 12px var(--primary-glow); transform: translateY(-2px); }

/* ---------------------------
   BARRAS, GLOW Y FLOATER
   --------------------------- */
.glow-bar{
  width:100%; height:2px;
  background: linear-gradient(90deg, var(--primary-2), var(--primary), #8b5cf6, var(--primary));
  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;
}
@keyframes glowMove{ 0%{ background-position:0% 50%; } 100%{ background-position:300% 50%; } }

/* Botón flotante WhatsApp */
.whatsapp-float{
  position:fixed; bottom:25px; right:25px; background-color:#6f42c1; 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 var(--transition); z-index:1000; text-decoration:none;
}
.whatsapp-float:hover{ background-color:#8e63e6; box-shadow:0 0 25px rgba(146,80,255,0.9); transform:scale(1.1); }
.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; } }

/* ---------------------------
   FOOTER
   --------------------------- */
footer{ background-color: var(--bg-alt); color:var(--muted); border-top:1px solid rgba(158,0,255,0.3); padding:60px 0 20px; font-family:var(--font); }
.footer-container{ display:grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap:40px; align-items:start; }
.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 var(--transition); }
.footer-links a:hover{ color:var(--primary); text-shadow: 0 0 5px var(--primary-glow); }

/* payment icons */
.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 var(--primary-glow)); }

/* ---------------------------
   VISIT COUNTER (custom)
   --------------------------- */
.visit-counter{ display:flex; justify-content:center; align-items:center; gap:10px; font-family:var(--font); font-weight:600; font-size:1.1rem; margin-top:10px; color:#b388ff; text-shadow:0 0 10px #b388ff, 0 0 20px #7b3ff5, 0 0 40px #9b5fff; animation: pulseGlow 3s infinite ease-in-out; }
.visit-counter i{ font-size:1.4rem; color:#9b5fff; animation:pulseGlow 3s infinite ease-in-out; }
#contador-numero{ font-size:1.3rem; color:#fff; text-shadow:0 0 10px #b388ff, 0 0 25px #7b3ff5; }
.contador-texto{ font-size:1rem; color:#ccc; text-shadow:0 0 8px rgba(179,136,255,0.6); }
@keyframes pulseGlow{ 0%,100%{ text-shadow:0 0 8px #b388ff, 0 0 20px #7b3ff5;} 50%{ text-shadow:0 0 15px #9b5fff, 0 0 35px #b388ff;} }

/* ---------------------------
   SERVICE-CARD-IMG (imágenes) 
   --------------------------- */
.service-card-img{
  position:relative; height:280px; background-size:cover; background-position:center; border-radius:15px; overflow:hidden; cursor:pointer; transition:transform 0.3s ease; border:1px solid rgba(179,127,255,0.2);
}
.service-card-img:hover{ transform: translateY(-8px); box-shadow:0 0 20px #7b3ff5; border-color:#b37fff; }
.service-card-img .overlay{ position:absolute; bottom:0; left:0; width:100%; height:100%; background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(40,0,60,0.8) 100%); color:#fff; padding:20px; display:flex; flex-direction:column; justify-content:flex-end; transition:background 0.3s ease; }
.service-card-img:hover .overlay{ background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(123,63,245,0.9) 100%); }
.service-card-img .title{ font-weight:700; color:#fff; text-shadow:0 0 8px #b37fff; margin-bottom:10px; }

/* ---------------------------
   PLAN CARD
   --------------------------- */
.plan-card{ background:#141419; border:1px solid rgba(99,102,241,0.3); border-radius:16px; transition:all var(--transition); box-shadow:0 0 8px rgba(99,102,241,0.05); }
.plan-card:hover{ transform:translateY(-5px); border-color:#818cf8; box-shadow:0 0 20px rgba(99,102,241,0.3); }
.plan-card .btn{ border-radius:50px; border-color: var(--primary-2); color:#fff; transition:0.3s ease; }
.plan-card .btn:hover{ background-color:var(--primary-2); color:#fff; box-shadow:0 0 15px var(--primary-2); }

/* ---------------------------
   ANIMACIONES COMUNES
   --------------------------- */
.fade-in{ opacity:0; transform:translateY(20px); animation: fadeIn 0.8s ease forwards; }

/* repeated fadeIn keyframes kept above */

/* ---------------------------
   PLACEHOLDERS & INPUTS
   --------------------------- */
::placeholder{ color: rgba(255,255,255,0.7); opacity:1; }
input:focus::placeholder, textarea:focus::placeholder{ color: rgba(155,77,255,0.8); transition: color 0.3s ease; }

/* ---------------------------
   ADAPTACIONES RESPONSIVE
   --------------------------- */
@media (max-width:768px){
  .whatsapp-float{ bottom:18px; right:18px; width:60px; height:60px; font-size:30px; }
  .hero h1{ font-size:2.3rem; }
  .service-card-img{ height:230px; }
  .service-card-img .overlay p{ font-size:0.85rem; }
  .navbar{ flex-direction:column; text-align:center; padding:0.8rem; }
  .navbar a{ display:block; margin:8px 0; }
}

/* small screens adjustments */
@media (max-width:480px){
  .whatsapp-float{ bottom:15px; right:15px; width:58px; height:58px; font-size:30px; box-shadow:0 0 20px rgba(179,136,255,0.7); }
}

/* === FIX HERO PRIMER SLIDE === */
.overlay-violet {
  background: linear-gradient(rgba(20, 0, 40, 0.55), rgba(0, 0, 0, 0.7));
  width: 100%;
  height: 100%;
  padding: 0 1rem;
}

.overlay-violet h1,
.overlay-violet p {
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

/* === FIX HERO RESPONSIVE IMAGE === */
.hero-slide {
  height: 90vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* === EFECTO LLUVIA DE CÓDIGO VIOLETA === */
#codeRain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* no interfiere con botones */
  z-index: 1;
  opacity: 0.25; /* sutil, no molesta */
}

/* === EFECTO DE BRILLO EN TITULOS DEL HERO === */
.hero-slide h1 {
  color: #ffffff;
  text-shadow: 
    0 0 10px rgba(158, 0, 255, 0.6),
    0 0 20px rgba(158, 0, 255, 0.4),
    0 0 30px rgba(158, 0, 255, 0.2);
  animation: heroGlow 3s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    text-shadow: 
      0 0 8px rgba(158, 0, 255, 0.5),
      0 0 16px rgba(158, 0, 255, 0.3);
  }
  100% {
    text-shadow: 
      0 0 16px rgba(158, 0, 255, 0.8),
      0 0 30px rgba(158, 0, 255, 0.6),
      0 0 45px rgba(158, 0, 255, 0.3);
  }
}






/* === NUMEROS DEL PROCESO BRILLANTES === */
.process-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #9e00ff;
  text-shadow:
    0 0 8px rgba(158, 0, 255, 0.7),
    0 0 16px rgba(158, 0, 255, 0.4);
  animation: glowViolet 2.5s ease-in-out infinite alternate;
}

@keyframes glowViolet {
  0% {
    text-shadow:
      0 0 5px rgba(158, 0, 255, 0.4),
      0 0 10px rgba(158, 0, 255, 0.2);
  }
  100% {
    text-shadow:
      0 0 12px rgba(158, 0, 255, 0.8),
      0 0 25px rgba(158, 0, 255, 0.5);
  }
}


/* === TARJETA EXPANDIDA DE SERVICIOS (BOTONES FIJOS Y SCROLL INTERNO) === */
.service-expanded {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease forwards;
}

.service-expanded.active {
  display: flex;
}

.service-expanded .expanded-content {
  background: rgba(25, 25, 30, 0.95);
  border: 1px solid rgba(158, 0, 255, 0.3);
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(158, 0, 255, 0.3);
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px;
  position: relative;
  color: #fff;
  overflow: hidden;
  animation: expandCard 0.5s ease-out;
}

@keyframes expandCard {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* === Imagen con scroll interno === */
.expanded-image {
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-height: 80vh;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  padding-bottom: 60px; /* espacio para los botones */
}

.expanded-image-inner {
  overflow-y: auto;
  max-height: 100%;
  padding-right: 8px;
}

.expanded-image-inner img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(158, 0, 255, 0.25);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

/* Scroll violeta interno */
.expanded-image-inner::-webkit-scrollbar {
  width: 8px;
}

.expanded-image-inner::-webkit-scrollbar-track {
  background: rgba(50, 50, 70, 0.3);
  border-radius: 10px;
}

.expanded-image-inner::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9e00ff, #7b3ff5);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(158, 0, 255, 0.5);
}

.expanded-image-inner::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b366ff, #9e00ff);
}

/* === Botones fijos en la parte inferior === */
.device-buttons-expanded {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 5;
  background: rgba(10, 10, 15, 0.6);
  padding: 8px 0;
  border-top: 1px solid rgba(158, 0, 255, 0.2);
  backdrop-filter: blur(6px);
}

.device-buttons-expanded .device-btn {
  background: rgba(158, 0, 255, 0.1);
  border: 1px solid rgba(158, 0, 255, 0.3);
  color: #b388ff;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.2rem;
}

.device-buttons-expanded .device-btn:hover {
  background: rgba(158, 0, 255, 0.3);
  color: #fff;
  box-shadow: 0 0 10px rgba(158, 0, 255, 0.5);
}

.device-buttons-expanded .device-btn.active {
  background: rgba(158, 0, 255, 0.6);
  color: #fff;
  box-shadow: 0 0 15px rgba(158, 0, 255, 0.8);
}

/* === Texto === */
.expanded-text {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.expanded-text h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

.expanded-text p {
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.expanded-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expanded-text li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 25px;
}

.expanded-text li::before {
  content: "✔";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* === Botón cerrar === */
.close-expanded {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 2rem;
  color: #b388ff;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease, transform 0.3s ease;
}

.close-expanded:hover {
  color: #fff;
  transform: scale(1.1);
}

/* === SECCIÓN SERVICIOS - MÁS ESPACIO FLUIDO === */
#servicios {
  padding: 120px 0;              /* Aumenta el espacio arriba y abajo */
  background-color: #0d0d0f;     /* Mantiene el fondo oscuro coherente */
  position: relative;
  z-index: 5;
}

#servicios h2 {
  margin-bottom: 20px;           /* Separa el título de las tarjetas */
}

#servicios p {
  margin-bottom: 50px;           /* Da aire entre subtítulo y cards */
}

/* Ajuste responsivo */
@media (max-width: 768px) {
  #servicios {
    padding: 80px 0;             /* En móviles, un poco menos de espacio */
  }
}
#planes {
  border-top: 2px solid rgba(158, 0, 255, 0.4);
  margin-top: 40px;
}

/* === SECCIÓN PORTAFOLIO CON FONDO PARALLAX === */
#portafolio {
  position: relative;
  background-image: url("img/imagen4.jpg"); /* 🔹 tu imagen de fondo */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* efecto parallax */
  background-repeat: no-repeat;
  padding: 140px 0;
  z-index: 1;
}

#portafolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.85); /* capa oscura para contraste */
  backdrop-filter: blur(2px);
  z-index: 0;
}

/* El contenido del portafolio va sobre el fondo */
#portafolio .container {
  position: relative;
  z-index: 2;
}

/* Ajuste responsive */
@media (max-width: 768px) {
  #portafolio {
    background-attachment: scroll; /* mejora rendimiento en móviles */
    padding: 100px 0;
  }
}

/* === SECCIÓN PROCESO DE TRABAJO CON PARALLAX === */
#proceso {
  position: relative;
  background-image: url("img/imagen3.jpg"); /* 🔹 tu imagen de fondo */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* efecto parallax */
  background-repeat: no-repeat;
  padding: 140px 0;
  z-index: 1;
}

/* Capa de color para contraste con el texto */
#proceso::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 25, 0.85); /* tono violeta oscuro */
  backdrop-filter: blur(2px);
  z-index: 0;
}

/* El contenido va sobre el fondo */
#proceso .container {
  position: relative;
  z-index: 2;
}

/* Ajuste para títulos */
#proceso h2 {
  margin-bottom: 50px;
}

/* Ajuste responsive */
@media (max-width: 768px) {
  #proceso {
    background-attachment: scroll; /* mejora rendimiento en móviles */
    padding: 100px 0;
  }
}

/* === BOTÓN "VER MÁS" EN SERVICIOS === */
.btn-ver-mas {
  margin-top: 15px;
  background: rgba(158, 0, 255, 0.15);
  border: 1px solid rgba(158, 0, 255, 0.3);
  color: #b388ff;
  font-weight: 500;
  border-radius: 10px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  backdrop-filter: blur(3px);
}

.btn-ver-mas i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.btn-ver-mas:hover {
  background: rgba(158, 0, 255, 0.4);
  color: #fff;
  box-shadow: 0 0 15px rgba(158, 0, 255, 0.7);
  transform: translateY(-2px);
}

.btn-ver-mas:hover i {
  transform: translateX(4px);
}

/* Versión activa (por ejemplo, cuando se abre la tarjeta expandida) */
.btn-ver-mas.active {
  background: rgba(158, 0, 255, 0.6);
  color: #fff;
  box-shadow: 0 0 20px rgba(158, 0, 255, 0.9);
}

/* === SECCIÓN SERVICIOS CON FONDO PARALLAX VIOLETA === */
#servicios {
  position: relative;
  background-image: url("img/imagen2.jpg"); /* 🌌 tu imagen de fondo */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* efecto parallax */
  background-repeat: no-repeat;
  padding: 160px 0;
  z-index: 1;
  overflow: hidden;
}

/* Capa violeta semitransparente */
#servicios::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(20, 0, 40, 0.7), rgba(10, 0, 20, 0.95));
  backdrop-filter: blur(3px);
  z-index: 0;
}

/* Contenido encima del fondo */
#serviciosContainer {
  position: relative;
  z-index: 2;
}

/* Título con leve brillo */
#servicios h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(158, 0, 255, 0.8);
  animation: glowTitle 3s ease-in-out infinite alternate;
}

@keyframes glowTitle {
  0% {
    text-shadow: 0 0 8px rgba(158, 0, 255, 0.5);
  }
  100% {
    text-shadow: 0 0 18px rgba(158, 0, 255, 0.9);
  }
}

/* Párrafo debajo del título */
#servicios p {
  text-align: center;
  color: #d1c2ff;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* Ajuste responsive */
@media (max-width: 768px) {
  #servicios {
    background-attachment: scroll; /* mejora rendimiento móvil */
    padding: 110px 0;
  }
}

/* === TÍTULOS BLANCOS EN LA SECCIÓN PLANES === */
#planes h4,
#planes h5,
#planes .plan-card h4,
#planes .plan-card h5 {
  color: #fff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

/* === FIX FOOTER TRAS SECCIÓN SERVICIOS PARALLAX === */
#servicios {
  position: relative;
  z-index: 1;
}

footer {
  position: relative;
  z-index: 0;
  margin-top: 0;
  padding-top: 60px;
  background-color: var(--bg-alt);
}

body > footer {
  margin-top: 80px; /* separa el footer del bloque anterior */
}

/* === FIX MODAL SOBRE MÍ TAPADO POR SERVICE-EXPANDED === */
.modal-backdrop {
  z-index: 1040 !important;
}
.modal {
  z-index: 1055 !important;
}

/* Asegurar que service-expanded se oculte correctamente */
.service-expanded:not(.active) {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}

/* === FIX: modal sobre el navbar === */
.navbar {
  position: relative;
  z-index: 100 !important;
}

.modal,
.modal.show {
  z-index: 9999 !important;
}

.modal-backdrop {
  z-index: 9998 !important;
}

.service-expanded {
  z-index: 900 !important;
}

/* fallback CSS */
.modal { position: fixed !important; z-index: 99999 !important; }
.modal-backdrop { z-index: 99998 !important; }
.navbar { z-index: 100 !important; }
.service-expanded { z-index: 900 !important; }

/* === FIX GLOBAL DE Z-INDEX Y MODALES === */
#codeRain,
#loader {
  z-index: 0 !important; /* que no bloqueen nada */
}

.navbar {
  position: relative !important;
  z-index: 10 !important; /* suficiente para verse normalmente */
}

.service-expanded {
  z-index: 100 !important;
}

.modal-backdrop {
  position: fixed !important;
  z-index: 1050 !important;
}

.modal {
  position: fixed !important;
  z-index: 1100 !important;
}

/* Logo centrado pequeño */
.portfolio-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(158,0,255,0.5));
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-logo {
  transform: scale(1.08);
}

/* Elimina altura fija de previews previas */
.portfolio-card img {
  height: auto !important;
}

/* === PORTFOLIO TARJETAS UNIFORMES === */
.portfolio-card {
  background: rgba(25, 25, 30, 0.85);
  border: 1px solid rgba(158, 0, 255, 0.25);
  border-radius: 18px;
  padding: 30px 25px;
  text-align: center;
  height: 295px; /* altura uniforme */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(158, 0, 255, 0.45);
  box-shadow: 0 10px 35px rgba(158, 0, 255, 0.25);
}

/* Logo uniforme */
.portfolio-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  padding: 10px;
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(158,0,255,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover .portfolio-logo {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(158,0,255,0.55);
}

/* Texto */
.portfolio-card h5 {
  font-weight: 600;
  color: #fff;
  margin: 8px 0 6px;
}

.portfolio-card p {
  color: #cfcfcf;
  font-size: 0.9rem;
  line-height: 1.45;
  flex-grow: 1;
}

/* Botón */
.btn-visit {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 8px;
  border: 1px solid rgba(158, 0, 255, 0.5);
  color: #d9c9ff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s ease;
  margin-top: 12px;
}

.btn-visit:hover {
  background: rgba(158, 0, 255, 0.35);
  color: #fff;
  box-shadow: 0 0 14px rgba(158, 0, 255, 0.55);
}

/* ===== PORTAFOLIO ===== */
.portfolio-card {
  background: rgba(22, 22, 27, 0.9);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(158, 0, 255, 0.25);
  height: 420px; /* MISMO TAMAÑO PARA TODAS */
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}

.portfolio-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(158, 0, 255, 0.6);
  box-shadow: 0 15px 45px rgba(158, 0, 255, 0.35);
}

.portfolio-image {
  height: 190px; /* ALTURA FIJA */
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-card h5 {
  font-weight: 600;
  margin-top: 16px;
  color: #d9c9ff;
}

.portfolio-card p {
  color: #cfcfcf;
  font-size: 0.9rem;
  padding: 0 18px;
  flex-grow: 1;
}

.btn-visit {
  margin: 18px auto 22px;
  padding: 8px 24px;
  border-radius: 10px;
  border: 1px solid rgba(158, 0, 255, 0.45);
  background: rgba(158, 0, 255, 0.2);
  text-decoration: none;
  color: #d8c6ff;
  transition: 0.3s ease;
}

.btn-visit:hover {
  background: rgba(158, 0, 255, 0.55);
  color: #fff;
  box-shadow: 0 0 16px rgba(158, 0, 255, 0.9);
}

/* ===== PORTFOLIO NUEVO ===== */
#portafolio .portfolio-card {
  background: #0d0d12;
  padding: 18px;
  border-radius: 16px;
  text-align: center;
  transition: 0.4s ease;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.15);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* IMAGEN */
.portfolio-image {
  width: 100%;
  height: 220px;                /* <-- Ajusta si quieres más alto */
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.45);
  transition: transform .4s ease, box-shadow .4s ease;
}

/* HOVER EFECTO 3D */
.portfolio-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 32px rgba(129, 140, 248, 0.35);
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}

/* TITULO */
.portfolio-card h5 {
  margin-top: 18px;
  font-weight: 600;
}

/* DESCRIPCIÓN */
.portfolio-card p {
  color: #a1a1a1;
  font-size: 0.9rem;
  margin: 6px 0 10px 0;
  margin-bottom: 10px !important;
}

/* BOTÓN */
.btn-visit {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid #818cf8;
  text-decoration: none;
  color: #fff;
  transition: .3s;
  margin-top: 6px;
  margin-bottom: 14px;
}

.btn-visit:hover {
  background: #818cf8;
  color: #000;
}

/* HOVER con luz */
.portfolio-card {
  transition: transform .35s, box-shadow .35s, border-color .35s;
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(158, 0, 255, 0.8);
  box-shadow:
    0 0 25px rgba(158, 0, 255, 0.45),      /* luz violeta suave */
    0 0 60px rgba(158, 0, 255, 0.30),      /* halo más amplio */
    0 0 120px rgba(158, 0, 255, 0.20);     /* glow ambiental */
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.08);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55);
}

/* Contenedor del logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Imagen base del logo */
.logo img {
  width: 45px;
  filter: drop-shadow(0 0 6px rgba(158, 0, 255, 0.6));
  position: relative;
}

/* TEXTO al lado del logo */
.logo span {
  font-weight: 700;
  font-size: 1.3rem;
  color: #9e00ff;
}

/* ---- EFECTO DE FUEGO BLANCO ---- */
.logo img::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 14px;
  height: 22px;
  background: radial-gradient(circle, #ffffff, rgba(255,255,255,0) 60%);
  filter: blur(6px);
  animation: flame 1.4s infinite alternate ease-in-out;
}

/* Animación del fuego */
@keyframes flame {
  0% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  100% { transform: translateX(-50%) scale(1.4); opacity: 0.5; }
}
.navbar-dark.bg-dark {
  background-color: #0d0d0f !important; /* tu color base oscuro limpio */
  opacity: 1 !important;
  backdrop-filter: none !important;
}

/* ---- NAVBAR LINKS SIEMPRE BLANCOS ---- */
.navbar .nav-link,
.navbar .navbar-brand {
  color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow:
    0 0 8px rgba(255,255,255,0.85),
    0 0 16px rgba(255,255,255,0.45);
  transition: 0.25s ease;
}

/* Hover más luminoso sin que cambie el color */
.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
  text-shadow:
    0 0 10px rgba(255,255,255,1),
    0 0 25px rgba(158,0,255,0.9),
    0 0 45px rgba(158,0,255,1);
}

/* LinkedIn icon siempre blanco */
.navbar .linkedin-icon i {
  color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
}

.navbar-brand.logo {
  font-size: 1.8rem; /* ajusta si querés más grande */
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.navbar-brand.logo span {
  font-size: inherit !important;   /* fuerza el mismo tamaño */
  font-weight: inherit !important;
  color: #9e00ff !important;       /* tu violeta */
  text-shadow: 0 0 12px #9e00ff;   /* brillo */
}

/* --- BRILLO DEL COHETE IGUAL AL "DEV" --- */
.logo img {
  width: 52px;
  height: auto;
  filter:
    drop-shadow(0 0 12px #ffffff)
    drop-shadow(0 0 28px rgba(255, 255, 255, 0.75))
    drop-shadow(0 0 48px rgba(158, 0, 255, 0.9));
  transition: 0.3s ease;
}

/* Opcional: brillo más fuerte al pasar el mouse */
.logo img:hover {
  filter:
    drop-shadow(0 0 18px #9e00ff)
    drop-shadow(0 0 42px rgba(158, 0, 255, 1))
    drop-shadow(0 0 72px rgba(158, 0, 255, 1));
  transform: translateY(-2px);
}

/* Que el contenido de los planes se distribuya en columna */
.plan-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Empuja el botón hacia abajo */
.plan-card .card-body a.btn {
  margin-top: auto;
}


