:root{
  --bg:#070b12;
  --bg2:#101827;
  --bg3:#05070d;
  --gold:#c9a45c;
  --gold2:#e2c982;
  --text:#f5f1e8;
  --muted:#b8bdc7;
  --card:rgba(255,255,255,.06);
  --card-strong:rgba(255,255,255,.085);
  --border:rgba(255,255,255,.12);
  --border-gold:rgba(201,164,92,.42);
  --shadow:0 30px 90px rgba(0,0,0,.38);
  --shadow-soft:0 18px 60px rgba(0,0,0,.22);
  --radius-xl:32px;
  --radius-lg:28px;
  --radius-md:20px;
}

/* RESET BASE */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(201,164,92,.18), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(226,201,130,.08), transparent 28%),
    linear-gradient(135deg, #05070d 0%, #0a101c 50%, #111827 100%);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
}

p{
  margin-top:0;
}

::selection{
  background:rgba(201,164,92,.45);
  color:#fff;
}

.container{
  width:min(1180px, 92%);
  margin:auto;
}

/* HEADER */

.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  background:rgba(7,11,18,.86);
  border-bottom:1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:78px;
  gap:22px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.02em;
  min-width:max-content;
}

.brand-mark{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg, var(--gold), var(--gold2));
  color:#09111d;
  font-weight:950;
  box-shadow:0 16px 40px rgba(201,164,92,.22);
}

.brand-text{
  color:var(--text);
}

.menu{
  display:flex;
  gap:24px;
  align-items:center;
}

.menu a{
  color:var(--muted);
  text-decoration:none;
  font-weight:650;
  font-size:.95rem;
  transition:.2s ease;
}

.menu a:hover{
  color:var(--gold2);
}

/* BOTONES */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 20px;
  border-radius:999px;
  text-decoration:none;
  font-weight:850;
  line-height:1;
  transition:.2s ease;
  border:1px solid transparent;
  cursor:pointer;
}

.btn-small{
  padding:10px 16px;
  background:rgba(255,255,255,.07);
  border-color:var(--border);
  color:var(--text);
}

.btn-primary{
  background:linear-gradient(135deg, var(--gold), var(--gold2));
  color:#09111d;
  box-shadow:0 18px 45px rgba(201,164,92,.22);
}

.btn-outline{
  border-color:var(--border);
  color:var(--text);
  background:rgba(255,255,255,.04);
}

.btn:hover{
  transform:translateY(-2px);
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible{
  outline:3px solid rgba(226,201,130,.45);
  outline-offset:4px;
}

/* HERO */

.hero{
  padding:112px 0 86px;
}

.page-hero{
  padding-bottom:70px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:46px;
  align-items:center;
}

.eyebrow{
  display:inline-flex;
  color:var(--gold2);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.78rem;
  font-weight:900;
  margin-bottom:18px;
}

.hero h1{
  font-size:clamp(2.45rem, 5vw, 5.1rem);
  line-height:1.02;
  margin:0 0 22px;
  letter-spacing:-.055em;
}

.hero p{
  color:var(--muted);
  font-size:1.12rem;
  max-width:700px;
}

.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:30px;
}

.hero-card{
  border:1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.035)),
    radial-gradient(circle at top right, rgba(201,164,92,.16), transparent 40%);
  border-radius:var(--radius-xl);
  padding:34px;
  box-shadow:var(--shadow);
}

.hero-card h2{
  margin-top:0;
  color:var(--gold2);
  line-height:1.15;
}

.hero-card p,
.hero-card li{
  color:var(--muted);
}

.hero-card ul{
  padding-left:20px;
  margin-bottom:0;
}

/* SECCIONES GENERALES */

.section{
  padding:82px 0;
}

.alt{
  background:rgba(255,255,255,.025);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.section-title{
  font-size:clamp(2rem, 3.4vw, 3.25rem);
  line-height:1.05;
  margin:0 0 14px;
  letter-spacing:-.035em;
}

.section-lead{
  color:var(--muted);
  max-width:760px;
}

/* CARDS HOME */

.practice-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
  margin-top:34px;
}

.practice-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:26px;
  padding:26px;
  min-height:220px;
  transition:.2s ease;
}

.practice-card:hover{
  transform:translateY(-5px);
  border-color:rgba(201,164,92,.55);
  background:rgba(255,255,255,.08);
}

.practice-card h3{
  margin-top:0;
  color:var(--text);
}

.practice-card p{
  color:var(--muted);
}

/* FAQ */

.faq{
  margin-top:30px;
}

details{
  background:rgba(255,255,255,.055);
  border:1px solid var(--border);
  border-radius:20px;
  padding:20px 24px;
  margin-bottom:14px;
}

summary{
  cursor:pointer;
  font-weight:850;
  color:var(--text);
}

details p{
  color:var(--muted);
  margin:14px 0 0;
}

/* CTA */

.cta-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:34px;
  border:1px solid rgba(201,164,92,.38);
  border-radius:var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(201,164,92,.14), rgba(255,255,255,.04));
  box-shadow:var(--shadow);
}

.cta-box h2{
  margin:0 0 10px;
  font-size:clamp(1.8rem, 3vw, 3rem);
  line-height:1.08;
}

.cta-box p{
  color:var(--muted);
  margin:0;
}

/* FORMULARIO CONTACTO */

.contact-form{
  display:grid;
  gap:14px;
  margin-top:30px;
  padding:30px;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  background:rgba(255,255,255,.055);
  box-shadow:var(--shadow);
}

.contact-form label{
  color:var(--text);
  font-weight:800;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.08);
  color:var(--text);
  font:inherit;
  outline:none;
  transition:.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:rgba(245,241,232,.55);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color:rgba(201,164,92,.75);
  box-shadow:0 0 0 4px rgba(201,164,92,.12);
}

.contact-form textarea{
  resize:vertical;
  min-height:170px;
}

.contact-form select option{
  color:#07111f;
}

/* SERVICIOS */

.service-list{
  display:grid;
  gap:24px;
  margin-top:36px;
}

.service-panel{
  display:grid;
  grid-template-columns:.95fr 1fr;
  gap:30px;
  align-items:start;
  padding:30px;
  border:1px solid var(--border);
  border-radius:30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.035)),
    radial-gradient(circle at top left, rgba(201,164,92,.12), transparent 35%);
  box-shadow:var(--shadow-soft);
}

.service-panel.featured-service,
.featured-service{
  border-color:var(--border-gold);
  background:
    linear-gradient(135deg, rgba(201,164,92,.14), rgba(255,255,255,.045)),
    radial-gradient(circle at top left, rgba(201,164,92,.18), transparent 38%);
}

.service-panel h3{
  margin:8px 0 12px;
  font-size:1.65rem;
  line-height:1.1;
}

.service-panel p{
  color:var(--muted);
  margin-bottom:0;
}

.service-panel ul{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}

.service-panel li{
  position:relative;
  padding-left:28px;
  color:var(--muted);
}

.service-panel li::before{
  content:"";
  position:absolute;
  left:0;
  top:.65em;
  width:9px;
  height:9px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow:0 0 0 5px rgba(201,164,92,.12);
}

.service-number{
  display:inline-flex;
  width:46px;
  height:46px;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:rgba(201,164,92,.12);
  border:1px solid rgba(201,164,92,.32);
  color:var(--gold2);
  font-weight:950;
}

/* PROCESO */

.process-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
  margin-top:34px;
}

.process-card{
  padding:24px;
  border:1px solid var(--border);
  border-radius:24px;
  background:rgba(255,255,255,.055);
}

.process-card span{
  display:inline-flex;
  width:38px;
  height:38px;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:linear-gradient(135deg, var(--gold), var(--gold2));
  color:#09111d;
  font-weight:950;
  margin-bottom:14px;
}

.process-card h3{
  margin:0 0 10px;
}

.process-card p{
  color:var(--muted);
  margin:0;
}

/* HISTORIA / TIMELINE */

.timeline{
  display:grid;
  gap:22px;
  margin-top:38px;
  position:relative;
}

.timeline-item{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:24px;
  align-items:start;
  padding:28px;
  border:1px solid var(--border);
  border-radius:28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.035)),
    radial-gradient(circle at top left, rgba(201,164,92,.11), transparent 35%);
  box-shadow:var(--shadow-soft);
}

.timeline-year{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:70px;
  border-radius:22px;
  background:linear-gradient(135deg, var(--gold), var(--gold2));
  color:#09111d;
  font-weight:950;
  font-size:1.35rem;
  box-shadow:0 16px 45px rgba(201,164,92,.18);
}

.timeline-content h3{
  margin:0 0 10px;
  font-size:1.45rem;
  line-height:1.15;
}

.timeline-content p{
  color:var(--muted);
  margin:0;
}

/* BLOQUES DE TEXTO */

.split-section{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:42px;
  align-items:start;
}

.rich-text{
  padding:30px;
  border:1px solid var(--border);
  border-radius:28px;
  background:rgba(255,255,255,.055);
}

.rich-text p{
  color:var(--muted);
  margin-top:0;
}

.rich-text p:last-child{
  margin-bottom:0;
}

/* ESPECIALIDAD PENAL */

.penal-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
  margin-top:34px;
}

.penal-card{
  padding:24px;
  border:1px solid var(--border);
  border-radius:24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  box-shadow:0 18px 55px rgba(0,0,0,.18);
}

.penal-card span{
  display:inline-flex;
  width:38px;
  height:38px;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:linear-gradient(135deg, var(--gold), var(--gold2));
  color:#09111d;
  font-weight:950;
  margin-bottom:14px;
}

.penal-card h3{
  margin:0 0 10px;
  line-height:1.15;
}

.penal-card p{
  margin:0;
  color:var(--muted);
}

/* WHATSAPP */

.whatsapp-float{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:999;
  background:#25D366;
  color:#071012;
  padding:14px 18px;
  border-radius:999px;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
  transition:.2s ease;
}

.whatsapp-float:hover{
  transform:translateY(-3px);
}

/* FOOTER */

.footer{
  border-top:1px solid var(--border);
  padding:42px 0;
  color:var(--muted);
  background:#05070d;
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:24px;
}

.footer strong{
  color:var(--text);
}

/* RESPONSIVE */

@media(max-width:1050px){
  .menu{
    gap:16px;
  }

  .menu a{
    font-size:.9rem;
  }
}

@media(max-width:900px){
  .nav{
    min-height:72px;
  }

  .menu{
    display:none;
  }

  .hero{
    padding:76px 0 64px;
  }

  .hero-grid,
  .practice-grid,
  .service-panel,
  .split-section{
    grid-template-columns:1fr;
  }

  .practice-grid{
    gap:18px;
  }

  .process-grid,
  .penal-grid{
    grid-template-columns:1fr;
  }

  .cta-box,
  .footer-grid{
    flex-direction:column;
    align-items:flex-start;
  }

  .hero-card,
  .service-panel,
  .timeline-item,
  .rich-text,
  .contact-form{
    padding:24px;
  }

  .timeline-item{
    grid-template-columns:1fr;
  }

  .timeline-year{
    width:120px;
  }

  .whatsapp-float{
    right:16px;
    bottom:16px;
  }
}

@media(max-width:620px){
  .container{
    width:min(100% - 28px, 1180px);
  }

  .brand-text{
    font-size:.95rem;
  }

  .brand-mark{
    width:38px;
    height:38px;
    border-radius:13px;
  }

  .btn{
    width:100%;
    text-align:center;
  }

  .btn-small{
    width:auto;
    padding:10px 14px;
  }

  .hero h1{
    font-size:clamp(2.15rem, 12vw, 3rem);
    letter-spacing:-.045em;
  }

  .hero p{
    font-size:1rem;
  }

  .hero-actions{
    width:100%;
  }

  .section{
    padding:64px 0;
  }

  .section-title{
    font-size:clamp(1.9rem, 10vw, 2.45rem);
  }

  .hero-card,
  .practice-card,
  .service-panel,
  .timeline-item,
  .rich-text,
  .contact-form,
  .cta-box{
    border-radius:24px;
  }

  .service-panel h3{
    font-size:1.42rem;
  }

  .whatsapp-float{
    left:16px;
    right:16px;
    text-align:center;
    justify-content:center;
    display:flex;
  }
}
