/* ==========================================================================
   Solución Abogados Maipú — Estilos
   ========================================================================== */

:root {
  --navy-950: #0a1d33;
  --navy-900: #0d2340;
  --navy-800: #123056;
  --navy-700: #1a4171;
  --gold-500: #b8935f;
  --gold-400: #c9a86e;
  --gold-100: #f4e9d8;
  --gray-900: #1c2430;
  --gray-700: #4a5568;
  --gray-500: #718096;
  --gray-200: #e2e8f0;
  --gray-100: #f4f6f8;
  --white: #ffffff;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 8px;
  --shadow-sm: 0 2px 8px rgba(10, 29, 51, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 29, 51, 0.12);
  --shadow-lg: 0 20px 48px rgba(10, 29, 51, 0.18);
  --transition: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 12px;
}

.eyebrow-light { color: var(--gold-400); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-900); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 29, 51, 0.0);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 18px 0;
}

.site-header.scrolled {
  background: var(--navy-950);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  flex-shrink: 0;
}

.logo-icon { width: 32px; height: 32px; color: var(--gold-400); }

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.logo-text em {
  font-style: normal;
  color: var(--gold-400);
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.main-nav a:hover { color: var(--gold-400); }

.mobile-phone-link, .mobile-cta { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.phone-link svg { color: var(--gold-400); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-950);
  color: var(--white);
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(184,147,95,0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(26,65,113,0.5), transparent 50%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
}

.hero-inner { position: relative; z-index: 1; }

.hero-content { max-width: 720px; }

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-badges li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  padding-left: 20px;
  position: relative;
}
.hero-badges li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-400);
  font-weight: 700;
}

/* ==========================================================================
   Sections general
   ========================================================================== */

.section { padding: 100px 0; }
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--navy-950); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-head p { color: var(--gray-700); font-size: 1.05rem; }

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.tab-btn {
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.35s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards grid (services) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-400);
}
.card-icon { font-size: 1.8rem; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--gray-700); font-size: 0.95rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.about-visual svg { width: 100%; height: auto; }
.about-circle { fill: none; stroke: var(--gold-400); stroke-width: 1.5; opacity: 0.5; }
.about-line { stroke: var(--navy-800); stroke-width: 2; fill: none; }

.about-content p { color: var(--gray-700); margin-bottom: 16px; }
.check-list { margin-top: 20px; }
.check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--gray-900);
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-weight: 700;
  background: var(--gold-100);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  top: 1px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature { text-align: center; padding: 12px; }
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 18px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--gray-700); font-size: 0.92rem; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--gray-700); font-size: 0.92rem; }

/* FAQ / Accordion */
.accordion { max-width: 760px; margin: 0 auto; }
.accordion-item {
  border-bottom: 1px solid var(--gray-200);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
}
.accordion-icon {
  font-size: 1.3rem;
  color: var(--gold-500);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}
.accordion-content p {
  padding: 0 4px 22px;
  color: var(--gray-700);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: rgba(255,255,255,0.75); margin-bottom: 32px; }

.contact-list li {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-list strong {
  display: block;
  color: var(--gold-400);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.contact-list a, .contact-list span {
  color: var(--white);
  font-size: 1.05rem;
}
.contact-list small { color: rgba(255,255,255,0.5); font-size: 0.75rem; }

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
.form-row textarea { resize: vertical; }

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--navy-700);
  text-align: center;
  min-height: 1.2em;
}
.form-note-success { color: #1a7f4f; font-weight: 600; }
.form-note-error { color: #b3261e; font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { margin-top: 12px; font-size: 0.9rem; max-width: 320px; }
.footer-links h4, .footer-contact h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.footer-links a, .footer-contact a {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-400); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 280px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-950);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open a {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-phone-link, .mobile-cta { display: flex; }
  .mobile-cta { margin-top: 12px; justify-content: center; border-bottom: none; }

  .cards-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .contact-form { padding: 28px; }
  .section { padding: 72px 0; }
}
