/* ===== Marketing Pachas — Estilos ===== */
:root{
  --bg:#06080f;
  --bg-2:#0b1020;
  --surface:rgba(255,255,255,0.06);
  --border:rgba(255,255,255,0.12);
  --text:#eaf0ff;
  --muted:#9aa6c2;
  --primary:#1e90ff;
  --primary-2:#00d4ff;
  --accent:#7c5cff;
  --whatsapp:#25D366;
  --shadow:0 20px 60px -20px rgba(0,180,255,.35);
  --radius:18px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Inter,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
}
body::before{
  content:"";position:fixed;inset:0;z-index:-2;
  background:
    radial-gradient(800px 500px at 10% 10%, rgba(30,144,255,.18), transparent 60%),
    radial-gradient(700px 500px at 90% 20%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(900px 600px at 50% 100%, rgba(0,212,255,.12), transparent 60%),
    linear-gradient(180deg, #05070d, #0a0f1f);
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3{font-weight:800;letter-spacing:-0.02em;line-height:1.15}
h1{font-size:clamp(2rem,5vw,3.6rem)}
h2{font-size:clamp(1.6rem,3.5vw,2.6rem)}

/* ===== Loader ===== */
.loader{
  position:fixed;inset:0;background:var(--bg);z-index:9999;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;
  transition:opacity .6s ease, visibility .6s ease;
}
.loader.hide{opacity:0;visibility:hidden}
.loader-ring{
  width:60px;height:60px;border-radius:50%;
  border:3px solid rgba(255,255,255,.1);
  border-top-color:var(--primary-2);
  animation:spin 1s linear infinite;
  box-shadow:0 0 30px var(--primary);
}
.loader p{color:var(--muted);font-size:.9rem;letter-spacing:.1em;text-transform:uppercase}
@keyframes spin{to{transform:rotate(360deg)}}

/* ===== Glass ===== */
.glass{
  background:var(--surface);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border:1px solid var(--border);
}

/* ===== Nav ===== */
.nav{
  position:fixed;top:14px;left:50%;transform:translateX(-50%);
  width:min(1180px, 94%);
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 18px;border-radius:999px;z-index:100;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
}
.nav-brand{display:flex;align-items:center;gap:10px;font-weight:700}
.nav-brand img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.nav-links{display:flex;gap:22px;list-style:none}
.nav-links a{color:var(--muted);font-size:.95rem;transition:color .2s}
.nav-links a:hover{color:var(--text)}
.nav-toggle{display:none;background:none;border:0;cursor:pointer;flex-direction:column;gap:5px}
.nav-toggle span{display:block;width:24px;height:2px;background:var(--text);border-radius:2px}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;align-items:center;gap:10px;justify-content:center;
  padding:14px 26px;border-radius:999px;font-weight:700;font-size:1rem;
  cursor:pointer;border:0;transition:transform .2s ease, box-shadow .3s ease, background .3s;
  text-decoration:none;
}
.btn-primary{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#001428;
  box-shadow:var(--shadow);
}
.btn-primary:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 25px 60px -15px rgba(0,212,255,.5)}
.btn-ghost{background:transparent;color:var(--text);border:1px solid var(--border)}
.btn-ghost:hover{background:var(--surface)}

/* ===== Hero ===== */
.hero{
  position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:120px 20px 60px;text-align:center;
}
.hero-bg{
  position:absolute;inset:0;z-index:-1;
  background:
    radial-gradient(closest-side, rgba(30,144,255,.25), transparent 70%) center/60% 60% no-repeat;
  filter:blur(20px);
  animation:float 8s ease-in-out infinite alternate;
}
@keyframes float{from{transform:translateY(-10px)}to{transform:translateY(10px)}}
.hero-inner{max-width:880px}
.hero-logo{
  width:120px;height:120px;border-radius:50%;object-fit:cover;margin:0 auto 24px;
  box-shadow:0 0 60px rgba(0,212,255,.5);
  border:2px solid rgba(255,255,255,.1);
}
.hero h1{margin-bottom:18px;background:linear-gradient(180deg,#fff,#9bcfff);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{color:var(--muted);font-size:1.15rem;margin-bottom:30px}
.hero-badges{margin-top:30px;display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.hero-badges span{
  font-size:.85rem;color:var(--muted);padding:8px 14px;border-radius:999px;
  background:var(--surface);border:1px solid var(--border);
}

/* ===== Sections ===== */
.section{padding:100px 20px;max-width:1200px;margin:0 auto}
.section-alt{background:linear-gradient(180deg,transparent,rgba(255,255,255,.02),transparent)}
.section-head{text-align:center;max-width:680px;margin:0 auto 50px}
.eyebrow{
  display:inline-block;font-size:.8rem;color:var(--primary-2);text-transform:uppercase;
  letter-spacing:.2em;margin-bottom:14px;font-weight:700;
}
.section-head p{color:var(--muted);margin-top:12px}

/* ===== Grids ===== */
.grid{display:grid;gap:22px}
.grid-services{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.grid-projects{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.grid-testimonials{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}

.card{
  padding:28px;border-radius:var(--radius);
  background:var(--surface);border:1px solid var(--border);
  transition:transform .3s ease, border-color .3s, box-shadow .3s;
  backdrop-filter:blur(10px);
}
.card:hover{
  transform:translateY(-6px);
  border-color:rgba(0,212,255,.4);
  box-shadow:0 30px 60px -20px rgba(0,212,255,.3);
}
.card .icon{
  width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,rgba(30,144,255,.2),rgba(0,212,255,.1));
  margin-bottom:18px;font-size:1.6rem;
}
.card h3{font-size:1.15rem;margin-bottom:8px}
.card p{color:var(--muted);font-size:.95rem}

/* Projects */
.project{
  border-radius:var(--radius);overflow:hidden;background:var(--surface);
  border:1px solid var(--border);transition:transform .3s, box-shadow .3s;
}
.project:hover{transform:translateY(-6px);box-shadow:0 30px 60px -20px rgba(0,212,255,.3)}
.project-frame{position:relative;aspect-ratio:16/10;overflow:hidden;background:#000}
.project-frame iframe{
  position:absolute;top:0;left:0;width:200%;height:200%;
  transform:scale(.5);transform-origin:top left;border:0;pointer-events:none;
}
.project-info{padding:20px}
.project-info h3{margin-bottom:6px}
.project-info p{color:var(--muted);font-size:.9rem;margin-bottom:14px}
.project-info a{color:var(--primary-2);font-weight:600;font-size:.9rem}

/* Testimonials */
.testimonial{padding:28px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border)}
.testimonial p{color:var(--text);font-style:italic;margin-bottom:18px}
.testimonial-author{display:flex;align-items:center;gap:12px}
.testimonial-author .avatar{
  width:44px;height:44px;border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  display:flex;align-items:center;justify-content:center;font-weight:700;
}
.testimonial-author strong{display:block}
.testimonial-author small{color:var(--muted)}

/* CTA final */
.cta-final{padding:80px 20px}
.cta-card{
  max-width:880px;margin:0 auto;padding:60px 30px;border-radius:24px;text-align:center;
  box-shadow:var(--shadow);
}
.cta-card h2{margin-bottom:14px}
.cta-card p{color:var(--muted);margin-bottom:26px}

/* Footer */
.footer{padding:50px 20px;border-top:1px solid var(--border);margin-top:40px}
.footer-inner{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.footer-brand{display:flex;align-items:center;gap:10px;font-weight:700;margin-bottom:6px}
.footer-brand img{width:36px;height:36px;border-radius:50%}
.footer p{color:var(--muted)}
.footer a{color:var(--primary-2)}
.footer small{color:var(--muted);margin-top:10px}

/* WhatsApp Float */
.wa-float{
  position:fixed;bottom:24px;right:24px;width:60px;height:60px;border-radius:50%;
  background:var(--whatsapp);color:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 30px rgba(37,211,102,.5);z-index:90;
  animation:pulse 2.4s infinite;
}
.wa-float:hover{transform:scale(1.08)}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(37,211,102,.6)}
  70%{box-shadow:0 0 0 18px rgba(37,211,102,0)}
  100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}
}

/* Reveal */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .8s ease, transform .8s ease}
.reveal.visible{opacity:1;transform:none}

/* Modal & Admin */
.hidden{display:none !important}
.modal{
  position:fixed;inset:0;background:rgba(0,0,0,.7);backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;z-index:200;padding:20px;
}
.modal-card{padding:32px;border-radius:20px;width:100%;max-width:400px;text-align:center}
.modal-card h3{margin-bottom:8px}
.modal-card p{color:var(--muted);margin-bottom:18px}
.modal-card input{
  width:100%;padding:14px;border-radius:12px;background:rgba(0,0,0,.3);
  border:1px solid var(--border);color:var(--text);margin-bottom:14px;font-size:1rem;
}
.modal-actions{display:flex;gap:10px;justify-content:center}
.error{color:#ff6b6b;margin-top:10px;font-size:.9rem}

.admin-panel{
  position:fixed;top:0;right:0;width:min(480px,100%);height:100vh;
  background:rgba(8,12,24,.97);backdrop-filter:blur(20px);
  border-left:1px solid var(--border);z-index:150;overflow-y:auto;padding:24px;
  box-shadow:-20px 0 60px rgba(0,0,0,.5);
}
.admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.admin-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px;border-bottom:1px solid var(--border);padding-bottom:10px}
.tab-btn{
  background:transparent;color:var(--muted);border:1px solid transparent;
  padding:8px 14px;border-radius:8px;cursor:pointer;font-size:.85rem;
}
.tab-btn.active{background:var(--surface);color:var(--text);border-color:var(--border)}
.tab-content{display:flex;flex-direction:column;gap:14px}
.tab-content label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;color:var(--muted)}
.tab-content input,.tab-content textarea,.tab-content select{
  padding:10px 12px;border-radius:10px;background:rgba(0,0,0,.3);
  color:var(--text);border:1px solid var(--border);font-size:.95rem;font-family:inherit;
}
.tab-content textarea{min-height:80px;resize:vertical}
.admin-item{
  padding:14px;border-radius:12px;background:rgba(255,255,255,.04);
  border:1px solid var(--border);margin-bottom:10px;display:flex;flex-direction:column;gap:8px;
}
.admin-item .row{display:flex;gap:8px}
.admin-item button.del{background:rgba(255,80,80,.15);color:#ff8080;border:0;padding:6px 12px;border-radius:8px;cursor:pointer;font-size:.8rem}
.hint{color:var(--muted);font-size:.8rem}

/* Responsive */
@media (max-width: 768px){
  .nav-links{
    position:fixed;top:80px;left:50%;transform:translateX(-50%);
    flex-direction:column;background:rgba(8,12,24,.95);backdrop-filter:blur(20px);
    padding:20px;border-radius:18px;width:90%;border:1px solid var(--border);
    display:none;
  }
  .nav-links.open{display:flex}
  .nav-toggle{display:flex}
  .hero{padding-top:140px}
  .section{padding:70px 20px}
}
