@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root{
  --navy:#1A1A1A;
  --navy-2:#262626;
  --navy-3:#333333;
  --ink:#1A1A1A;
  --paper:#FAFAFA;
  --paper-dim:#F0F0F0;
  --line:#E2E2E2;
  --teal:#16CDD3;
  --teal-dark:#0FA8AD;
  --teal-light:#E3FBFC;
  --gold:#F0A93A;
  --gold-light:#FDF0DC;
  --blue:#3E7CC4;
  --blue-light:#E6EFFA;
  --brick:#E8703A;
  --brick-light:#FCE9DD;
  --white:#FFFFFF;
  --muted:#6B6F76;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter',sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:'Poppins',sans-serif;color:var(--ink);letter-spacing:-0.01em;font-weight:700;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}
.eyebrow{
  font-family:'Poppins',sans-serif;
  font-size:11.5px;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--ink);
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before,.eyebrow::after{content:'';width:20px;height:1.5px;background:var(--teal);flex-shrink:0;}
.hero .eyebrow,.values .eyebrow{color:#fff;}
.wrap{max-width:1200px;margin:0 auto;padding:0 28px;}

/* NAV */
header{
  position:sticky;top:0;z-index:50;
  background:var(--navy);
  border-bottom:1px solid rgba(255,255,255,0.07);
}
.brand-rule{height:4px;background:repeating-linear-gradient(135deg, var(--teal) 0 10px, var(--navy) 10px 20px);}
nav.wrap{display:flex;align-items:center;justify-content:space-between;height:76px;}
.logo{display:flex;align-items:center;gap:11px;font-family:'Poppins',sans-serif;font-weight:700;font-size:22px;color:#fff;}
.logo-badge{background:#fff;border-radius:9px;padding:7px 12px;display:inline-flex;align-items:center;}
.logo-badge img{height:26px;width:auto;display:block;}
footer .logo-badge img{height:30px;}

.navlinks{display:flex;gap:30px;font-size:14px;font-weight:500;color:#C8C8CC;}
.navlinks a{padding:8px 0;border-bottom:2px solid transparent;transition:border-color .15s, color .15s;}
.navlinks a:hover{border-color:var(--teal);color:#fff;}
.navcta{display:flex;align-items:center;gap:10px;}
.btn{
  padding:11px 20px;border-radius:9px;font-size:14px;font-weight:600;
  transition:transform .12s ease, background .15s ease, color .15s ease, border-color .15s;
  display:inline-flex;align-items:center;gap:8px;white-space:nowrap;
}
.btn:active{transform:scale(0.97);}
.btn-primary{background:var(--teal);color:#04241F;}
.btn-primary:hover{background:var(--teal-dark);color:#fff;}
.btn-ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,0.35);}
.btn-ghost:hover{border-color:var(--teal);color:var(--teal);}
.btn-gold{background:var(--gold);color:#3A2504;}
.btn-gold:hover{background:#D9911F;}
.user-chip{display:flex;align-items:center;gap:10px;cursor:pointer;padding:6px 12px 6px 6px;border-radius:9px;border:1.5px solid rgba(255,255,255,0.3);text-decoration:none;}
.user-chip span:not(.avatar){font-size:13.5px;font-weight:600;color:#fff;}
.user-chip:hover{background:rgba(255,255,255,.08);}
.avatar{width:30px;height:30px;border-radius:50%;background:var(--teal);color:#04241F;display:grid;place-items:center;font-size:12px;font-weight:700;font-family:'IBM Plex Mono',monospace;flex-shrink:0;}
.avatar.big{width:46px;height:46px;font-size:15px;}

/* HERO */
.hero{
  background:linear-gradient(115deg, var(--navy) 40%, var(--navy-2) 100%);
  color:var(--paper);padding:80px 0 70px;position:relative;overflow:hidden;
}
.hero-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:50px;align-items:center;position:relative;z-index:2;}
.hero h1{font-size:44px;line-height:1.12;font-weight:700;color:#fff;margin-bottom:18px;}
.hero h1 em{font-style:normal;color:var(--teal);}
.hero p.lede{font-size:16.5px;color:#B8B8BC;max-width:460px;margin-bottom:30px;}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:36px;}

.pill-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:480px;}
.pill{
  display:flex;align-items:center;gap:12px;background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);border-radius:12px;padding:12px 14px;
  cursor:pointer;transition:background .15s, border-color .15s;
}
.pill:hover{background:rgba(255,255,255,0.11);border-color:var(--teal);}
.pill .pi{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;flex-shrink:0;}
.pill .pi svg{width:18px;height:18px;}
.pill h4{font-size:13.5px;font-weight:600;color:#fff;font-family:'Inter',sans-serif;}
.pill p{font-size:11.5px;color:#A0A0A5;margin-top:1px;}

.hero-visual{position:relative;height:420px;border-radius:20px;overflow:hidden;isolation:isolate;}
.hv-panel{position:absolute;inset:0;}
.hv-left{background:linear-gradient(160deg,#116E68,#0A403C);clip-path:polygon(0 0, 62% 0, 38% 100%, 0 100%);}
.hv-right{background:linear-gradient(160deg,#2B2B2B,#141414);clip-path:polygon(62% 0, 100% 0, 100% 100%, 38% 100%);}
.hv-divider{position:absolute;top:0;bottom:0;left:38%;width:2px;background:linear-gradient(180deg,rgba(255,255,255,0.5),rgba(255,255,255,0));transform:skewX(-14deg);z-index:3;}
.hv-content{position:absolute;inset:0;z-index:2;}
.hv-chart{position:absolute;left:8%;top:16%;width:44%;}
.hv-grid{position:absolute;right:6%;bottom:12%;width:46%;}
.hv-watermark{
  position:absolute;bottom:16px;right:18px;width:120px;opacity:0.22;z-index:2;
  filter:brightness(0) invert(1);
}

/* SECTION HEADS */
.section{padding:76px 0;}
.section-head{margin-bottom:40px;text-align:center;}
.section-head.left{text-align:left;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;}
.section-head h2{font-size:30px;font-weight:700;}
.section-head h2 span{color:var(--teal);}
.section-head p{color:var(--muted);font-size:14.5px;max-width:480px;margin:10px auto 0;}
.section-head.left p{margin:0;}

/* SERVICE OVERVIEW BLOCKS */
.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;}
.ov-block{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:26px 26px 22px;}
.ov-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.ov-head h3{font-size:19px;font-weight:700;}
.ov-head .cat-dot{width:10px;height:10px;border-radius:50%;}
.ov-block p.ov-sub{font-size:13px;color:var(--muted);margin-bottom:18px;}
.icon-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.icon-tile{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:10px 4px;border-radius:10px;transition:background .15s;cursor:pointer;}
.icon-tile:hover{background:var(--paper-dim);}
.icon-tile .it-chip{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;}
.icon-tile .it-chip svg{width:19px;height:19px;}
.icon-tile span{font-size:11.5px;font-weight:600;color:var(--ink);line-height:1.25;}
.ov-link{display:inline-flex;align-items:center;gap:5px;margin-top:18px;font-size:13px;font-weight:600;color:var(--teal);}

.chip-tone-legal{background:var(--teal-light);color:var(--teal-dark);}
.chip-tone-digital{background:var(--gold-light);color:#8F5F0F;}
.chip-tone-electrica{background:var(--blue-light);color:#23507F;}
.chip-tone-propiedades{background:var(--brick-light);color:#B3451E;}
.dot-legal{background:var(--teal);}
.dot-digital{background:var(--gold);}
.dot-electrica{background:var(--blue);}
.dot-propiedades{background:var(--brick);}

/* FILTER CHIPS */
.chips{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:30px;justify-content:center;}
.chip{
  padding:9px 16px;border-radius:9px;font-size:13.5px;font-weight:600;
  border:1px solid var(--line);background:var(--white);color:var(--muted);
  display:flex;align-items:center;gap:7px;transition:all .15s;
}
.chip.active{background:var(--navy);color:#fff;border-color:var(--navy);}
.chip .dot{width:8px;height:8px;border-radius:50%;}

.search-row{display:flex;gap:10px;margin-bottom:26px;max-width:560px;margin-left:auto;margin-right:auto;}
.search-row input{
  flex:1;padding:12px 16px;border-radius:9px;border:1px solid var(--line);
  font-size:14px;background:var(--white);font-family:'Inter',sans-serif;
}
.search-row input:focus{outline:2px solid var(--teal);outline-offset:1px;}

/* GRID */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px;}
.card{
  background:var(--white);border:1px solid var(--line);border-radius:14px;overflow:hidden;
  display:flex;flex-direction:column;transition:box-shadow .15s, transform .15s;
}
.card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,0.1);}
.stripe{height:8px;width:100%;}
.stripe.legal{background:var(--teal);}
.stripe.digital{background:var(--gold);}
.stripe.electrica{background:var(--blue);}
.stripe.propiedades{background:var(--brick);}
.card-body{padding:20px;display:flex;flex-direction:column;gap:12px;flex:1;}
.cat-tag{
  font-family:'IBM Plex Mono',monospace;font-size:11px;font-weight:500;letter-spacing:.04em;
  text-transform:uppercase;padding:4px 9px;border-radius:5px;width:fit-content;
}
.cat-tag.legal{background:var(--teal-light);color:var(--teal-dark);}
.cat-tag.digital{background:var(--gold-light);color:#5C3D0A;}
.cat-tag.electrica{background:var(--blue-light);color:#22374A;}
.cat-tag.propiedades{background:var(--brick-light);color:#7E331B;}
.card h3{font-size:17px;font-weight:700;line-height:1.3;}
.card .desc{font-size:13.5px;color:var(--muted);flex:1;}
.card .provider{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--ink);}
.card .meta-row{display:flex;align-items:center;justify-content:space-between;padding-top:10px;border-top:1px solid var(--line);}
.price{font-family:'IBM Plex Mono',monospace;font-weight:500;font-size:14px;}
.stars{display:flex;align-items:center;gap:3px;font-size:12.5px;color:var(--muted);}
.stars svg{fill:var(--gold);}
.card-actions{display:flex;gap:8px;padding:0 20px 20px;}
.card-actions .btn{flex:1;justify-content:center;padding:9px;font-size:13.5px;border-radius:9px;}
.card-actions .btn-ghost{color:var(--ink);border-color:var(--line);}
.card-actions .btn-ghost:hover{border-color:var(--navy);color:var(--navy);}
.card-actions .btn-primary{background:var(--navy);color:#fff;}
.card-actions .btn-primary:hover{background:var(--teal-dark);}

/* VALUE PROPS ("Por qué elegir VAD") */
.values{background:var(--navy);color:#fff;}
.values .section-head h2{color:#fff;}
.values .section-head p{color:#A0A0A5;}
.value-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.value{text-align:center;padding:8px 14px;}
.value .vi{width:56px;height:56px;border-radius:50%;border:1.5px solid var(--teal);color:var(--teal);display:grid;place-items:center;margin:0 auto 16px;}
.value h3{font-size:16px;font-weight:700;margin-bottom:8px;color:#fff;}
.value p{font-size:13px;color:#A0A0A5;}

/* TEAM */
.team-card{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:6px 26px;max-width:640px;margin:0 auto;}
.team-row{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--line);cursor:pointer;transition:background .15s;}
.team-row:last-child{border-bottom:none;}
.team-row:hover{background:var(--paper-dim);margin:0 -14px;padding:18px 14px;border-radius:10px;}
.team-row img{width:52px;height:52px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid var(--paper-dim);}
.team-row h4{font-size:15.5px;font-weight:700;}
.team-row p{font-size:13px;color:var(--muted);margin-top:2px;}

/* WORKS / DESTACADOS */
.works-wrap{position:relative;}
.works-scroller{display:flex;gap:18px;overflow-x:auto;scroll-behavior:smooth;padding-bottom:6px;scrollbar-width:none;}
.works-scroller::-webkit-scrollbar{display:none;}
.work-card{flex:0 0 260px;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--white);}
.work-thumb{height:150px;display:flex;align-items:center;justify-content:center;position:relative;color:#fff;}
.work-thumb svg{width:38px;height:38px;position:relative;z-index:2;}
.work-thumb::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 60%);}
.work-info{padding:14px 16px 18px;}
.work-info h4{font-size:14.5px;font-weight:700;margin-bottom:3px;}
.work-info p{font-size:12.5px;color:var(--muted);}
.works-nav{display:flex;gap:8px;justify-content:center;margin-top:20px;}
.works-nav button{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;transition:border-color .15s;}
.works-nav button:hover{border-color:var(--navy);}

/* CTA BANNER */
.cta-banner{
  background:linear-gradient(100deg,var(--teal-dark),var(--teal));color:#fff;border-radius:20px;padding:42px 46px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
}
.cta-banner h2{color:#fff;font-size:25px;}
.cta-banner p{color:#DFF9F4;font-size:14px;margin-top:6px;}
.cta-actions{display:flex;align-items:center;gap:12px;}
.cta-banner .btn-white{background:#fff;color:var(--teal-dark);padding:13px 24px;}
.cta-banner .btn-white:hover{background:#EAFBF8;}
.cta-round{width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,0.2);display:grid;place-items:center;flex-shrink:0;}
.cta-round svg{width:22px;height:22px;}

/* FOOTER */
footer{background:var(--navy);color:#A0A0A5;padding:56px 0 26px;}
.foot-top{display:flex;flex-direction:column;gap:14px;margin-bottom:36px;padding-bottom:36px;border-bottom:1px solid rgba(255,255,255,0.08);}
.foot-top .logo{color:#fff;}
.foot-top p.tag{font-size:13.5px;color:#8D8D93;max-width:340px;}
.social-row{display:flex;gap:10px;margin-top:6px;}
.social-row a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,0.07);display:grid;place-items:center;transition:background .15s;}
.social-row a:hover{background:var(--teal);}
.social-row svg{width:15px;height:15px;}
.foot-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1.1fr;gap:32px;margin-bottom:36px;}
footer h4{color:#fff;font-size:13px;margin-bottom:14px;font-weight:700;letter-spacing:.03em;}
footer ul{list-style:none;display:flex;flex-direction:column;gap:10px;font-size:13.5px;}
footer ul li a:hover{color:#fff;}
.contact-list{display:flex;flex-direction:column;gap:12px;}
.contact-list li{display:flex;align-items:flex-start;gap:9px;font-size:13.5px;}
.contact-list svg{width:15px;height:15px;flex-shrink:0;margin-top:2px;color:var(--teal);}
.foot-bottom{border-top:1px solid rgba(255,255,255,0.08);padding-top:22px;font-size:12.5px;color:#808086;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;}

/* MODAL */
.overlay{
  position:fixed;inset:0;background:rgba(10,10,10,0.6);display:none;
  align-items:center;justify-content:center;z-index:200;padding:20px;
}
.overlay.show{display:flex;}
.modal{
  background:var(--white);border-radius:16px;max-width:440px;width:100%;
  padding:32px;position:relative;max-height:90vh;overflow-y:auto;
}
.modal.wide{max-width:560px;}
.modal-close{position:absolute;top:18px;right:18px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--paper-dim);}
.modal-close:hover{background:var(--line);}
.modal h2{font-size:22px;margin-bottom:6px;}
.modal p.sub{font-size:13.5px;color:var(--muted);margin-bottom:24px;}
.field{margin-bottom:16px;}
.field label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;}
.field input,.field select,.field textarea{
  width:100%;padding:11px 13px;border-radius:8px;border:1px solid var(--line);
  font-size:14px;font-family:'Inter',sans-serif;background:var(--paper);
}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--teal);outline-offset:1px;}
.field textarea{resize:vertical;min-height:80px;}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.modal .btn{width:100%;justify-content:center;padding:13px;font-size:14.5px;margin-top:6px;border-radius:9px;}
.modal .btn-primary{background:var(--navy);color:#fff;}
.modal .btn-primary:hover{background:var(--teal-dark);}
.switch-line{text-align:center;font-size:13.5px;color:var(--muted);margin-top:18px;}
.switch-line button{color:var(--teal-dark);font-weight:600;}
.form-error{background:var(--brick-light);color:#7E331B;font-size:13px;padding:10px 12px;border-radius:8px;margin-bottom:16px;display:none;}
.form-error.show{display:block;}
.hint{font-size:12px;color:#8A97A6;margin-top:-10px;margin-bottom:16px;}

/* DETAIL MODAL */
.detail-head{display:flex;align-items:center;gap:12px;margin-bottom:18px;}
.detail-head .avatar{flex-shrink:0;}
.detail-body p.desc{font-size:14px;color:var(--ink);line-height:1.6;margin:16px 0;}
.detail-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px;}
.fact{background:var(--paper-dim);border-radius:8px;padding:10px 12px;}
.fact .k{font-size:11px;color:var(--muted);text-transform:uppercase;font-family:'IBM Plex Mono',monospace;}
.fact .v{font-size:14px;font-weight:600;margin-top:2px;}

/* TOAST */
.toast{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);
  background:var(--navy);color:#fff;padding:14px 22px;border-radius:10px;font-size:14px;font-weight:500;
  display:flex;align-items:center;gap:10px;z-index:300;opacity:0;transition:opacity .25s, transform .25s;
  pointer-events:none;box-shadow:0 8px 24px rgba(0,0,0,0.25);
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
.toast .tdot{width:8px;height:8px;border-radius:50%;background:var(--teal);flex-shrink:0;}

.empty{text-align:center;padding:60px 20px;color:var(--muted);}
.empty h3{color:var(--ink);font-size:18px;margin-bottom:6px;}

@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-visual{height:260px;}
  .navlinks{display:none;}
  .value-grid{grid-template-columns:1fr 1fr;}
  .overview-grid{grid-template-columns:1fr;}
  .foot-grid{grid-template-columns:1fr 1fr;}
  .hero h1{font-size:32px;}
}
@media(max-width:560px){
  .value-grid{grid-template-columns:1fr;}
  .foot-grid{grid-template-columns:1fr;}
  .field-row{grid-template-columns:1fr;}
  .cta-banner{flex-direction:column;align-items:flex-start;}
  .pill-row{grid-template-columns:1fr;}
  .icon-grid{grid-template-columns:repeat(2,1fr);}
}

:focus-visible{outline:2px solid var(--teal);outline-offset:2px;}

/* Perfil de usuario */
.profile-avatar-row{display:flex;align-items:center;gap:16px;margin-bottom:18px;}
.profile-avatar-row .avatar{background:var(--teal);color:#04241F;object-fit:cover;}
.profile-avatar-row img.avatar{width:72px;height:72px;border-radius:50%;}
.profile-my-services{border-top:1px solid rgba(0,0,0,0.08);padding-top:8px;}
.profile-my-services .grid{grid-template-columns:1fr;}
.public-profile-head{display:flex;align-items:center;gap:16px;margin-bottom:18px;}
.public-profile-head .avatar{width:64px;height:64px;font-size:20px;object-fit:cover;}
.public-profile-bio{color:var(--muted);margin-bottom:20px;white-space:pre-wrap;}

/* ============================================================
   ARQUITECTURA MULTIPÁGINA
   Estilos de las páginas separadas: login, registro, perfil,
   mensajes, publicar, servicio y panel de administración.
   ============================================================ */

.page{padding:48px 0 72px;min-height:60vh;}
.wrap.narrow{max-width:860px;}
.page-head{margin-bottom:26px;}
.page-head h1{font-size:30px;letter-spacing:-.4px;margin-bottom:6px;}
.page-sub{color:var(--muted);font-size:15px;}
.muted{color:var(--muted);font-size:14.5px;}

.panel{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:24px;box-shadow:0 1px 3px rgba(15,23,42,.04);margin-bottom:20px;}
.panel h2{font-size:19px;margin-bottom:14px;}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap;}
.panel-head h2{margin-bottom:0;}
.panel-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.stack{display:flex;flex-direction:column;gap:12px;}

.btn-sm{padding:7px 13px;font-size:13px;}
.btn-block{width:100%;justify-content:center;}
.btn-danger{background:#B84E1F;border-color:#B84E1F;color:#fff;}
.btn-danger:hover{background:#9c3f16;}
.back-link{display:inline-block;color:var(--muted);font-size:14px;margin-bottom:16px;text-decoration:none;}
.back-link:hover{color:var(--ink);}

.note-box{background:rgba(22,205,211,.07);border:1px solid rgba(22,205,211,.25);border-radius:10px;padding:12px 14px;line-height:1.55;}

/* --- Login y registro --- */
.auth-page{display:grid;place-items:center;padding:56px 20px 80px;min-height:70vh;}
.auth-card{width:100%;max-width:440px;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:18px;padding:32px;box-shadow:0 8px 30px rgba(15,23,42,.07);}
.auth-card h1{font-size:25px;margin-bottom:6px;}
.auth-card .sub{color:var(--muted);font-size:14.5px;margin-bottom:22px;}
.auth-alt{text-align:center;color:var(--muted);font-size:14px;margin-top:18px;}
.auth-alt a{color:var(--teal);font-weight:600;}
.btn-google{width:100%;justify-content:center;gap:10px;background:#fff;color:#3c4043;border:1px solid #dadce0;font-weight:600;}
.btn-google:hover{background:#f7f8f8;}
.divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted);font-size:13px;}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:rgba(15,23,42,.1);}

/* --- Perfil --- */
.profile-layout{display:grid;grid-template-columns:1.25fr .95fr;gap:20px;align-items:start;}
.profile-avatar-row{display:flex;align-items:center;gap:16px;margin-bottom:20px;}
.profile-avatar-row .avatar{background:var(--teal);color:#04241F;object-fit:cover;border-radius:50%;}
.mini-card{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid rgba(15,23,42,.08);border-radius:12px;padding:14px;flex-wrap:wrap;}
.mini-card h4{font-size:15px;margin:6px 0 2px;}
.mini-actions{display:flex;gap:8px;}

/* --- Detalle de servicio --- */
.service-detail h1{font-size:26px;margin:10px 0 16px;}
.provider-row{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid rgba(15,23,42,.08);border-radius:12px;margin-bottom:18px;text-decoration:none;color:inherit;}
.service-desc{line-height:1.7;margin-bottom:20px;}
.contact-box{border-top:1px solid rgba(15,23,42,.08);padding-top:20px;margin-top:20px;}
.contact-box h3{font-size:17px;margin-bottom:12px;}

/* --- Mensajería --- */
.chat-layout{display:grid;grid-template-columns:320px 1fr;gap:18px;align-items:start;}
.chat-list{padding:8px;max-height:70vh;overflow-y:auto;}
.chat-main{padding:0;display:flex;flex-direction:column;height:70vh;}
.chat-empty{display:grid;place-items:center;text-align:center;padding:40px 20px;gap:10px;flex:1;}

.conv-item{display:flex;align-items:center;gap:11px;width:100%;text-align:left;background:none;border:none;border-radius:12px;padding:11px;cursor:pointer;font:inherit;position:relative;}
.conv-item:hover{background:rgba(15,23,42,.04);}
.conv-item.active{background:rgba(22,205,211,.1);}
.conv-text{flex:1;min-width:0;}
.conv-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline;}
.conv-top strong{font-size:14.5px;}
.conv-time{font-size:11.5px;color:var(--muted);flex-shrink:0;}
.conv-sub{font-size:12px;color:var(--teal);margin:1px 0;}
.conv-last{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.chat-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid rgba(15,23,42,.08);}
.chat-head strong{font-size:15.5px;}
.chat-head-link{margin-left:auto;}
.chat-scroll{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px;}
.msg{display:flex;flex-direction:column;max-width:74%;}
.msg.mine{align-self:flex-end;align-items:flex-end;}
.msg.theirs{align-self:flex-start;align-items:flex-start;}
.msg-bubble{padding:10px 14px;border-radius:14px;font-size:14.5px;line-height:1.55;word-break:break-word;}
.msg.mine .msg-bubble{background:var(--teal);color:#04241F;border-bottom-right-radius:4px;}
.msg.theirs .msg-bubble{background:rgba(15,23,42,.06);border-bottom-left-radius:4px;}
.msg-time{font-size:11px;color:var(--muted);margin-top:3px;}
.chat-composer{display:flex;gap:10px;padding:14px 16px;border-top:1px solid rgba(15,23,42,.08);align-items:flex-end;}
.chat-composer textarea{flex:1;resize:none;max-height:120px;min-height:42px;padding:11px 13px;border:1px solid rgba(15,23,42,.14);border-radius:10px;font:inherit;font-size:14.5px;}

.nav-icon{position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;color:#fff;}
.nav-icon:hover{background:rgba(255,255,255,.1);}
.nav-icon svg{width:20px;height:20px;}
.badge{background:var(--brick);color:#fff;font-size:11px;font-weight:700;min-width:18px;height:18px;border-radius:9px;display:grid;place-items:center;padding:0 5px;}
.nav-icon .badge{position:absolute;top:2px;right:2px;}

/* --- Panel de administración --- */
.stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-bottom:22px;}
.stat-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:14px;padding:16px;text-align:center;}
.stat-value{display:block;font-size:26px;font-weight:700;color:var(--teal);}
.stat-label{font-size:12.5px;color:var(--muted);}
.search-input{padding:9px 13px;border:1px solid rgba(15,23,42,.14);border-radius:10px;font:inherit;font-size:14px;min-width:230px;}

.user-table{display:flex;flex-direction:column;}
.user-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:14px;align-items:center;padding:14px 4px;border-bottom:1px solid rgba(15,23,42,.07);}
.user-row:last-child{border-bottom:none;}
.user-info strong{font-size:14.5px;}
.user-info p{font-size:13px;margin:1px 0;}
.user-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:12.5px;}
.user-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;}
.role-tag{font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:20px;}
.role-admin{background:rgba(232,112,58,.15);color:#B84E1F;}
.role-provider{background:rgba(22,205,211,.16);color:#0B7C80;}
.role-company{background:rgba(62,124,196,.14);color:#255A94;}

.navlinks a.active{color:var(--teal);}

@media(max-width:900px){
  .profile-layout{grid-template-columns:1fr;}
  .chat-layout{grid-template-columns:1fr;}
  .chat-list{max-height:none;}
  .chat-main{height:auto;min-height:420px;}
  .user-row{grid-template-columns:auto 1fr;}
  .user-meta{grid-column:2;align-items:flex-start;flex-direction:row;gap:10px;}
  .user-actions{grid-column:1/-1;justify-content:flex-start;}
}

/* btn-ghost nació para el encabezado oscuro (texto blanco). En las páginas
   nuevas se usa sobre fondo claro, donde quedaba invisible. Aquí se le da
   el tratamiento oscuro dentro de cualquier contenedor claro. */
.panel .btn-ghost,
.auth-card .btn-ghost,
.page .btn-ghost,
.mini-actions .btn-ghost,
.panel-actions .btn-ghost,
.user-actions .btn-ghost,
.chat-head .btn-ghost{color:var(--ink);border-color:var(--line);background:transparent;}
.panel .btn-ghost:hover,
.auth-card .btn-ghost:hover,
.page .btn-ghost:hover,
.mini-actions .btn-ghost:hover,
.panel-actions .btn-ghost:hover,
.user-actions .btn-ghost:hover,
.chat-head .btn-ghost:hover{border-color:var(--teal);color:var(--teal);}

/* El encabezado siempre es oscuro: ahí manda el estilo claro original. */
header .btn-ghost{color:#fff;border-color:rgba(255,255,255,0.35);}
header .btn-ghost:hover{border-color:var(--teal);color:var(--teal);}

.service-detail .fact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border-radius:12px;overflow:hidden;}
.service-detail .fact{background:#fafafa;padding:14px 16px;}
@media(max-width:600px){ .service-detail .fact-grid{grid-template-columns:1fr;} }

/* ============================================================
   CUENTA, LEGAL, MODERACIÓN Y VALORACIONES
   ============================================================ */

/* --- Aviso de correo sin verificar (bajo el encabezado) --- */
.notice-bar{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;background:var(--gold-light);color:#5C3D0A;border-bottom:1px solid #EBCB93;padding:10px 20px;font-size:14px;text-align:center;}
.notice-bar .btn{background:#5C3D0A;color:#fff;border:none;padding:6px 14px;font-size:13px;border-radius:8px;}
.notice-bar .btn:hover{background:#3A2504;}

/* --- Ventana flotante reutilizable (askModal) --- */
.vm-overlay{position:fixed;inset:0;background:rgba(15,23,42,.55);display:grid;place-items:center;padding:20px;z-index:400;}
.vm{background:#fff;border-radius:16px;padding:26px;width:100%;max-width:460px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 50px rgba(0,0,0,.3);}
.vm h3{font-size:19px;margin-bottom:8px;}
.vm-text{color:var(--muted);font-size:14.5px;margin-bottom:16px;line-height:1.55;}
.vm-text a,.check a{color:var(--teal-dark);font-weight:600;text-decoration:underline;}
.vm-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap;}
.vm-actions .btn{padding:10px 18px;font-size:14px;border-radius:9px;}
.vm .btn-primary{background:var(--navy);color:#fff;}
.vm .btn-primary:hover{background:var(--teal-dark);}
.vm .btn-ghost{color:var(--ink);border-color:var(--line);}
.vm .btn-danger{background:#B84E1F;color:#fff;}

.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.5;margin-bottom:14px;cursor:pointer;}
.check input{margin-top:4px;width:17px;height:17px;flex-shrink:0;accent-color:var(--teal-dark);}
.field select{width:100%;padding:11px 13px;border:1px solid rgba(15,23,42,.14);border-radius:10px;font:inherit;font-size:14.5px;background:#fff;}

/* --- Páginas legales --- */
.legal-doc{padding:34px 38px;}
.legal-doc h1{font-size:28px;margin-bottom:4px;}
.legal-doc .updated{color:var(--muted);font-size:13.5px;margin-bottom:26px;}
.legal-doc h2{font-size:18px;margin:28px 0 8px;}
.legal-doc p,.legal-doc li{font-size:15px;line-height:1.7;color:#2a2d33;margin-bottom:10px;}
.legal-doc ul{padding-left:22px;margin-bottom:10px;}
.legal-doc a{color:var(--teal-dark);text-decoration:underline;}
.legal-doc mark{background:#FFF1B8;padding:0 4px;border-radius:3px;}
.legal-links{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:18px;font-size:14px;}
@media(max-width:600px){.legal-doc{padding:22px 18px;}}

/* --- Pie de página: enlaces legales --- */
.foot-legal{display:flex;gap:16px;flex-wrap:wrap;}
.foot-legal a{color:#A9A9B0;}
.foot-legal a:hover{color:var(--teal);}

/* --- Estado de un servicio (oculto por moderación) --- */
.status-banner{background:var(--brick-light);border:1px solid #F0B999;color:#7E331B;border-radius:12px;padding:14px 16px;margin-bottom:18px;font-size:14.5px;line-height:1.55;}
.status-pill{display:inline-block;font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:20px;background:var(--brick-light);color:#7E331B;margin-left:6px;}
.status-pill.ok{background:rgba(22,205,211,.16);color:#0B7C80;}

/* --- Valoraciones --- */
.rating-summary{display:grid;grid-template-columns:auto 1fr;gap:26px;align-items:center;margin-bottom:20px;}
.rating-big{text-align:center;}
.rating-big .num{font-family:'Poppins',sans-serif;font-size:44px;font-weight:700;line-height:1;}
.rating-big .stars{justify-content:center;margin-top:6px;}
.rating-bars{display:flex;flex-direction:column;gap:5px;font-size:12.5px;color:var(--muted);}
.rating-bar{display:grid;grid-template-columns:34px 1fr 28px;gap:8px;align-items:center;}
.rating-bar .track{height:7px;border-radius:4px;background:var(--paper-dim);overflow:hidden;}
.rating-bar .fill{display:block;height:100%;background:var(--gold);}
.review{border-top:1px solid rgba(15,23,42,.08);padding:16px 0;}
.review-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px;}
.review-head strong{font-size:14.5px;}
.review .when{color:var(--muted);font-size:12.5px;}
.review p{font-size:14.5px;line-height:1.6;white-space:pre-wrap;word-break:break-word;}
.badge-verified{font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:20px;background:rgba(22,205,211,.16);color:#0B7C80;}
.review-actions{margin-top:8px;display:flex;gap:10px;}
.link-btn{color:var(--muted);font-size:13px;text-decoration:underline;}
.link-btn:hover{color:var(--ink);}
.star-input{display:flex;gap:4px;margin-bottom:12px;}
.star-input button{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;}
.star-input button:hover{background:var(--paper-dim);}
.star-input svg{width:26px;height:26px;fill:none;stroke:#C9C6DA;stroke-width:1.5;}
.star-input button.on svg{fill:var(--gold);stroke:var(--gold);}
.muted-xs{color:var(--muted);font-size:12.5px;}
@media(max-width:600px){.rating-summary{grid-template-columns:1fr;}}

/* --- Panel de administración: reportes y registro --- */
.report-card{border:1px solid rgba(15,23,42,.1);border-radius:12px;padding:16px;margin-bottom:12px;}
.report-card h4{font-size:15.5px;margin-bottom:2px;}
.report-card .meta{font-size:13px;color:var(--muted);margin-bottom:8px;}
.report-card .detail{background:var(--paper-dim);border-radius:8px;padding:10px 12px;font-size:14px;margin:8px 0 12px;white-space:pre-wrap;word-break:break-word;}
.report-actions{display:flex;gap:8px;flex-wrap:wrap;}
.tab-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px;}
.tab-row button{padding:6px 14px;border-radius:20px;border:1px solid var(--line);font-size:13px;font-weight:600;color:var(--muted);background:#fff;}
.tab-row button.active{background:var(--navy);color:#fff;border-color:var(--navy);}
.log-line{font-size:13px;padding:8px 0;border-bottom:1px solid rgba(15,23,42,.07);display:flex;gap:12px;flex-wrap:wrap;}
.log-line .when{color:var(--muted);min-width:130px;}
.pill-red{background:rgba(232,112,58,.15);color:#B84E1F;}
.btn-sm.btn-danger{color:#fff;}
.form-ok{background:var(--teal-light);color:#0B5E62;font-size:14px;padding:12px 14px;border-radius:8px;margin-bottom:16px;line-height:1.5;}

/* ============================================================
   CURSOS
   ============================================================ */
.clamp3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.course-tag{font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:20px;background:var(--paper-dim);color:var(--muted);margin-left:6px;}
.course-layout{display:grid;grid-template-columns:320px 1fr;gap:22px;align-items:start;}
.lesson-list{display:flex;flex-direction:column;gap:6px;}
.lesson-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:11px 12px;border-radius:10px;border:1px solid var(--line);background:#fff;font-size:14px;line-height:1.35;}
.lesson-item:hover{border-color:var(--teal);}
.lesson-item.active{background:var(--navy);color:#fff;border-color:var(--navy);}
.lesson-item .n{font-family:'IBM Plex Mono',monospace;font-size:12px;opacity:.65;min-width:20px;}
.lesson-item .ico{margin-left:auto;font-size:13px;opacity:.7;flex-shrink:0;}
.lesson-item.locked{cursor:default;color:var(--muted);background:var(--paper-dim);}
.lesson-item.locked:hover{border-color:var(--line);}
.lesson-view h2{font-size:22px;margin-bottom:14px;}
.video-frame{width:100%;aspect-ratio:16/9;border:0;border-radius:12px;background:#000;}
.lesson-text{white-space:pre-wrap;word-break:break-word;line-height:1.75;font-size:15.5px;}
.lesson-nav{display:flex;justify-content:space-between;gap:10px;margin-top:22px;flex-wrap:wrap;}
.buy-box{border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff;position:sticky;top:90px;}
.buy-box .big-price{font-family:'Poppins',sans-serif;font-size:30px;font-weight:700;margin:4px 0 12px;}
.buy-box ul{list-style:none;margin:14px 0 0;padding:0;font-size:14px;color:var(--muted);display:flex;flex-direction:column;gap:8px;}
.buy-box .btn{width:100%;justify-content:center;}
.lesson-row{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;margin-bottom:8px;background:#fff;}
.lesson-row .t{flex:1;min-width:0;font-size:14.5px;}
.lesson-row .t small{display:block;color:var(--muted);font-size:12px;}
.lesson-row .acts{display:flex;gap:6px;flex-shrink:0;}
.lesson-row .acts button{padding:5px 9px;border-radius:7px;border:1px solid var(--line);background:#fff;font-size:12.5px;}
.lesson-row .acts button:disabled{opacity:.35;cursor:default;}
.field-hint{font-size:12.5px;color:var(--muted);margin-top:5px;}
/* Página de venta: contenido + caja de compra */
.course-layout.sales{grid-template-columns:minmax(0,1fr) 340px;}
.course-layout > *{min-width:0;}
@media(max-width:860px){.course-layout,.course-layout.sales{grid-template-columns:1fr;}.buy-box{position:static;}}
