/* =============================================================
   VALGASE CONSULT - Hoja de estilos principal
   Diseño mobile-first, responsive con CSS Grid + Flexbox
   Para personalizar la web edita este archivo o los HTML.
   ============================================================= */

/* ---------- VARIABLES DE COLOR Y DISEÑO ---------- */
:root{
  --bg:#070b16;
  --bg-2:#0c1224;
  --surface:#10172b;
  --surface-2:#161f3a;
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.16);
  --text:#e8ecf6;
  --text-dim:#a8b1c9;
  --muted:#7780a0;
  --accent:#5da9ff;
  --accent-2:#1e3a8a;
  --gold:#dce67a;
  --gold-2:#a8c456;
  --green:#7aa84a;
  --whatsapp:#25d366;
  --danger:#ef4444;
  --success:#22c55e;
  --grad-blue:linear-gradient(135deg,#87c4f0 0%,#1e3a8a 100%);
  --grad-gold:linear-gradient(135deg,#dce67a 0%,#7aa84a 100%);
  --grad-mix:linear-gradient(135deg,#dce67a 0%,#5da9ff 50%,#1e3a8a 100%);
  --shadow-sm:0 4px 12px -4px rgba(0,0,0,.4);
  --shadow-md:0 12px 24px -8px rgba(0,0,0,.5);
  --shadow-lg:0 30px 60px -20px rgba(0,0,0,.6);
  --radius-sm:10px;
  --radius:18px;
  --radius-lg:24px;
  --header-h:68px;
}

/* ---------- RESET ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
img,svg,video{max-width:100%;height:auto;display:block}
button{font:inherit;cursor:pointer;border:none;background:none;color:inherit}
a{color:var(--accent);text-decoration:none}
input,textarea,select,button{font-family:inherit}

/* Fondo decorativo */
body::before{
  content:"";
  position:fixed;inset:0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(93,169,255,.15), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(220,230,122,.10), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(30,58,138,.25), transparent 60%);
  pointer-events:none;z-index:0;
}

/* Contenedores */
.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  position:relative;
  z-index:1;
}
.container-narrow{max-width:880px}
.container-wide{max-width:1320px}

@media (min-width: 700px){
  .container{padding:0 32px}
}

/* ---------- TIPOGRAFÍA ---------- */
h1,h2,h3,h4{
  font-family:'Playfair Display',Georgia,serif;
  line-height:1.15;letter-spacing:-.5px;
  color:var(--text);
}
h1{font-size:clamp(34px,7vw,64px);font-weight:800}
h2{font-size:clamp(28px,5vw,46px);font-weight:700}
h3{font-size:clamp(20px,3vw,26px);font-weight:700}
h4{font-size:18px;font-weight:600}
p{color:var(--text-dim);font-size:16px}
.lead{font-size:clamp(16px,2.2vw,19px);color:var(--text-dim)}

.grad{
  background:var(--grad-mix);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

/* ---------- BOTONES ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 24px;border-radius:50px;font-weight:600;font-size:14px;
  text-decoration:none;cursor:pointer;border:1px solid transparent;
  transition:transform .2s ease,box-shadow .25s ease,background .2s ease,border-color .2s ease;
  white-space:nowrap;line-height:1;min-height:46px;
}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0)}
.btn-primary{
  background:var(--grad-mix);color:#fff;
  box-shadow:0 10px 30px -10px rgba(93,169,255,.5);
}
.btn-primary:hover{box-shadow:0 15px 40px -10px rgba(93,169,255,.7)}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--line-strong)}
.btn-ghost:hover{background:var(--surface);border-color:var(--gold)}
.btn-wa{background:var(--whatsapp);color:#fff}
.btn-wa:hover{background:#1ebe5a}
.btn-block{width:100%}
.btn-sm{padding:9px 16px;min-height:38px;font-size:13px}

/* ---------- HEADER ---------- */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background:rgba(7,11,22,.7);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid transparent;
  transition:background .3s ease,border-color .3s ease;
}
.site-header.scrolled{
  background:rgba(7,11,22,.92);
  border-bottom-color:var(--line);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  height:var(--header-h);gap:16px;
}
.brand{
  display:flex;align-items:center;gap:10px;
  text-decoration:none;color:var(--text);
  flex-shrink:0;
}
.brand-mark{width:38px;height:38px;flex-shrink:0}
.brand-text{display:flex;flex-direction:column;line-height:1}
.brand-text strong{font-size:17px;font-weight:800;letter-spacing:1px;color:var(--text)}
.brand-text span{font-size:9px;letter-spacing:3px;color:var(--gold);font-weight:600;margin-top:3px}

.nav-links{
  display:none;
  align-items:center;gap:28px;
}
.nav-links a{
  color:var(--text-dim);text-decoration:none;font-size:14px;font-weight:500;
  position:relative;transition:color .2s;
}
.nav-links a:hover{color:var(--text)}
.nav-links a.btn{padding:10px 20px;min-height:auto}
.nav-links a:not(.btn)::after{
  content:"";position:absolute;left:0;bottom:-6px;width:0;height:2px;
  background:var(--grad-mix);transition:width .3s;
}
.nav-links a:not(.btn):hover::after{width:100%}

/* Menú móvil */
.menu-toggle{
  display:flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:10px;color:var(--text);
  background:transparent;border:1px solid var(--line);
  transition:background .2s,border-color .2s;
}
.menu-toggle:hover{background:var(--surface);border-color:var(--gold)}
.menu-toggle svg{width:22px;height:22px}
.menu-toggle .icon-close{display:none}
.menu-toggle.open .icon-open{display:none}
.menu-toggle.open .icon-close{display:block}

/* Drawer móvil */
.mobile-drawer{
  position:fixed;top:var(--header-h);left:0;right:0;
  background:rgba(7,11,22,.97);
  backdrop-filter:blur(20px);
  border-top:1px solid var(--line);
  padding:28px 20px 36px;
  transform:translateY(-110%);
  transition:transform .3s ease;
  z-index:99;
  display:flex;flex-direction:column;gap:6px;
  max-height:calc(100vh - var(--header-h));
  overflow-y:auto;
}
.mobile-drawer.open{transform:translateY(0)}
.mobile-drawer a{
  display:block;color:var(--text);text-decoration:none;
  font-size:18px;font-weight:500;padding:14px 8px;
  border-bottom:1px solid var(--line);
}
.mobile-drawer a:last-child{border:none}
.mobile-drawer a.btn{
  margin-top:18px;border:none;
  font-size:15px;padding:14px 24px;
  justify-content:center;
}

@media (min-width: 960px){
  .nav-links{display:flex}
  .menu-toggle{display:none}
  .mobile-drawer{display:none !important}
  .brand-mark{width:42px;height:42px}
  .brand-text strong{font-size:18px}
}

/* ---------- HERO ---------- */
.hero{
  padding:calc(var(--header-h) + 50px) 0 60px;
  position:relative;
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:center;
}
.hero-text h1{margin-bottom:20px}
.hero-text .lead{margin-bottom:28px;max-width:560px}
.hero-cta{
  display:flex;flex-wrap:wrap;gap:12px;
}
.hero-cta .btn{flex:1 1 auto;min-width:200px}

.hero-stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:18px;
  margin-top:36px;padding-top:28px;
  border-top:1px solid var(--line);
}
.stat strong{
  display:block;font-size:clamp(22px,4vw,32px);font-weight:800;
  background:var(--grad-mix);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.stat span{font-size:12px;color:var(--muted);display:block;margin-top:2px}

.hero-visual{
  position:relative;
  display:flex;align-items:center;justify-content:center;
  min-height:340px;
  order:-1;
}
.hero-logo-bg{
  position:absolute;
  width:min(80vw,340px);height:min(80vw,340px);border-radius:50%;
  background:radial-gradient(circle, rgba(93,169,255,.2) 0%, transparent 70%);
  animation:pulse 4s ease-in-out infinite;
}
@keyframes pulse{0%,100%{transform:scale(1);opacity:.6}50%{transform:scale(1.1);opacity:.9}}
.hero-logo{
  position:relative;z-index:2;
  width:min(60vw,240px);height:auto;
}
.hero-card{
  position:absolute;background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);padding:14px 18px;
  box-shadow:var(--shadow-md);
  backdrop-filter:blur(10px);
  animation:float 6s ease-in-out infinite;
  z-index:3;max-width:170px;
}
.hero-card.c1{top:6%;left:0;animation-delay:0s}
.hero-card.c2{top:55%;right:0;animation-delay:1.5s}
.hero-card.c3{bottom:0;left:18%;animation-delay:3s}
@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-10px)}
}
.hero-card .ico{
  width:32px;height:32px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  font-size:16px;margin-bottom:6px;
}
.hero-card.c1 .ico{background:rgba(220,230,122,.15);color:var(--gold)}
.hero-card.c2 .ico{background:rgba(93,169,255,.15);color:var(--accent)}
.hero-card.c3 .ico{background:rgba(34,197,94,.15);color:var(--success)}
.hero-card h4{font-size:13px;margin-bottom:2px;color:var(--text)}
.hero-card p{font-size:11px;color:var(--text-dim)}

@media (min-width: 760px){
  .hero{padding:calc(var(--header-h) + 70px) 0 80px}
  .hero-visual{min-height:420px}
  .hero-card{padding:16px 20px;max-width:200px}
  .hero-card h4{font-size:14px}
  .hero-card p{font-size:12px}
}

@media (min-width: 1000px){
  .hero{padding:calc(var(--header-h) + 90px) 0 100px}
  .hero-grid{
    grid-template-columns:1.1fr .9fr;
    gap:60px;
  }
  .hero-visual{order:0;min-height:480px}
  .hero-stats{gap:36px}
}

/* ---------- SECCIONES ---------- */
section{padding:60px 0;position:relative}
@media (min-width: 760px){
  section{padding:80px 0}
}
@media (min-width: 1000px){
  section{padding:90px 0}
}

.section-head{
  text-align:center;max-width:760px;margin:0 auto 44px;
}
.section-tag{
  display:inline-block;padding:6px 14px;border-radius:50px;
  background:rgba(220,230,122,.1);border:1px solid rgba(220,230,122,.25);
  color:var(--gold);font-size:11px;font-weight:600;letter-spacing:1.5px;
  text-transform:uppercase;margin-bottom:16px;
}
.section-head h2{margin-bottom:14px}
.section-head p{font-size:clamp(15px,2vw,17px);color:var(--text-dim)}

/* ---------- QUIÉNES SOMOS ---------- */
.about-grid{
  display:grid;grid-template-columns:1fr;gap:40px;align-items:center;
}
.about-text p{margin-bottom:16px}
.pillars{
  display:grid;grid-template-columns:1fr;gap:14px;margin-top:26px;
}
.pillar{
  background:var(--surface);
  border:1px solid var(--line);
  border-left:3px solid var(--gold);
  border-radius:var(--radius);
  padding:18px 20px;
  transition:transform .2s,border-color .2s;
}
.pillar:hover{transform:translateX(4px);border-color:var(--accent)}
.pillar h4{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.pill-ico{font-size:20px}
.pillar p{font-size:14px;margin:0}

.photo-frame{
  position:relative;border-radius:var(--radius-lg);overflow:hidden;
  box-shadow:var(--shadow-lg);
  aspect-ratio:4/3;
  border:1px solid var(--line);
}
.photo-frame img{width:100%;height:100%;object-fit:cover}
.photo-badge{
  position:absolute;bottom:14px;left:14px;right:14px;
  background:rgba(7,11,22,.92);backdrop-filter:blur(10px);
  border:1px solid var(--line);border-radius:14px;
  padding:14px 18px;
}
.photo-badge strong{
  display:block;font-size:18px;color:var(--gold);
  font-family:'Playfair Display',serif;font-weight:700;
}
.photo-badge span{font-size:13px;color:var(--text-dim);display:block;margin-top:2px}

@media (min-width: 900px){
  .about-grid{grid-template-columns:1fr 1fr;gap:60px}
}

/* ---------- SECTORES ---------- */
.sectors{
  display:flex;flex-wrap:wrap;justify-content:center;gap:10px;
}
.sector-chip{
  padding:10px 18px;border-radius:50px;
  background:var(--surface);border:1px solid var(--line);
  color:var(--text);font-size:13px;font-weight:500;
  transition:all .2s ease;cursor:default;
  display:inline-flex;align-items:center;gap:8px;
}
.sector-chip:hover{border-color:var(--gold);background:var(--surface-2);transform:translateY(-2px)}

@media (min-width: 760px){
  .sector-chip{padding:11px 20px;font-size:14px}
}

/* ---------- METODOLOGÍA ---------- */
.method-grid{
  display:grid;grid-template-columns:1fr;gap:20px;
}
.method-card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:28px 24px;
  position:relative;transition:transform .25s,border-color .25s;
}
.method-card:hover{transform:translateY(-4px);border-color:var(--gold)}
.method-num{
  position:absolute;top:-14px;left:24px;
  width:42px;height:42px;border-radius:50%;
  background:var(--grad-mix);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:18px;color:#fff;
  box-shadow:var(--shadow-md);
}
.method-card h3{margin:14px 0 10px;font-family:'Playfair Display',serif}
.method-card p{font-size:14.5px}
.method-img{
  position:relative;border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);min-height:280px;
  grid-column:1 / -1;
}
.method-img img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.method-img-text{
  position:relative;z-index:2;
  margin-top:auto;padding:24px;
  background:linear-gradient(to top,rgba(7,11,22,.95) 0%,rgba(7,11,22,.6) 60%,transparent 100%);
  display:flex;flex-direction:column;justify-content:flex-end;
  min-height:280px;
}
.method-img-text h4{font-size:18px;margin-bottom:8px;color:var(--text)}
.method-img-text p{font-size:14px;color:var(--text-dim)}

@media (min-width: 760px){
  .method-grid{grid-template-columns:repeat(3,1fr);gap:28px}
  .method-img{grid-column:1 / -1;min-height:240px}
}

@media (min-width: 1100px){
  .method-grid{grid-template-columns:repeat(3,1fr) 1fr;gap:30px}
  .method-img{grid-column:auto;min-height:auto;height:100%}
}

/* ---------- SERVICIOS ---------- */
.services-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.service-card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:26px 22px;
  display:flex;flex-direction:column;
  transition:all .25s ease;cursor:pointer;
  position:relative;overflow:hidden;
}
.service-card::before{
  content:"";position:absolute;inset:0;
  background:var(--grad-mix);opacity:0;
  transition:opacity .3s;z-index:0;
}
.service-card>*{position:relative;z-index:1}
.service-card:hover{transform:translateY(-4px);border-color:var(--gold);box-shadow:var(--shadow-md)}
.service-ico{
  width:54px;height:54px;border-radius:14px;
  background:linear-gradient(135deg,rgba(220,230,122,.15),rgba(93,169,255,.15));
  display:flex;align-items:center;justify-content:center;
  font-size:26px;margin-bottom:14px;
}
.service-card .law{
  font-size:11px;color:var(--gold);font-weight:600;
  letter-spacing:1px;text-transform:uppercase;margin-bottom:8px;
}
.service-card h3{margin-bottom:10px;font-size:18px;line-height:1.3}
.service-card p{font-size:14px;flex:1;margin-bottom:16px}
.service-link{
  font-size:13px;color:var(--accent);font-weight:600;
  display:inline-flex;align-items:center;gap:6px;
}

@media (min-width: 600px){
  .services-grid{grid-template-columns:repeat(2,1fr)}
}
@media (min-width: 1000px){
  .services-grid{grid-template-columns:repeat(3,1fr);gap:22px}
}

/* ---------- GARANTÍAS ---------- */
.guarantees{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-lg);padding:24px;
}
.guar-item{
  text-align:center;padding:16px 12px;
  border-radius:var(--radius);
  transition:background .2s;
}
.guar-item:hover{background:var(--surface-2)}
.guar-ico{
  display:inline-flex;align-items:center;justify-content:center;
  width:48px;height:48px;border-radius:12px;
  background:linear-gradient(135deg,rgba(220,230,122,.15),rgba(93,169,255,.15));
  font-size:22px;margin-bottom:10px;
}
.guar-item h4{font-size:15px;margin-bottom:6px}
.guar-item p{font-size:13px;margin:0}

@media (min-width: 760px){
  .guarantees{grid-template-columns:repeat(4,1fr);padding:32px;gap:18px}
  .guar-ico{width:54px;height:54px;font-size:24px}
}

/* ---------- BLOG TEASER (HOME) ---------- */
.blog-teaser{
  display:grid;grid-template-columns:1fr;gap:24px;
}
.blog-card{
  display:flex;flex-direction:column;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;
  text-decoration:none;color:var(--text);
  transition:transform .25s,border-color .25s,box-shadow .25s;
}
.blog-card:hover{transform:translateY(-5px);border-color:var(--gold);box-shadow:var(--shadow-md)}
.blog-card-img{position:relative;aspect-ratio:16/9;overflow:hidden}
.blog-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.blog-card:hover .blog-card-img img{transform:scale(1.05)}
.blog-card-tag{
  position:absolute;top:14px;left:14px;
  background:rgba(7,11,22,.85);backdrop-filter:blur(10px);
  color:var(--gold);font-size:10px;font-weight:700;
  letter-spacing:.8px;padding:5px 12px;border-radius:50px;text-transform:uppercase;
}
.blog-card-body{padding:22px}
.blog-card-date{font-size:12px;color:var(--muted);display:block;margin-bottom:8px}
.blog-card-body h3{font-size:18px;margin-bottom:10px;line-height:1.3}
.blog-card-body p{font-size:14px;margin-bottom:14px}
.blog-card-link{font-size:13px;color:var(--accent);font-weight:600}

@media (min-width: 700px){
  .blog-teaser{grid-template-columns:repeat(2,1fr)}
}
@media (min-width: 1000px){
  .blog-teaser{grid-template-columns:repeat(3,1fr)}
}

/* ---------- CONTACTO ---------- */
.contact-grid{
  display:grid;grid-template-columns:1fr;gap:30px;
}
.contact-info h3,.contact-form h3{
  font-family:'Playfair Display',serif;font-size:24px;margin-bottom:8px;
}
.contact-info > p,.contact-form > p{margin-bottom:24px;font-size:15px}
.contact-channels{display:flex;flex-direction:column;gap:12px}
.channel{
  display:flex;align-items:center;gap:14px;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:14px 16px;
  text-decoration:none;color:var(--text);
  transition:transform .2s,border-color .2s,background .2s;
}
.channel:hover{transform:translateX(4px);border-color:var(--gold);background:var(--surface-2)}
.channel-ico{
  width:46px;height:46px;border-radius:12px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:20px;
}
.channel-ico.wa{background:rgba(37,211,102,.15);color:var(--whatsapp)}
.channel-ico.phone{background:rgba(93,169,255,.15);color:var(--accent)}
.channel-ico.email{background:rgba(220,230,122,.15);color:var(--gold)}
.channel-ico.web{background:rgba(168,196,86,.15);color:var(--green)}
.channel-info{display:flex;flex-direction:column;min-width:0}
.channel-info strong{font-size:15px;color:var(--text)}
.channel-info span{font-size:13px;color:var(--text-dim);overflow:hidden;text-overflow:ellipsis}

.contact-form{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-lg);padding:26px 22px;
}
.form-row{display:grid;grid-template-columns:1fr;gap:16px}
.form-group{margin-bottom:18px}
.form-group label{
  display:block;font-size:13px;color:var(--text-dim);
  margin-bottom:6px;font-weight:500;
}
.form-group input,
.form-group select,
.form-group textarea{
  width:100%;
  background:var(--bg-2);border:1px solid var(--line);
  border-radius:12px;padding:13px 14px;
  font-size:15px;color:var(--text);
  transition:border-color .2s,background .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:none;border-color:var(--accent);background:var(--bg);
}
.form-group textarea{min-height:110px;resize:vertical;font-family:inherit}
.form-check{
  display:flex;align-items:flex-start;gap:10px;
  margin:18px 0;font-size:13px;color:var(--text-dim);
}
.form-check input{margin-top:3px;width:16px;height:16px;flex-shrink:0;accent-color:var(--accent)}
.form-msg{margin-top:14px;padding:12px 14px;border-radius:10px;font-size:14px;display:none}
.form-msg.success{display:block;background:rgba(34,197,94,.1);border:1px solid rgba(34,197,94,.3);color:#a7f3c4}
.form-msg.error{display:block;background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.3);color:#fca5a5}

.map-block{
  border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);
  aspect-ratio:16/10;background:var(--surface);
  grid-column:1/-1;
}
.map-block iframe{width:100%;height:100%;border:0;display:block}

@media (min-width: 600px){
  .form-row{grid-template-columns:1fr 1fr}
}
@media (min-width: 900px){
  .contact-grid{grid-template-columns:1fr 1.1fr;gap:32px}
  .map-block{grid-column:1/-1;aspect-ratio:21/8}
  .contact-form{padding:34px 30px}
}

/* ---------- CTA BANNER ---------- */
.cta-banner{
  background:linear-gradient(135deg,rgba(220,230,122,.10) 0%,rgba(93,169,255,.10) 100%);
  border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:40px 24px;text-align:center;
}
.cta-banner h2{margin-bottom:12px;font-size:clamp(24px,4vw,38px)}
.cta-banner p{margin:0 auto 22px;max-width:600px}
@media (min-width: 760px){.cta-banner{padding:60px 40px}}

/* ---------- FOOTER ---------- */
.site-footer{
  background:var(--bg-2);border-top:1px solid var(--line);
  padding:48px 0 22px;margin-top:40px;
}
.footer-grid{
  display:grid;grid-template-columns:1fr;gap:32px;
  margin-bottom:32px;
}
.footer-brand p{font-size:14px;margin-top:14px;color:var(--text-dim)}
.site-footer h5{
  font-size:13px;text-transform:uppercase;letter-spacing:1.2px;
  color:var(--gold);margin-bottom:14px;font-family:'Inter',sans-serif;font-weight:700;
}
.site-footer ul{list-style:none}
.site-footer ul li{margin-bottom:8px;font-size:14px}
.site-footer ul a{color:var(--text-dim);text-decoration:none;transition:color .2s}
.site-footer ul a:hover{color:var(--gold)}
.footer-bottom{
  border-top:1px solid var(--line);padding-top:22px;
  display:flex;flex-direction:column;gap:10px;align-items:center;
  font-size:12.5px;color:var(--muted);text-align:center;
}
.footer-bottom a{color:var(--text-dim);text-decoration:none;margin:0 6px;transition:color .2s}
.footer-bottom a:hover{color:var(--gold)}

@media (min-width: 600px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px}
}
@media (min-width: 900px){
  .footer-grid{grid-template-columns:1.4fr 1fr 1fr 1fr}
  .footer-bottom{flex-direction:row;justify-content:space-between;text-align:left}
}

/* ---------- COOKIES BANNER ---------- */
.cookies-banner{
  position:fixed;bottom:18px;left:18px;right:18px;
  z-index:200;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:18px 20px;
  box-shadow:var(--shadow-lg);
  display:none;
}
.cookies-banner.show{display:block;animation:slideUp .35s ease}
@keyframes slideUp{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}
.cookies-inner{
  display:flex;flex-direction:column;gap:14px;
  max-width:1200px;margin:0 auto;
}
.cookies-text{font-size:14px;color:var(--text-dim)}
.cookies-text strong{color:var(--text);display:block;margin-bottom:4px}
.cookies-text a{color:var(--accent)}
.cookies-actions{
  display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;
}
.cookies-actions .btn{flex:1;min-width:140px}

@media (min-width: 800px){
  .cookies-banner{left:24px;right:24px;bottom:24px;padding:20px 26px}
  .cookies-inner{flex-direction:row;align-items:center;gap:24px}
  .cookies-text{flex:1}
  .cookies-actions{flex-wrap:nowrap;justify-content:flex-start}
  .cookies-actions .btn{flex:none}
}

/* ---------- WHATSAPP FLOTANTE ---------- */
.wa-float{
  position:fixed;bottom:22px;right:18px;z-index:90;
  width:58px;height:58px;border-radius:50%;
  background:var(--whatsapp);color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 14px 30px -8px rgba(37,211,102,.5);
  text-decoration:none;
  animation:wapulse 2.5s ease-in-out infinite;
  transition:transform .25s;
}
.wa-float:hover{transform:scale(1.08)}
@keyframes wapulse{
  0%,100%{box-shadow:0 14px 30px -8px rgba(37,211,102,.5),0 0 0 0 rgba(37,211,102,.6)}
  50%{box-shadow:0 14px 30px -8px rgba(37,211,102,.5),0 0 0 14px rgba(37,211,102,0)}
}
.wa-float svg{width:28px;height:28px}

@media (min-width: 800px){
  .wa-float{bottom:28px;right:28px;width:62px;height:62px}
  .wa-float svg{width:30px;height:30px}
}

/* ---------- CHATBOT ---------- */
.chat-toggle{
  position:fixed;bottom:90px;right:18px;z-index:90;
  width:54px;height:54px;border-radius:50%;
  background:var(--grad-mix);color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-md);
  transition:transform .2s;
}
.chat-toggle:hover{transform:scale(1.08)}
.chat-toggle svg{width:24px;height:24px}
.chat-toggle .badge{
  position:absolute;top:-4px;right:-4px;
  width:20px;height:20px;border-radius:50%;
  background:var(--danger);color:#fff;
  font-size:11px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
  border:2px solid var(--bg);
}
.chat-window{
  position:fixed;bottom:18px;right:18px;left:18px;
  z-index:120;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;
  display:none;flex-direction:column;
  box-shadow:var(--shadow-lg);
  max-height:min(80vh,560px);
}
.chat-window.active{display:flex}
.chat-header{
  display:flex;align-items:center;gap:12px;
  padding:14px 16px;
  background:var(--surface-2);border-bottom:1px solid var(--line);
}
.chat-avatar{
  width:38px;height:38px;border-radius:50%;
  background:var(--grad-mix);display:flex;align-items:center;justify-content:center;
  font-size:18px;flex-shrink:0;
}
.chat-header-info{flex:1;line-height:1.2;min-width:0}
.chat-header-info strong{font-size:14px;display:block;color:var(--text)}
.chat-header-info span{font-size:11px;color:var(--success)}
.chat-close{
  width:32px;height:32px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  color:var(--text-dim);transition:background .2s;
}
.chat-close:hover{background:var(--bg-2);color:var(--text)}

.chat-messages{
  flex:1;overflow-y:auto;padding:16px;
  display:flex;flex-direction:column;gap:10px;
  scroll-behavior:smooth;
}
.msg{
  max-width:82%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.5;
  word-wrap:break-word;
}
.msg.bot{background:var(--bg-2);color:var(--text);align-self:flex-start;border-bottom-left-radius:4px}
.msg.bot strong{color:var(--gold)}
.msg.user{background:var(--grad-mix);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.msg.bot a{color:var(--accent)}
.typing{
  background:var(--bg-2);padding:10px 14px;border-radius:14px;
  align-self:flex-start;display:flex;gap:4px;
  border-bottom-left-radius:4px;
}
.typing span{
  width:7px;height:7px;border-radius:50%;background:var(--text-dim);
  animation:typing 1.4s infinite;
}
.typing span:nth-child(2){animation-delay:.2s}
.typing span:nth-child(3){animation-delay:.4s}
@keyframes typing{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}

.quick-replies{
  display:flex;flex-wrap:wrap;gap:6px;
  padding:0 16px 8px;
}
.quick-reply{
  font-size:12px;padding:6px 12px;
  border-radius:50px;background:var(--bg-2);
  color:var(--text-dim);border:1px solid var(--line);
  cursor:pointer;transition:all .2s;
}
.quick-reply:hover{border-color:var(--gold);color:var(--gold)}

.chat-input-area{
  display:flex;gap:8px;padding:12px;
  border-top:1px solid var(--line);
}
.chat-input-area input{
  flex:1;background:var(--bg-2);border:1px solid var(--line);
  border-radius:50px;padding:10px 16px;color:var(--text);font-size:14px;
}
.chat-input-area input:focus{outline:none;border-color:var(--accent)}
.chat-send{
  width:42px;height:42px;border-radius:50%;
  background:var(--grad-mix);color:#fff;
  display:flex;align-items:center;justify-content:center;
  transition:transform .2s;
}
.chat-send:hover{transform:scale(1.08)}

@media (min-width: 600px){
  .chat-window{
    bottom:90px;right:24px;left:auto;
    width:380px;
  }
  .chat-toggle{bottom:96px;right:28px;width:56px;height:56px}
  .chat-toggle.with-banner{bottom:170px}
}

/* ---------- MODAL ---------- */
.modal-overlay{
  position:fixed;inset:0;z-index:200;
  background:rgba(0,0,0,.7);backdrop-filter:blur(6px);
  display:none;align-items:center;justify-content:center;
  padding:20px;
}
.modal-overlay.active{display:flex;animation:fadeIn .25s ease}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.modal{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-lg);padding:28px 24px;
  max-width:560px;width:100%;
  max-height:90vh;overflow-y:auto;
  position:relative;
}
.modal-close{
  position:absolute;top:14px;right:14px;
  width:36px;height:36px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  color:var(--text-dim);background:transparent;
  border:1px solid var(--line);transition:all .2s;
  font-size:16px;
}
.modal-close:hover{color:var(--text);background:var(--bg-2)}
.modal h3{margin-bottom:14px;padding-right:40px}
.modal .law{
  font-size:11px;color:var(--gold);font-weight:600;
  letter-spacing:1px;text-transform:uppercase;margin-bottom:6px;
}
.modal .intro{margin-bottom:18px;font-size:15px}
.modal h4{margin:18px 0 10px;font-size:15px;color:var(--gold);font-family:'Inter',sans-serif}
.modal ul{list-style:none;margin-bottom:22px}
.modal ul li{
  position:relative;padding-left:24px;
  font-size:14.5px;color:var(--text-dim);
  margin-bottom:8px;line-height:1.5;
}
.modal ul li::before{
  content:"✓";position:absolute;left:0;top:0;
  color:var(--success);font-weight:700;
}

@media (min-width: 600px){
  .modal{padding:34px 32px}
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal{
  opacity:0;transform:translateY(24px);
  transition:opacity .7s ease,transform .7s ease;
}
.reveal.visible{opacity:1;transform:translateY(0)}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none}
  *{animation:none !important;transition:none !important}
}

/* ---------- BLOG PAGE ---------- */
.blog-hero{
  padding:calc(var(--header-h) + 50px) 0 30px;
  text-align:center;
}
.blog-hero h1{margin-bottom:16px}
.blog-hero p{font-size:clamp(15px,2vw,18px);color:var(--text-dim);max-width:680px;margin:0 auto}

.blog-tools{
  display:flex;flex-direction:column;gap:14px;
  margin:24px 0 36px;
}
.blog-search{
  position:relative;
}
.blog-search input{
  width:100%;background:var(--surface);
  border:1px solid var(--line);border-radius:50px;
  padding:13px 18px 13px 44px;color:var(--text);
  font-size:15px;
}
.blog-search input:focus{outline:none;border-color:var(--accent)}
.blog-search svg{
  position:absolute;left:16px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;color:var(--text-dim);
}
.filter-bar{
  display:flex;flex-wrap:wrap;gap:8px;
  justify-content:center;
}
.filter-chip{
  padding:8px 14px;border-radius:50px;
  background:var(--surface);border:1px solid var(--line);
  color:var(--text-dim);font-size:13px;font-weight:500;
  cursor:pointer;transition:all .2s;
}
.filter-chip.active,.filter-chip:hover{
  background:var(--surface-2);border-color:var(--gold);color:var(--gold);
}

.articles-list{
  display:flex;flex-direction:column;gap:24px;
  padding-bottom:60px;
}
.article-card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;
  display:grid;grid-template-columns:1fr;
  transition:all .3s;
}
.article-card:hover{border-color:var(--gold);transform:translateY(-3px);box-shadow:var(--shadow-md)}
.article-card .article-img{
  position:relative;aspect-ratio:16/9;overflow:hidden;
}
.article-card .article-img img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .5s;
}
.article-card:hover .article-img img{transform:scale(1.05)}
.article-tag{
  position:absolute;top:14px;left:14px;
  background:rgba(7,11,22,.85);backdrop-filter:blur(10px);
  color:var(--gold);font-size:10px;font-weight:700;
  letter-spacing:.8px;padding:5px 12px;border-radius:50px;text-transform:uppercase;
}
.article-body{padding:24px}
.article-meta{
  display:flex;flex-wrap:wrap;gap:10px;
  font-size:12px;color:var(--muted);margin-bottom:12px;
}
.article-card h2{
  font-family:'Playfair Display',serif;
  font-size:clamp(18px,2.5vw,24px);line-height:1.25;
  margin-bottom:12px;font-weight:700;
}
.article-excerpt{font-size:15px;margin-bottom:14px}
.article-key{
  background:rgba(93,169,255,.08);
  border-left:3px solid var(--accent);
  padding:12px 14px;border-radius:8px;
  margin-bottom:16px;font-size:14px;color:var(--text-dim);
}
.article-key strong{color:var(--accent)}
.article-actions{
  display:flex;gap:14px;align-items:center;flex-wrap:wrap;
}
.article-link{
  color:var(--accent);font-size:13.5px;font-weight:600;
  text-decoration:none;display:inline-flex;align-items:center;gap:5px;
}
.article-link:hover{color:var(--gold)}
.article-source{
  font-size:11.5px;color:var(--muted);
  width:100%;margin-top:6px;
}
.article-source a{color:var(--text-dim)}

@media (min-width: 760px){
  .blog-tools{flex-direction:row;align-items:center}
  .blog-search{flex:1;max-width:380px}
  .filter-bar{flex:1;justify-content:flex-end}
  .article-card{grid-template-columns:340px 1fr}
  .article-card .article-img{aspect-ratio:auto;height:100%;min-height:240px}
  .article-source{width:auto;margin-left:auto;margin-top:0}
}

.no-results{
  text-align:center;padding:60px 20px;color:var(--text-dim);
}
.no-results h3{color:var(--text);margin-bottom:8px}

/* ---------- PÁGINAS LEGALES ---------- */
.legal-page main{
  padding:calc(var(--header-h) + 40px) 0 60px;
}
.legal-page .breadcrumb{
  font-size:13px;color:var(--muted);margin-bottom:14px;
}
.legal-page .breadcrumb a{color:var(--text-dim);text-decoration:none}
.legal-page .breadcrumb a:hover{color:var(--text)}
.legal-page h1{margin-bottom:14px}
.legal-page .lead{
  font-size:17px;color:var(--text-dim);margin-bottom:30px;
  padding-bottom:24px;border-bottom:1px solid var(--line);
}
.legal-page h2{
  font-family:'Playfair Display',serif;font-size:24px;
  margin:36px 0 14px;color:var(--text);font-weight:700;
}
.legal-page h3{font-size:17px;margin:24px 0 10px;color:var(--gold);font-weight:600;font-family:'Inter',sans-serif}
.legal-page p,.legal-page ul,.legal-page ol{color:var(--text-dim);margin-bottom:14px}
.legal-page ul,.legal-page ol{margin-left:22px}
.legal-page li{margin-bottom:6px}
.legal-page strong{color:var(--text)}
.legal-page a{color:var(--accent);word-break:break-word}
.info-box{
  background:var(--surface);border:1px solid var(--line);
  border-left:4px solid var(--gold);border-radius:12px;
  padding:20px;margin:22px 0;
}
.info-box h3{margin-top:0}
.info-box p:last-child{margin-bottom:0}
.updated{
  display:inline-block;font-size:12.5px;color:var(--muted);
  background:var(--surface);border:1px solid var(--line);
  padding:5px 12px;border-radius:50px;margin-bottom:24px;
}
.legal-page table{
  width:100%;border-collapse:collapse;
  margin:18px 0;font-size:13.5px;
  display:block;overflow-x:auto;
}
.legal-page table th,
.legal-page table td{
  padding:10px 12px;border:1px solid var(--line);
  text-align:left;color:var(--text-dim);min-width:120px;
}
.legal-page table th{background:var(--surface);color:var(--text);font-weight:600}

/* ---------- ADMIN PAGE ---------- */
.admin-body{padding-top:calc(var(--header-h) + 30px)}
.admin-grid{
  display:grid;grid-template-columns:1fr;gap:24px;
}
.admin-card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:22px;
}
.admin-card h2{
  font-size:20px;margin-bottom:6px;
  font-family:'Playfair Display',serif;
}
.admin-card h2 + p{font-size:14px;margin-bottom:18px}
.posts-list{
  display:flex;flex-direction:column;gap:10px;
  max-height:60vh;overflow-y:auto;
  padding-right:4px;
}
.post-row{
  display:flex;align-items:center;gap:10px;
  background:var(--bg-2);border:1px solid var(--line);
  border-radius:12px;padding:10px 12px;
  transition:border-color .2s;
}
.post-row:hover{border-color:var(--gold)}
.post-row .post-info{flex:1;min-width:0}
.post-row .post-info strong{
  display:block;font-size:14px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.post-row .post-info span{font-size:11.5px;color:var(--muted)}
.post-row .post-actions{display:flex;gap:6px;flex-shrink:0}
.icon-btn{
  width:34px;height:34px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  background:var(--bg);border:1px solid var(--line);
  color:var(--text-dim);transition:all .2s;
}
.icon-btn:hover{color:var(--text);border-color:var(--gold)}
.icon-btn.danger:hover{color:var(--danger);border-color:var(--danger)}

.admin-toolbar{
  display:flex;gap:10px;flex-wrap:wrap;
  padding-top:14px;margin-top:14px;
  border-top:1px solid var(--line);
}
.admin-toolbar .btn{flex:1;min-width:140px}

@media (min-width: 1000px){
  .admin-grid{grid-template-columns:380px 1fr}
}

/* Editor */
.editor .form-row{margin-bottom:16px}
.editor input[type="text"],
.editor input[type="url"],
.editor textarea,
.editor select{
  width:100%;background:var(--bg-2);border:1px solid var(--line);
  border-radius:10px;padding:11px 14px;
  font-size:14.5px;color:var(--text);
}
.editor input:focus,.editor textarea:focus,.editor select:focus{
  outline:none;border-color:var(--accent);
}
.editor label{
  display:block;font-size:12.5px;color:var(--text-dim);
  margin-bottom:5px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;
}
.editor textarea{min-height:96px;font-family:inherit;resize:vertical}
.editor .hint{font-size:11.5px;color:var(--muted);margin-top:4px}
.editor .grid-2{display:grid;gap:14px;grid-template-columns:1fr}
@media (min-width: 600px){.editor .grid-2{grid-template-columns:1fr 1fr}}
.editor .preview-img{
  margin-top:8px;max-height:140px;border-radius:8px;
  border:1px solid var(--line);object-fit:cover;
}

.help-block{
  font-size:13px;color:var(--text-dim);
  background:rgba(93,169,255,.06);
  border:1px solid rgba(93,169,255,.2);
  border-radius:10px;padding:12px 14px;
  margin-bottom:16px;
}
.help-block strong{color:var(--accent)}
.help-block code{
  background:var(--bg);padding:1px 6px;border-radius:4px;
  font-size:12.5px;color:var(--gold);
}

/* Login admin */
.admin-login{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:24px;
}
.admin-login form{
  width:100%;max-width:380px;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-lg);padding:30px 26px;
}
.admin-login h1{font-size:24px;margin-bottom:6px}
.admin-login p{font-size:13px;margin-bottom:20px}

/* Print */
@media print{
  .site-header,.wa-float,.chat-toggle,.chat-window,
  .cookies-banner,.menu-toggle,.mobile-drawer{display:none !important}
  body{background:#fff;color:#000}
  body::before{display:none}
}
