/* ============================================
   GS Soluciones Jurídicas — Hoja de estilos
   ============================================ */

:root {
  --background: #f7f9fb;
  --foreground: #131e36;
  --card: #ffffff;
  --primary: #1359a8;
  --primary-foreground: #ffffff;
  --secondary: #dde9f7;
  --muted: #eef2f6;
  --muted-foreground: #6b7785;
  --border: #d6dde6;
  --gold: #f3b81b;
  --gold-light: #fad36b;
  --navy: #0d2a5c;
  --navy-light: #1f4694;
  --radius: 0.5rem;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 2px rgba(13,42,92,.06);
  --shadow-md: 0 4px 14px rgba(13,42,92,.10);
  --shadow-lg: 0 10px 30px rgba(13,42,92,.15);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5rem; line-height: 1.2; color: var(--foreground); }
p { margin: 0 0 1rem; }

/* ============ Layout ============ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.center { text-align: center; }
.hidden { display: none !important; }

.bg-background { background: var(--background); }
.bg-secondary { background: rgba(221, 233, 247, .5); }
.bg-navy-gradient { background: linear-gradient(135deg, var(--navy), var(--primary)); color: #fff; }

.text-primary { color: var(--primary); }
.text-light { color: #fff !important; }
.text-light-muted { color: rgba(255,255,255,.8); }
.muted { color: var(--muted-foreground); }
.small { font-size: .8rem; }
.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Navbar ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; }
.nav-brand { display: flex; align-items: center; gap: .75rem; }
.nav-logo { height: 48px; width: auto; object-fit: contain; }
.nav-brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--foreground); }
.nav-links { display: none; gap: 1.75rem; align-items: center; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--muted-foreground); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--foreground); transition: .3s; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
.nav-links.open {
  display: flex; flex-direction: column; align-items: stretch;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 1.25rem; gap: 1rem;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem;
  transition: all .2s; cursor: pointer;
}
.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: .92; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--foreground); font-weight: 700; }
.btn-gold:hover { filter: brightness(1.08); transform: scale(1.03); }
.btn-outline { border: 2px solid rgba(255,255,255,.3); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); transform: scale(1.03); }
.btn-ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ============ Hero ============ */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; padding-top: 5rem; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy), var(--primary)); opacity: .85; }
.hero-content { position: relative; padding: 5rem 1rem; max-width: 900px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(243,184,27,.2); color: var(--gold-light);
  border: 1px solid rgba(243,184,27,.3);
  border-radius: 999px; padding: .35rem 1rem; font-size: .85rem; margin-bottom: 1.5rem;
}
.hero-title { font-size: 2.25rem; color: #fff; line-height: 1.15; margin-bottom: 1.5rem; font-weight: 700; }
@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }
.hero-text { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 640px; margin-bottom: 1rem; }
.hero-text-sm { color: rgba(255,255,255,.7); font-size: .95rem; max-width: 640px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.hero-benefits { display: grid; grid-template-columns: 1fr; gap: .5rem 1.5rem; max-width: 640px; }
@media (min-width: 640px) { .hero-benefits { grid-template-columns: 1fr 1fr; } }
.hero-benefits li { color: rgba(255,255,255,.85); font-size: .9rem; padding-left: 1rem; position: relative; }
.hero-benefits li::before { content: ""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; position: absolute; left: 0; top: .55rem; }

/* ============ Sections ============ */
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .15em;
  color: var(--gold); text-transform: uppercase; margin-bottom: .75rem;
}
.eyebrow-light { color: var(--gold-light); }
.section-head h2 { font-size: 1.85rem; margin-bottom: 1rem; font-weight: 700; }
@media (min-width: 768px) { .section-head h2 { font-size: 2.4rem; } }
.section-head p { color: var(--muted-foreground); font-size: 1rem; }
.section-head .text-light + p, h2.text-light + p { color: rgba(255,255,255,.8); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }

/* ============ Cards ============ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  transition: all .3s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: rgba(243,184,27,.4); transform: translateY(-2px); }
.card h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.card p { color: var(--muted-foreground); font-size: .95rem; margin-bottom: 0; }

.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px; font-size: 1.4rem; margin-bottom: 1rem;
}
.icon-primary { background: rgba(19,89,168,.1); color: var(--primary); }
.icon-primary-soft { background: rgba(19,89,168,.1); color: var(--primary); width: 48px; height: 48px; margin-bottom: 0; flex-shrink: 0; }
.icon-gold { background: rgba(243,184,27,.15); color: var(--gold); }

.values-card { margin-top: 1.5rem; }
.values-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.values-head h3 { margin-bottom: .25rem; }
.bullet-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 640px) { .bullet-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .bullet-grid { grid-template-columns: repeat(3,1fr); } }
.bullet-grid li { font-size: .9rem; padding-left: 1rem; position: relative; }
.bullet-grid li::before { content: ""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; position: absolute; left: 0; top: .55rem; }

/* Service card list */
.service-list { margin-top: 1rem; display: grid; gap: .5rem; }
.service-list li { font-size: .9rem; padding-left: 1rem; position: relative; color: var(--foreground); }
.service-list li::before { content: ""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; position: absolute; left: 0; top: .55rem; }

/* ============ Consulta ============ */
.consulta-options {
  display: grid; gap: .75rem; margin: 2rem 0; text-align: left;
}
@media (min-width: 640px) { .consulta-options { grid-template-columns: repeat(3,1fr); } }
.consulta-options li {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 1rem; color: rgba(255,255,255,.9); font-size: .9rem;
}
.consulta-options .bar { display: block; width: 32px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: .75rem; }

/* ============ FAQ ============ */
.faq { max-width: 800px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0 2rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; text-align: left; padding: 1.25rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--foreground); transition: color .2s;
}
.faq-q:hover { color: var(--primary); }
.faq-q .chev { transition: transform .3s; font-size: .9rem; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  color: var(--muted-foreground); font-size: .95rem;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.25rem; }

/* ============ Contacto ============ */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item strong { display: block; font-size: .9rem; color: var(--foreground); }
.contact-item span, .contact-item a { font-size: .9rem; color: var(--muted-foreground); word-break: break-word; }
.contact-item a:hover { color: var(--primary); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .35rem; color: var(--foreground); }
.form-field input, .form-field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--background);
  font-family: inherit; font-size: .95rem; color: var(--foreground);
  transition: box-shadow .2s, border-color .2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19,89,168,.15);
}
.form-field textarea { resize: vertical; }
.form-success { text-align: center; padding: 2rem; border: 1px solid rgba(243,184,27,.4); border-radius: 12px; background: rgba(243,184,27,.05); }
.form-success h3 { color: var(--foreground); }

/* ============ Footer ============ */
.footer { padding: 3rem 0; color: #fff; }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3,1fr); } }
.footer-logo { height: 64px; width: auto; object-fit: contain; margin-bottom: .75rem; }
.footer-text { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.6; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.footer-list { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; color: rgba(255,255,255,.7); word-break: break-word; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; font-size: .9rem; color: rgba(255,255,255,.6); }

/* ============ Animations ============ */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
