/* ============================================================
   ABOGADOS GRUPO MIN — styles.css
   Archetype: Editorial Light Cream — Autoridad jurídica
   Palette: Cream + Black + Gold
   v20260615
   ============================================================ */

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

:root {
  --bg:        #f5f0e8;
  --bg-2:      #ede6d4;
  --bg-dark:   #0e0c09;
  --bg-dark-2: #1a1713;
  --ink:       #14120e;
  --ink-2:     #2e2b24;
  --ink-3:     #6b6355;
  --cream:     #f5f0e8;
  --gold:      #b8972a;
  --gold-2:    #9a7d22;
  --gold-light:#d4ae47;
  --line:      rgba(20,18,14,.12);
  --line-dark: rgba(245,240,232,.1);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-circ: cubic-bezier(0.85, 0, 0.15, 1);
  --nav-h:     72px;
  --max-w:     1280px;
  --pad-x:     clamp(1.25rem, 5vw, 4rem);
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ── Reveal ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .22s; }
.reveal-delay-3 { transition-delay: .34s; }
.reveal-delay-4 { transition-delay: .46s; }
.reveal-delay-5 { transition-delay: .58s; }

/* ── Splash ─────────────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  transition: opacity .6s var(--ease-circ), clip-path .6s var(--ease-circ);
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash { animation: splashSafety .01s 4.5s forwards; }

.splash-logo-img {
  height: 80px; width: auto; display: block; object-fit: contain;
}
.splash-bar {
  width: 100px; height: 1px;
  background: rgba(245,240,232,.15); position: relative; overflow: hidden;
}
.splash-bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  animation: splashLoad 2.6s var(--ease-out) forwards;
}
@keyframes splashLoad { to { transform: scaleX(1); } }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.nav.is-scrolled { box-shadow: 0 2px 20px rgba(20,18,14,.08); }

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; width: 100%;
}

.nav-logo {
  display: flex; align-items: center;
  flex-shrink: 0; max-width: 180px;
}
.nav-logo-img {
  height: 44px; width: auto; max-width: 155px;
  display: block; object-fit: contain;
}

.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
}
.nav-links a {
  font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  transition: color .25s ease; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 1px; background: var(--gold);
  transition: right .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  background: var(--ink); color: var(--cream);
  padding: .55rem 1.4rem;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  transition: background .25s ease;
}
.nav-cta:hover { background: var(--gold); }

.nav-hamburger {
  display: none; flex-direction: column;
  gap: 5px; padding: .5rem;
}
.nav-hamburger span {
  display: block; height: 1.5px; background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-hamburger span:nth-child(1) { width: 22px; }
.nav-hamburger span:nth-child(2) { width: 16px; }
.nav-hamburger span:nth-child(3) { width: 22px; }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 22px; }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 22px; }

.nav-mobile {
  display: none; position: fixed;
  inset: var(--nav-h) 0 0;
  background: var(--bg); z-index: 99;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 2.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  border-top: 1px solid var(--line);
}
.nav-mobile.is-open { opacity: 1; pointer-events: all; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 600; color: var(--ink-3);
  transition: color .2s ease;
}
.nav-mobile a:hover { color: var(--ink); }
.nav-mobile .nav-cta { font-family: var(--font-body); font-size: .9rem; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--bg-dark);
  min-height: 100svh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}

/* Geometric background pattern */
.hero-pattern {
  position: absolute; inset: 0;
  opacity: .04;
  background-image:
    linear-gradient(var(--gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(184,151,42,.12), transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(184,151,42,.07), transparent 70%);
}

.hero-content {
  position: relative; z-index: 2;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
  width: 100%;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
}
.hero-eyebrow-line {
  width: 40px; height: 1px; background: var(--gold);
}
.hero-eyebrow span {
  font-size: .7rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 600; line-height: .95;
  color: var(--cream); max-width: 16ch;
  text-wrap: balance; margin-bottom: 2rem;
}
.hero-title em { font-style: italic; color: var(--gold); }

.hero-desc {
  max-width: 42ch;
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: rgba(245,240,232,.6);
  line-height: 1.7; margin-bottom: 3rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold); color: var(--bg-dark);
  padding: .9rem 2.2rem;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  transition: background .25s ease, transform .2s ease;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(245,240,232,.25); color: var(--cream);
  padding: .9rem 2.2rem;
  font-size: .8rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  transition: border-color .25s ease, color .25s ease;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.hero-stats {
  position: absolute; bottom: 3rem; right: var(--pad-x);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.hero-stat { text-align: right; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 600;
  color: var(--gold); line-height: 1;
}
.hero-stat-label {
  font-size: .65rem; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(245,240,232,.4);
}

/* ── Divider line ───────────────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: 1rem;
  padding-block: 1rem;
}
.divider-line { flex: 1; height: 1px; background: var(--line); }
.divider-mark {
  width: 6px; height: 6px;
  border: 1px solid var(--gold); transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Section header ─────────────────────────────────────────── */
.section-kicker {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600; line-height: 1.05;
  color: var(--ink); max-width: 22ch;
}
.section-title em { font-style: italic; color: var(--ink-3); }
.section-title--light { color: var(--cream); }
.section-title--light em { color: rgba(245,240,232,.5); }
.section-desc {
  max-width: 50ch; font-size: .95rem;
  color: var(--ink-3); line-height: 1.7; margin-top: 1rem;
}

/* ── Servicios ──────────────────────────────────────────────── */
.servicios {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--bg);
}

.servicios-header {
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.servicio-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .3s ease;
  overflow: hidden;
}
.servicio-card::before {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 100%;
  height: 2px; background: var(--gold);
  transition: right .4s var(--ease-out);
}
.servicio-card:hover { background: var(--bg-2); }
.servicio-card:hover::before { right: 0; }

.servicio-num {
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 600;
  color: rgba(20,18,14,.06);
  line-height: 1; margin-bottom: -.5rem;
  user-select: none;
}
.servicio-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600;
  color: var(--ink); margin-bottom: 1.25rem;
  line-height: 1.2;
}
.servicio-items {
  display: flex; flex-direction: column; gap: .6rem;
}
.servicio-item {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .82rem; color: var(--ink-3); line-height: 1.45;
}
.servicio-item::before {
  content: "—";
  color: var(--gold); flex-shrink: 0;
  font-size: .75rem; margin-top: .05rem;
}

/* ── Por qué nosotros ───────────────────────────────────────── */
.valores {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--bg-dark);
  position: relative; overflow: hidden;
}
.valores::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .03; pointer-events: none;
}

.valores-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.valores-text { position: relative; z-index: 1; }
.valores-text .section-desc {
  color: rgba(245,240,232,.55);
}

.valores-list {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  position: relative; z-index: 1;
}
.valor-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.valor-item:last-child { border-bottom: none; padding-bottom: 0; }
.valor-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem;
}
.valor-text h4 {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream); margin-bottom: .3rem;
}
.valor-text p {
  font-size: .85rem; color: rgba(245,240,232,.5); line-height: 1.55;
}

.valores-nums {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 2rem;
}
.valor-num-item {
  padding: 2rem 2.5rem;
  border: 1px solid var(--line-dark);
  background: rgba(245,240,232,.03);
  transition: border-color .3s ease, background .3s ease;
}
.valor-num-item:hover {
  border-color: var(--gold);
  background: rgba(184,151,42,.05);
}
.valor-big-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600; color: var(--gold);
  line-height: 1; margin-bottom: .4rem;
}
.valor-num-label {
  font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(245,240,232,.4);
}

/* ── Propiedades MIN link ───────────────────────────────────── */
.sister {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sister-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.sister-text {}
.sister-tag {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .5rem;
}
.sister-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600; color: var(--ink); line-height: 1.1;
}
.sister-sub {
  font-size: .88rem; color: var(--ink-3); margin-top: .5rem;
}
.sister-btn {
  display: inline-flex; align-items: center; gap: .75rem;
  background: var(--ink); color: var(--cream);
  padding: 1rem 2rem;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
  transition: background .25s ease;
  flex-shrink: 0;
}
.sister-btn:hover { background: var(--gold); color: var(--bg-dark); }
.sister-btn svg { width: 14px; height: 14px; }

/* ── Contacto ───────────────────────────────────────────────── */
.contacto {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--bg);
}
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contacto-info {}
.contacto-channels {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.contacto-channel {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color .25s ease;
}
.contacto-channel:hover { border-color: var(--gold); }
.channel-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--gold);
  background: var(--bg);
}
.channel-icon--wsp {
  border-color: #25d366; color: #25d366;
}
.channel-label {
  font-size: .65rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .15rem;
}
.channel-value {
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.channel-value--wsp { color: #25d366; font-weight: 600; }

/* Form */
.form-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600; color: var(--ink);
  margin-bottom: 1.75rem;
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group--full { grid-column: 1 / -1; }
.form-label {
  font-size: .7rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.form-input, .form-select, .form-textarea {
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--ink); padding: .8rem 1rem;
  font: inherit; font-size: .9rem;
  outline: none; transition: border-color .25s ease; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-3); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-submit {
  grid-column: 1 / -1; width: 100%;
  background: var(--ink); color: var(--cream);
  padding: 1rem 2rem; font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; border: none;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  margin-top: .5rem;
  transition: background .25s ease, transform .2s ease;
}
.form-submit:hover { background: var(--gold); color: var(--bg-dark); transform: translateY(-2px); }
.form-submit.is-sent { background: #2d6a4f; color: #fff; pointer-events: none; }
.form-success {
  display: none; padding: 1.25rem;
  border: 1px solid var(--gold);
  background: rgba(184,151,42,.06);
  text-align: center; margin-top: 1rem;
  font-size: .88rem; color: var(--ink-2);
}
.form-success.is-visible { display: block; }
.form-success strong { color: var(--gold); }

/* ── WhatsApp float ─────────────────────────────────────────── */
.wsp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.wsp-float:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,.5); }
.wsp-float::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(37,211,102,.3);
  animation: wspPulse 2.5s ease-in-out infinite;
}
@keyframes wspPulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%       { transform: scale(1.25); opacity: 0; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(245,240,232,.08);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer-copy {
  font-size: .75rem; color: rgba(245,240,232,.3); letter-spacing: .05em;
}
.footer-links {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.footer-links a {
  font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(245,240,232,.3);
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--gold); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .valores-inner { grid-template-columns: 1fr; }
  .valores-nums { grid-template-columns: repeat(3, 1fr); flex-direction: row; }
  .contacto-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }
  .servicios-grid { grid-template-columns: 1fr; }
  .valores-nums { flex-direction: column; }
  .hero-stats { display: none; }
  .sister-inner { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: 1; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
