/* ============================================
   ÁLVARO OROZCO — main.css
   Mobile-first, fusión verde oscuro + cyan dev
   ============================================ */

/* Las fuentes se cargan vía <link> en el <head> (no duplicar con @import). */

/* ── TOKENS ── */
:root {
  /* Verdes (identidad abogado) */
  --g900: #0b1a0b;
  --g800: #142814;
  --g700: #1e3c1e;
  --g600: #2d5a2d;
  --g500: #3d7a3d;
  --g400: #4e9a4e;
  --g300: #72b872;
  --g200: #a3cfa3;
  --g100: #d0e8d0;
  --g50:  #eef6ee;

  /* Cyan (identidad dev) */
  --cyan:      #00e1f4;
  --cyan-dim:  rgba(0,225,244,0.12);
  --cyan-glow: rgba(0,225,244,0.06);

  /* Magenta (acento secundario dev) */
  --mag:     #fc00ff;
  --mag-dim: rgba(252,0,255,0.08);

  /* Dorado (acento abogado) */
  --gold:     #c9a84c;
  --gold-dim: rgba(201,168,76,0.15);

  /* Superficies */
  --bg:        #111614;   /* verde muy oscuro tirando a negro */
  --bg-card:   #181f18;
  --bg-card2:  #1e271e;
  --bg-glass:  rgba(20,40,20,0.6);

  /* Texto */
  --text:      #e8f0e8;
  --text-mid:  #8fa08f;
  --text-dim:  #516051;
  --border:    rgba(61,122,61,0.18);
  --border-md: rgba(61,122,61,0.32);

  /* Tipografías */
  --serif: 'Playfair Display', Georgia, serif;
  --mono:  'Roboto Mono', 'Courier New', monospace;
  --sans:  'DM Sans', system-ui, sans-serif;

  /* Espaciado */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.6rem;
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--g900); }
::-webkit-scrollbar-thumb { background: var(--g500); border-radius: 4px; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(17,22,20,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 5.6rem;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.nav__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-md);
  color: var(--g300);
  font-size: 1.8rem;
  transition: border-color 0.2s, color 0.2s;
}

.nav__toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav__menu {
  display: none;
  position: fixed;
  top: 5.6rem;
  left: 0; right: 0;
  background: rgba(13,20,13,0.98);
  border-bottom: 1px solid var(--border-md);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 0.4rem;
}

.nav__menu.open { display: flex; }

.nav__menu a {
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--text-mid);
  padding: 1rem 1.2rem;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s, color 0.2s;
}

.nav__menu a:hover { background: var(--bg-card2); color: var(--cyan); }
.nav__menu a.active { color: var(--cyan); }

.nav__menu-section {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-family: var(--mono);
  padding: 0.8rem 1.2rem 0.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav__pill {
  background: var(--g600);
  color: var(--g100) !important;
  border-radius: 100px;
  padding: 0.8rem 1.8rem !important;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav__toggle { display: none; }
  .nav__menu {
    display: flex !important;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
  }
  .nav__menu-section { display: none; }
  .nav__menu a {
    font-size: 1.2rem;
    padding: 0.6rem 1rem;
  }
  .nav__pill { padding: 0.5rem 1.4rem !important; }
}

/* ── HERO ── */
.hero {
  padding-top: 5.6rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* fondo: grid + gradientes */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(0,225,244,0.03) 0%, transparent 60%),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(61,122,61,0.06) 60px),
    repeating-linear-gradient(180deg, transparent, transparent 59px, rgba(61,122,61,0.06) 60px);
  pointer-events: none;
}

.hero__law, .hero__dev {
  flex: 1;
  padding: 5rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* línea divisoria entre las dos mitades en mobile */
.hero__law {
  border-bottom: 1px solid var(--border-md);
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 1.6rem;
  color: var(--g300);
}

.hero__dev .hero__eyebrow { color: var(--cyan); }

.hero__law h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.8rem;
  letter-spacing: -0.02em;
}

.hero__law h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero__dev h1 {
  font-family: var(--mono);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.8rem;
}

.hero__dev h1 .c-cyan  { color: var(--cyan); }
.hero__dev h1 .c-green { color: var(--g300); }
.hero__dev h1 .c-dim   { color: var(--text-dim); font-size: 0.65em; }

.hero__desc {
  font-size: 1.5rem;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 48ch;
  margin-bottom: 3rem;
}

.hero__ctas { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* botones */
.btn-gold {
  background: var(--gold);
  color: #0d1a0d;
  padding: 1.1rem 2.2rem;
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.4rem;
  transition: filter 0.2s, transform 0.15s;
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-outline-green {
  border: 1px solid var(--border-md);
  color: var(--g200);
  padding: 1.1rem 2.2rem;
  border-radius: var(--r-sm);
  font-size: 1.4rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-green:hover { border-color: var(--g400); color: var(--g100); }

.btn-cyan {
  background: var(--cyan);
  color: #060f0f;
  padding: 1.1rem 2.2rem;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 500;
  transition: filter 0.2s, transform 0.15s;
}
.btn-cyan:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-outline-cyan {
  border: 1px solid rgba(0,225,244,0.25);
  color: var(--cyan);
  opacity: 0.7;
  padding: 1.1rem 2.2rem;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 1.35rem;
  transition: opacity 0.2s, border-color 0.2s;
}
.btn-outline-cyan:hover { opacity: 1; border-color: rgba(0,225,244,0.6); }

/* hero desktop: split horizontal */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    min-height: 100dvh;
  }
  .hero__law, .hero__dev {
    flex: 1;
    padding: 8rem 5rem;
  }
  .hero__law {
    border-bottom: none;
    border-right: 1px solid var(--border-md);
  }
  /* línea central con símbolo */
  .hero__divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--g300);
    z-index: 5;
  }
}

/* ── SECCIONES ── */
.section {
  padding: 6rem 2rem;
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section__label {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8rem;
}

.section__label--law  { color: var(--g400); }
.section__label--dev  { color: var(--cyan); }
.section__label--cont { color: var(--g300); }

.section__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section__title--serif { font-family: var(--serif); font-weight: 700; color: var(--text); }
.section__title--mono  { font-family: var(--mono);  font-weight: 500; color: var(--text); }

.section__sub {
  font-size: 1.5rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 4rem;
}

/* ── DERECHO ── */
#derecho { background: var(--bg-card); border-top: 1px solid var(--border); }

.law-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 560px) { .law-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .law-grid { grid-template-columns: repeat(3, 1fr); } }

.law-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2.2rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.law-card:hover {
  border-color: var(--g400);
  transform: translateY(-2px);
}

.law-card__icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--r-sm);
  background: rgba(61,122,61,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.law-card__icon svg {
  width: 2rem; height: 2rem;
  stroke: var(--g300); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.law-card__badge {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(61,122,61,0.2);
  color: var(--g300);
  letter-spacing: 0.05em;
}

.law-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.law-card p {
  font-size: 1.35rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.tp-box {
  background: var(--g800);
  border: 1px solid rgba(61,122,61,0.3);
  border-radius: var(--r-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.tp-box p {
  font-size: 1.4rem;
  color: var(--g200);
  line-height: 1.7;
}

.tp-box strong { color: var(--gold); }

.tp-badge {
  font-family: var(--mono);
  font-size: 1.1rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-sm);
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  letter-spacing: 0.05em;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .tp-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .tp-badge { align-self: center; white-space: nowrap; }
}

/* ── PROYECTOS / DEV ── */
#proyectos { background: var(--bg); border-top: 1px solid var(--border); }

.dev-filters {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--mono);
  font-size: 1.1rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(0,225,244,0.18);
  color: var(--text-dim);
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--cyan-dim);
  border-color: rgba(0,225,244,0.45);
  color: var(--cyan);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-bottom: 4rem;
}

@media (min-width: 560px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: rgba(0,225,244,0.3);
  transform: translateY(-2px);
}

.project-card.hidden { display: none; }

.project-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-card__emoji { font-size: 2rem; line-height: 1; }

.project-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.tag {
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.tag-python { background: rgba(100,149,237,0.15); color: #89b4fa; }
.tag-n8n    { background: rgba(249,115,22,0.15);  color: #fab387; }
.tag-excel  { background: rgba(61,122,61,0.2);     color: var(--g300); }
.tag-ml     { background: rgba(167,139,250,0.15);  color: #cba6f7; }
.tag-legal  { background: var(--gold-dim);          color: var(--gold); }

.project-card h3 {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.project-card p {
  font-size: 1.3rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.project-card__links {
  margin-top: 1.4rem;
  display: flex;
  gap: 1.2rem;
}

.project-link {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--cyan);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.project-link:hover { opacity: 1; }

/* Stack pills */
.stack-section {
  border-top: 1px solid var(--border);
  padding-top: 2.4rem;
}

.stack-label {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.stack-pill {
  font-family: var(--mono);
  font-size: 1.1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.stack-pill:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── CONTACTO ── */
#contacto {
  background: var(--g800);
  border-top: 1px solid rgba(61,122,61,0.3);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-intro {
  font-size: 1.5rem;
  color: var(--g200);
  line-height: 1.75;
  margin-bottom: 2.4rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contact-item:last-of-type { border-bottom: none; }

.contact-item__icon {
  width: 3.4rem; height: 3.4rem;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item__icon svg {
  width: 1.6rem; height: 1.6rem;
  stroke: var(--g400); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.contact-item__label {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--g500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 2px;
}

.contact-item__val {
  font-size: 1.4rem;
  color: var(--g100);
}

.contact-item__val a:hover { color: var(--cyan); }

.wa-btn {
  margin-top: 2.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #25d366;
  color: #0a1f0a;
  padding: 1.2rem 2.2rem;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 1.4rem;
  transition: filter 0.2s, transform 0.15s;
}

.wa-btn svg { width: 1.8rem; height: 1.8rem; fill: #0a1f0a; }
.wa-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.contact-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  padding: 2.4rem;
}

.contact-panel h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.contact-panel p {
  font-size: 1.35rem;
  color: var(--g300);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.areas-list { display: flex; flex-direction: column; gap: 0.8rem; }

.areas-list li {
  font-size: 1.35rem;
  color: var(--g200);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.areas-list li::before {
  content: '›';
  color: var(--g400);
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── FOOTER ── */
.footer {
  background: var(--g900);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 2.4rem;
  text-align: center;
}

.footer p {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--text-dim);
}

.footer a { color: var(--g400); transition: color 0.2s; }
.footer a:hover { color: var(--cyan); }

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; animation: fadeUp 0.65s ease forwards; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.cursor { animation: blink 1s step-end infinite; }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ACCORDION DE PROYECTOS ── */
.projects-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.pac {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.pac:last-child { border-bottom: none; }

.pac.hidden { display: none; }

.pac__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.8rem 2rem;
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  flex-wrap: wrap;
}

.pac__trigger:hover { background: var(--bg-card2); }
.pac[aria-expanded="true"] .pac__trigger,
.pac.open .pac__trigger { background: var(--bg-card2); }

.pac__trigger-left {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex: 1;
  min-width: 0;
}

.pac__emoji {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.pac__trigger-info { min-width: 0; }

.pac__title {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pac__summary {
  font-size: 1.2rem;
  color: var(--text-dim);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pac__trigger-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.pac__badge {
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pac__badge--demo     { background: rgba(0,225,244,0.1);  border: 1px solid rgba(0,225,244,0.3);  color: var(--cyan); }
.pac__badge--public   { background: rgba(61,122,61,0.15); border: 1px solid rgba(61,122,61,0.35); color: var(--g300); }
.pac__badge--internal { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3); color: var(--gold); }

.pac__chevron {
  font-size: 2rem;
  color: var(--text-dim);
  line-height: 1;
  transition: transform 0.3s ease;
  display: inline-block;
}

.pac.open .pac__chevron { transform: rotate(90deg); }

/* body colapsable */
.pac__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.pac.open .pac__body { max-height: 2000px; }

.pac__body-inner {
  padding: 0 2rem 2rem;
  border-top: 1px solid var(--border);
}

.pac__desc {
  font-size: 1.4rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 1.8rem 0 2rem;
  max-width: 80ch;
}

.pac__detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

@media (min-width: 700px) {
  .pac__detail-grid { grid-template-columns: 1fr 1fr; }
}

.pac__detail-label {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.pac__feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pac__feature-list li {
  font-size: 1.3rem;
  color: var(--text-mid);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pac__feature-list li::before {
  content: '›';
  color: var(--g500);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.pac__detail-note {
  font-size: 1.25rem;
  color: var(--text-dim);
  line-height: 1.6;
  font-style: italic;
}

.pac__footer {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.project-featured {
  background: var(--bg-card);
  border: 1px solid rgba(0,225,244,0.15);
  border-radius: var(--r-lg);
  padding: 2.4rem;
  margin-bottom: 3rem;
  position: relative;
}

.project-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--g400));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.project-featured__header { margin-bottom: 2rem; }

.project-featured__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.project-featured__badge {
  font-family: var(--mono);
  font-size: 1rem;
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(0,225,244,0.1);
  border: 1px solid rgba(0,225,244,0.3);
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.project-featured__title {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.project-featured__desc {
  font-size: 1.4rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 70ch;
}

.project-featured__footer {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

/* ── CALCULADORA DEMO ── */
.calc-demo {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.calc-demo__top {
  padding: 1rem 1.6rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}

.calc-demo__base {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--text-dim);
}

.calc-demo__base strong { color: var(--g300); }

.calc-demo__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 900px) {
  .calc-demo__body {
    grid-template-columns: 1.2fr 1fr;
  }
}

.calc-demo__inputs {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  border-right: 1px solid var(--border);
}

.calc-group {}

.calc-group__label {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.calc-group__note {
  font-size: 0.9rem;
  color: var(--g500);
  letter-spacing: 0;
  text-transform: none;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-field label {
  font-size: 1.1rem;
  color: var(--text-mid);
}

.calc-field input, .calc-field select {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 0.6rem 0.8rem;
  font-size: 1.3rem;
  font-family: var(--mono);
  width: 100%;
  transition: border-color 0.2s;
}

.calc-field input:focus, .calc-field select:focus {
  outline: none;
  border-color: var(--cyan);
}

.moral-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.moral-row input[type=range] {
  flex: 1;
  accent-color: var(--cyan);
  cursor: pointer;
}

.moral-lim {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text-dim);
}

.moral-val {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cyan);
  min-width: 9rem;
  text-align: right;
}

.moral-cop {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--g400);
  margin-top: 0.4rem;
  text-align: right;
}

/* resultados */
.calc-demo__results {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.result-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.result-item__label {
  font-size: 1.25rem;
  color: var(--text-mid);
}

.result-item__val {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
}

.result-item__sub {
  width: 100%;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text-dim);
  text-align: right;
}

.result-total {
  margin-top: 1.4rem;
  background: rgba(0,225,244,0.05);
  border: 1px solid rgba(0,225,244,0.2);
  border-radius: var(--r-sm);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.result-total__label {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-total__val {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
}

.result-total__sub {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text-dim);
}

.calc-cta {
  display: block;
  margin-top: 1.4rem;
  background: var(--gold);
  color: #0d1a0d;
  padding: 1rem 1.4rem;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 1.35rem;
  text-align: center;
  transition: filter 0.2s, transform 0.15s;
}

.calc-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

.calc-disclaimer {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* badge uso interno */
.project-link-internal {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* Nav: logo AOZ texto */
.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-text {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g200);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav__logo:hover .nav__logo-text { color: var(--g100); }

.nav__logo-dot { color: var(--cyan); }

/* Hero: logo completo con texto */
.hero__law-logo {
  margin-bottom: 2rem;
}

.hero__law-logo-img {
  height: 130px;
  width: auto;
  display: block;
  filter:
    invert(1) sepia(0.3) saturate(1.2) hue-rotate(90deg)
    drop-shadow(0 0 10px rgba(180,230,180,0.5))
    drop-shadow(0 0 24px rgba(100,180,100,0.25));
}

@media (min-width: 768px)  { .hero__law-logo-img { height: 155px; } }
@media (min-width: 1100px) { .hero__law-logo-img { height: 175px; } }

/* Sección derecho: isotipo mediano */
.section__law-header {
  margin-bottom: 2rem;
}

.section__law-logo-img {
  height: 68px;
  width: auto;
  display: block;
  opacity: 0.9;
  filter:
    invert(1) sepia(0.4) saturate(1.4) hue-rotate(90deg)
    drop-shadow(0 0 6px rgba(114,184,114,0.45));
}

/* ── BOTÓN VER MÁS ── */
.ver-mas {
  width: 100%;
  margin-top: 1px;
  padding: 1.6rem;
  background: var(--bg-card);
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ver-mas:hover {
  background: var(--bg-card2);
  color: var(--cyan);
}

.ver-mas__count {
  font-size: 1.1rem;
  padding: 2px 10px;
  border-radius: 100px;
  background: rgba(0,225,244,0.08);
  border: 1px solid rgba(0,225,244,0.2);
  color: var(--cyan);
}

/* ── SLOT DE DEMO dentro del accordion ── */
.pac__demo-slot {
  margin-top: 2rem;
}

/* ============================================
   REPOTENCIADO v2 — accesibilidad, tema,
   skills, métricas y utilidades
   ============================================ */

/* ── TEMA CLARO (override de tokens de superficie/texto) ── */
[data-theme="light"] {
  --bg:        #f4f7f4;
  --bg-card:   #ffffff;
  --bg-card2:  #eef3ee;
  --bg-glass:  rgba(255,255,255,0.7);

  --text:      #16241a;
  --text-mid:  #46584a;
  --text-dim:  #6f8172;
  --border:    rgba(45,90,45,0.16);
  --border-md: rgba(45,90,45,0.30);

  --g300: #2d6a2d;
  --g200: #285a28;
  --g100: #1d471d;
  --cyan: #0892a0;
  --gold: #9a7c1f;
}

[data-theme="light"] body { background: var(--bg); }
[data-theme="light"] .nav { background: rgba(244,247,244,0.92); }
[data-theme="light"] .nav__menu { background: rgba(255,255,255,0.98); }
[data-theme="light"] #derecho { background: #ffffff; }
[data-theme="light"] #proyectos,
[data-theme="light"] .section--skills { background: var(--bg); }
[data-theme="light"] #contacto { background: #e7f0e7; }
[data-theme="light"] .footer { background: #e0eae0; }
[data-theme="light"] .hero__law-logo-img,
[data-theme="light"] .section__law-logo-img {
  filter: drop-shadow(0 2px 6px rgba(45,90,45,0.25));
}

/* ── ACCESIBILIDAD ── */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 500;
  background: var(--cyan);
  color: #060f0f;
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 500;
  padding: 1rem 1.6rem;
  border-radius: var(--r-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* Foco visible coherente para teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── BARRA DE PROGRESO DE SCROLL ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 300;
  background: linear-gradient(90deg, var(--g400), var(--cyan));
  transition: width 0.1s linear;
}

/* ── NAV: contenedor derecho + toggle de tema ── */
.nav__right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-md);
  color: var(--g300);
  font-size: 1.5rem;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); transform: rotate(-15deg); }

@media (min-width: 768px) {
  .nav__logo { order: 1; }
  .nav__menu { order: 2; margin-left: auto; }
  .nav__right { order: 3; margin-left: 1.2rem; }
}

/* ── SECCIÓN SKILLS ── */
.section--skills {
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
}

.section--skills .section__title em,
.section--skills .section__sub em { font-style: normal; color: var(--gold); }
.section--skills .section__sub strong { color: var(--text); }
.section--skills .c-cyan { color: var(--cyan); }

.legaltech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.6rem 2.4rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.legaltech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}

.legaltech-card__icon {
  width: 5rem; height: 5rem;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  margin-bottom: 1.6rem;
}

.legaltech-card__lead {
  font-size: 1.55rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 75ch;
  margin-bottom: 2rem;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 1.15rem;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--border-md);
  color: var(--g200);
  background: rgba(61,122,61,0.08);
  transition: border-color 0.2s, color 0.2s;
}
.skill-chip i { color: var(--gold); font-size: 1.1rem; }
.skill-chip:hover { border-color: var(--gold); color: var(--text); }

/* ── MÉTRICAS DE IMPACTO ── */
.impact-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 720px) {
  .impact-stats { grid-template-columns: repeat(4, 1fr); }
}

.impact-stat {
  background: var(--bg-card);
  padding: 2.4rem 1.6rem;
  text-align: center;
}

.impact-stat__num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.impact-stat__label {
  font-size: 1.2rem;
  color: var(--text-mid);
  line-height: 1.4;
}

/* ── BOTÓN VOLVER ARRIBA ── */
.to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: var(--g600);
  color: var(--g50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--cyan); color: #060f0f; }

/* ── WhatsApp flotante ── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 150;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(37,211,102,0.45);
  transition: transform 0.18s, box-shadow 0.2s;
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-float svg { width: 2.8rem; height: 2.8rem; fill: #fff; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37,211,102,0.6); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 6px 22px rgba(37,211,102,0.45), 0 0 0 12px rgba(37,211,102,0); }
}
@media (min-width: 768px) {
  .wa-float { width: 5.6rem; height: 5.6rem; }
}

/* ── FORMULARIO DE CONTACTO ── */
.contact-form {
  max-width: 640px;
  margin: 0 auto 4rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
[data-theme="light"] .contact-form { background: rgba(255,255,255,0.6); }

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
@media (max-width: 560px) { .contact-form__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--text-mid);
  letter-spacing: 0.04em;
}
.field input,
.field select,
.field textarea {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 1rem 1.2rem;
  font-size: 1.4rem;
  font-family: var(--sans);
  width: 100%;
}
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea { background: rgba(45,90,45,0.05); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--cyan); }
.field textarea { resize: vertical; line-height: 1.6; }

.contact-form__submit { align-self: flex-start; border: none; cursor: pointer; }
.contact-form__submit:disabled { opacity: 0.6; cursor: progress; }

.contact-form__status {
  font-family: var(--mono);
  font-size: 1.25rem;
  min-height: 1.6rem;
}
.contact-form__status.ok  { color: var(--g300); }
.contact-form__status.err { color: #ff7a7a; }

/* ── TESTIMONIOS ── */
.section--testi { background: var(--bg-card); border-top: 1px solid var(--border); }

.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 720px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }

.testi-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testi-card__stars { color: var(--gold); font-size: 1.5rem; letter-spacing: 0.1em; }
.testi-card blockquote {
  font-size: 1.4rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}
.testi-card figcaption {
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-top: auto;
}

/* ── FAQ ── */
.section--faq { background: var(--bg); border-top: 1px solid var(--border); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1.6rem 2rem;
  font-family: var(--mono);
  font-size: 1.45rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 2rem;
  color: var(--cyan);
  line-height: 1;
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--cyan); }
.faq-item p {
  padding: 0 2rem 1.8rem;
  font-size: 1.35rem;
  color: var(--text-mid);
  line-height: 1.75;
}
.faq-item p strong { color: var(--g200); }

/* ── FOOTER: enlace privado ── */
.footer__private {
  margin-top: 0.8rem;
}
.footer__private a {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.footer__private a:hover { color: var(--cyan); }
