/* RtoAbogados - conversion-first static site (demo) */
:root{
  /* Darker, more institucional (menos "SaaS") */
  --bg:#050812;
  --ink:#eaf0ff;
  --muted:#b9c3de;
  --line:rgba(255,255,255,.12);
  --card:rgba(255,255,255,.05);
  --card2:rgba(255,255,255,.035);
  /* Oro sobrio + azul petróleo (legal premium) */
  --brand:#D6B15A;
  --brand2:#F2D27A;
  --accent:#2AA6A0;
  --ok:#8affc1;
  --shadow: 0 18px 60px rgba(0,0,0,.38);
  --r:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(214,177,90,.16), transparent 55%),
    radial-gradient(900px 700px at 90% 10%, rgba(42,166,160,.10), transparent 60%),
    linear-gradient(180deg, #040611, var(--bg) 35%, #040611 110%);
}
a{color:inherit}
.container{width:min(1120px, 92vw); margin:0 auto}
.site-header{
  position:sticky; top:0; z-index:80;
  background:rgba(5,7,18,.70);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:12px}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; font-weight:900; letter-spacing:.2px}
.brand-mark{
  width:34px; height:34px; display:grid; place-items:center;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(214,177,90,.95), rgba(42,166,160,.85));
  color:#061022;
}
.brand-text{font-size:16px}
.nav{display:flex; align-items:center; gap:16px; flex-wrap:wrap}
.nav a{opacity:.9; text-decoration:none; font-weight:700; font-size:13.5px}
.nav a:hover{opacity:1}
.nav-toggle{display:none; background:transparent; border:0; padding:8px; cursor:pointer}
.nav-toggle span{display:block; width:22px; height:2px; margin:5px 0; background:var(--ink); opacity:.85}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(214,177,90,.92), rgba(242,210,122,.88));
  color:#0a0d16;
  box-shadow: 0 16px 44px rgba(0,0,0,.38);
  text-decoration:none;
  font-weight:900;
  letter-spacing:.2px;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover{transform: translateY(-1px); filter: brightness(1.02)}
.btn:active{transform: translateY(0px); filter: brightness(.98)}
.btn:focus-visible{outline: none; box-shadow: 0 0 0 3px rgba(214,177,90,.25), 0 18px 60px rgba(0,0,0,.45)}
.btn:focus-visible{outline:2px solid rgba(214,177,90,.55); outline-offset:2px}
.btn:hover{transform:translateY(-1px); border-color: rgba(255,255,255,.26)}
.btn:active{transform:translateY(0)}
.btn-outline{
  background: rgba(255,255,255,.03);
  box-shadow:none;
  border:1px solid rgba(214,177,90,.35);
  color: var(--ink);
}
.btn-outline:hover{background: rgba(214,177,90,.10); border-color: rgba(214,177,90,.55)}
.btn-ghost{background:transparent; border:1px solid rgba(255,255,255,.10); box-shadow:none; color: var(--ink)}
.btn-ghost:hover{background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18)}
.btn-sm{padding:10px 12px; border-radius:12px; font-size:13px}
.btn-lg{padding:14px 18px; border-radius:16px}
.btn-block{width:100%}
.hero{position:relative; padding:56px 0 28px}
.hero-grid{display:grid; grid-template-columns: 1.1fr .9fr; gap:24px; align-items:start}
.pill{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:var(--muted);
  font-weight:800; font-size:12.5px;
}
.pill .dot{width:8px; height:8px; border-radius:999px; background:linear-gradient(135deg, var(--brand), var(--brand2))}
h1{margin:14px 0 12px; font-size:44px; line-height:1.05; letter-spacing:-.8px}
.grad{
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.lead{margin:0 0 16px; color:var(--muted); font-size:16px; line-height:1.65}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin:16px 0 14px}
.kpis{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:14px}
.kpi{border:1px solid var(--line); border-radius:16px; padding:12px 14px; background:rgba(255,255,255,.04)}
.kpi strong{display:block; font-size:14px}
.kpi span{display:block; color:var(--muted); font-size:12.5px; margin-top:2px}
.small{color:var(--muted); font-size:12.5px; line-height:1.6}
.card{
  border:1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border-radius: var(--r);
  padding:18px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  will-change: transform;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(214,177,90,.26);
  box-shadow: 0 22px 70px rgba(0,0,0,.46);
}
.card h2{margin:0 0 6px; font-size:18px}
.card p{margin:0; color:var(--muted); font-size:13.5px; line-height:1.55}
.check{list-style:none; padding:0; margin:14px 0 14px}
.check li{padding:10px 0; border-bottom:1px solid var(--line); color:var(--muted); line-height:1.5}
.check li:last-child{border-bottom:0}
.badges{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.badge{padding:7px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.16); background:rgba(0,0,0,.12); color:var(--muted); font-weight:900; font-size:12px}
.section{padding:54px 0}
.section.alt{
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(42,166,160,.10), transparent 60%),
    radial-gradient(900px 520px at 85% 40%, rgba(214,177,90,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 58%);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:18px}
.section-head h2{margin:0; font-size:28px; letter-spacing:-.35px}
.section-head p{margin:0; color:var(--muted); max-width:64ch; line-height:1.65}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
.grid-2{display:grid; grid-template-columns:repeat(2,1fr); gap:14px}
.tile{
  border:1px solid var(--line); border-radius: var(--r);
  padding:18px; background:rgba(255,255,255,.04);
}
.tile h3{margin:0 0 8px}
.tile p{margin:0; color:var(--muted); line-height:1.65}
.tile ul{margin:10px 0 0; padding-left:18px; color:var(--muted)}
.tile li{margin:6px 0}
.callout{
  margin-top:16px;
  display:flex; gap:14px; align-items:center; justify-content:space-between; flex-wrap:wrap;
  border:1px solid rgba(255,255,255,.16);
  border-radius: var(--r);
  padding:18px;
  background: linear-gradient(135deg, rgba(214,177,90,.11), rgba(42,166,160,.09));
}
.callout h3{margin:0 0 6px}
.callout p{margin:0; color:var(--muted); line-height:1.6}
.steps{list-style:none; padding:0; margin:0; display:grid; gap:12px}
.steps li{
  display:grid; grid-template-columns:36px 1fr; gap:12px; align-items:start;
  border:1px solid var(--line); border-radius: var(--r);
  padding:16px; background:rgba(255,255,255,.04);
}
.step-num{
  width:32px; height:32px; border-radius:12px;
  display:grid; place-items:center; font-weight:900;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
}
.steps h3{margin:0 0 6px}
.steps p{margin:0; color:var(--muted); line-height:1.65}
.faq{display:grid; gap:12px}
.faq details{border:1px solid var(--line); border-radius: var(--r); padding:14px 16px; background:rgba(255,255,255,.04)}
.faq summary{cursor:pointer; font-weight:900}
.faq .body{margin-top:10px; color:var(--muted); line-height:1.75}
.contact{display:grid; grid-template-columns:.85fr 1.15fr; gap:14px}
.line{display:flex; justify-content:space-between; gap:14px; border-bottom:1px solid var(--line); padding:10px 0; margin:0}
.line:last-of-type{border-bottom:0}
.line span{color:var(--muted); font-weight:900}
.form{display:grid; gap:12px; margin-top:12px}
.form label{display:grid; gap:8px; font-weight:900}
input, select, textarea{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.18);
  color:var(--ink);
  outline:none;
}
.checkbox{display:flex; gap:10px; align-items:flex-start; font-weight:800}
.checkbox input{width:18px; height:18px; margin-top:2px}
.fine{font-size:12.5px; color:var(--muted); line-height:1.6}
.site-footer{border-top:1px solid var(--line); padding:22px 0; background:rgba(0,0,0,.18)}
.footer-inner{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap}
.footer-links{display:flex; gap:14px; flex-wrap:wrap}
.footer-links a{color:var(--muted); text-decoration:none; font-weight:900; font-size:13px}
.footer-links a:hover{color:var(--ink)}
.stickybar{
  position:fixed; left:0; right:0; bottom:0; z-index:90;
  border-top:1px solid var(--line);
  background:rgba(5,7,18,.78);
  backdrop-filter: blur(14px);
  padding:10px 0;
  display:none;
}
.stickybar .inner{display:flex; gap:10px}
.page{padding:44px 0 54px}
.page h1{margin:0 0 10px; font-size:34px}
.page h2{margin:22px 0 10px}
.page p, .page li{color:var(--muted); line-height:1.85}
.back{margin-top:18px}
@media (max-width: 920px){
  h1{font-size:38px}
  .hero-grid{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  .section-head{flex-direction:column; align-items:flex-start}
  .nav{display:none; position:absolute; right:4vw; top:64px; flex-direction:column; align-items:stretch;
       background:rgba(5,7,18,.92); border:1px solid var(--line); border-radius:16px; padding:12px; width:min(320px, 92vw)}
  .nav a{padding:10px; border-radius:12px}
  .nav a:hover{background:rgba(255,255,255,.06)}
  .nav-toggle{display:block}
  .nav.open{display:flex}
  .stickybar{display:block}
}


/* Logo */
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
.brand.with-logo .brand-mark {
  display: none;
}

/* Premium hero image */
.hero{overflow:hidden}
.hero::before{
  content:"";
  position:absolute;
  inset:-60px -80px -80px -80px;
  background-image:url("brand-hero.png");
  background-size:cover;
  background-position:center;
  opacity:.22;
  pointer-events:none;
  filter:saturate(1.05) contrast(1.05);
}
.hero > .container{position:relative; z-index:1}

/* Service icons */
.service-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.icon{
  width:36px;
  height:36px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.16);
  border:1px solid rgba(255,255,255,.12);
}
.icon img{width:20px; height:20px; display:block}
.tile h3{margin:0}

/* Featured tile */
.tile.featured{
  border-color: rgba(214,177,90,.42);
  background: linear-gradient(180deg, rgba(214,177,90,.10), rgba(255,255,255,.03));
}
.ribbon{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(214,177,90,.38);
  background:rgba(0,0,0,.14);
  color:rgba(242,210,122,.95);
  font-weight:900;
  font-size:12px;
}

/* LSO Simulator (scoped) */
.sim-card{
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
}
.sim-title{margin:0 0 10px; font-size:18px}
.sim-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:12px}
.sim-grid .full{grid-column:1/-1}
.sim-card label{display:grid; gap:8px; font-weight:900; font-size:13px}
.sim-card input, .sim-card select{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.18);
  color:var(--ink);
  outline:none;
}
.sim-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.sim-actions .btn{flex:1}
#resultado{margin-top:10px; text-align:left}
#resultado.exito{background:rgba(214,177,90,.10); border:1px solid rgba(214,177,90,.35); color: var(--ink); padding:12px; border-radius:14px}
#resultado.error{background:rgba(255,120,120,.12); border:1px solid rgba(255,120,120,.35); color: var(--ink); padding:12px; border-radius:14px}
#linkReserva{display:none; margin-top:10px}
@media (max-width: 920px){
  .sim-grid{grid-template-columns:1fr}
}

.fab-menu{
  position:absolute;
  right:70px;
  bottom:0;
  display:none;
  flex-direction:column;
  gap:8px;
}
.fab.calendar:hover .fab-menu{display:flex}
.fab-menu a{
  background:#d6b15a;
  color:#000;
  padding:8px 12px;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
  white-space:nowrap;
  box-shadow:0 10px 30px rgba(0,0,0,.3);
}


.wa-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg,#2be46f,#1bbd5a);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
  transform: translateZ(0);
  animation: waFloat 3.6s ease-in-out infinite;
}
.wa-fab::before{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius: 26px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(255,255,255,0) 55%);
  opacity:.55;
  pointer-events:none;
}
.wa-fab:hover{
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.02);
}
.wa-fab:active{
  transform: translateY(0) scale(0.99);
}
.wa-fab img{width:30px;height:30px; display:block; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));}
@keyframes waFloat{
  0%,100%{ transform: translateY(0) }
  50%{ transform: translateY(-6px) }
}
/* subtle pulse ring */
.wa-fab::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius: 28px;
  border: 1px solid rgba(43,228,111,.55);
  opacity:.0;
  animation: waPulse 2.8s ease-out infinite;
  pointer-events:none;
}
@keyframes waPulse{
  0%{ transform: scale(.92); opacity:.0 }
  25%{ opacity:.55 }
  100%{ transform: scale(1.25); opacity:0 }
}
@media (max-width: 920px){
  .wa-fab{bottom: 78px}
}


/* Footer locations + trust */
.sedes-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:14px;
}
.sede{
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:rgba(0,0,0,.18);
}
.sede h3{margin:0 0 8px; font-size:16px}
.sede p{margin:0; color:var(--muted); line-height:1.7}

.trust-row{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:14px;
}
.trust-item{
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  background:rgba(255,255,255,.04);
}
.trust-item strong{display:block; font-weight:900}
.trust-item span{display:block; color:var(--muted); margin-top:4px; font-size:13px; line-height:1.5}

@media (max-width: 920px){
  .sedes-grid{grid-template-columns:1fr}
  .trust-row{grid-template-columns:1fr}
}


/* ===== Select contrast fix (accessibility & readability) ===== */
select {
  background-color: #0f141b;
  color: #f2f4f8;
  border: 1px solid rgba(255,255,255,.18);
}

select option {
  background-color: #0f141b;
  color: #f2f4f8;
}

select option:checked {
  background-color: #1f3b4d; /* azul petróleo */
  color: #ffffff;
}

select option:hover {
  background-color: #1a2533;
}


a{transition: color .16s ease, opacity .16s ease}
a:hover{opacity:.96}



/* === ART SYSTEM v1 (RTOAbogados) === */
:root{
  --brand-accent: var(--gold);
  --bg-hero-img: url('img/office-hero.jpg');
  --card-border: rgba(255,255,255,.10);
  --card-border-hover: rgba(255,255,255,.18);
}

/* Hero: more editorial + real office texture */
.hero{
  position: relative;
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--bg-hero-img);
  background-size: cover;
  background-position: center;
  opacity: .55;
  transform: scale(1.03);
  filter: saturate(.95) contrast(1.02);
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(1200px 600px at 15% 20%, rgba(255,255,255,.06), transparent 55%),
              radial-gradient(900px 500px at 80% 40%, rgba(199,168,110,.10), transparent 60%),
              linear-gradient(180deg, rgba(6,9,17,.80), rgba(6,9,17,.92));
}
.hero > *{ position: relative; z-index: 1; }

/* "Despacho real" media card */
.media-card{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: stretch;
}
.media-card .media{
  border-radius: calc(var(--r) + 8px);
  min-height: 320px;
  background: #0a0f1f;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.media-card .media img{
  width:100%; height:100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(1.02);
  transform: scale(1.01);
}
.media-card .copy{
  border-radius: calc(var(--r) + 8px);
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,.03);
  padding: 18px;
}
.media-card .kpi{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.media-card .kpi .pill{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}

/* Icon system: ensure consistency */
.icon, .service-head .icon{
  color: rgba(199,168,110,.95);
}
.icon svg, .service-head .icon svg{
  width: 22px; height: 22px;
  display:block;
}
.icon svg *{
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Cards: subtle editorial hover */
.card, .tile{
  border: 1px solid var(--card-border);
}
.card:hover, .tile:hover{
  border-color: var(--card-border-hover);
}

/* Mobile */
@media (max-width: 880px){
  .media-card{ grid-template-columns: 1fr; }
  .media-card .media{ min-height: 260px; }
}


/* Team */
.team-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 22px;
}
.team img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius: 14px;
  margin-bottom:12px;
}
.team .role{
  color: rgba(255,255,255,.75);
  font-size:14px;
  margin-bottom:6px;
}


/* Team details / functions */
.team .meta{
  color: rgba(255,255,255,.68);
  font-size: 13px;
  margin: 6px 0 10px;
}
.details{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  padding: 10px 12px;
}
.details summary{
  cursor: pointer;
  list-style: none;
  font-weight: 650;
}
.details summary::-webkit-details-marker{ display:none; }
.details summary:after{
  content: "▾";
  float: right;
  opacity: .7;
  transform: translateY(-1px);
}
.details[open] summary:after{ content: "▴"; }
.bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.82);
}
.bullets li{ margin: 6px 0; }


/* Section head (home) */
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.section-head .lead{ max-width: 60ch; }
@media (max-width: 880px){
  .section-head{ flex-direction: column; align-items:flex-start; }
}

/* Compact bullets for home cards */
.bullets.compact{
  margin-top: 10px;
  padding-left: 18px;
}
.bullets.compact li{ margin: 6px 0; }

/* Team home spacing */
.team-home .team{ padding: 18px; }
.team-home .team img{ border-radius: 16px; }

/* Team gallery equal level */
.team-gallery{
  align-items: stretch;
}
.team-gallery .team{
  display:flex;
  flex-direction:column;
}


/* Home team accordion */
.team-accordion .team{
  padding: 18px;
}
.team-accordion .details{
  margin-top: 10px;
}
.team-accordion .details summary{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.team-accordion .details[open] summary{
  border-color: rgba(199,168,110,.28);
  background: rgba(199,168,110,.06);
}
