/* ============================================================
   FRAYGAM — Corporativo blanco minimalista + azul marino
   ============================================================ */

:root {
  --white: #ffffff;
  --white-2: #fafafa;
  --white-3: #f2f2f0;
  --ink: #0a1428;         /* azul marino casi negro */
  --ink-2: #2a3548;
  --ink-3: #4d566b;
  --ink-4: #8a92a3;
  --navy: #1e365c;        /* azul marino corporativo */
  --navy-deep: #0a1a35;
  --gold: #b58857;        /* dorado editorial sutil */
  --line: rgba(10,20,40,0.10);
  --line-soft: rgba(10,20,40,0.05);

  --pad: clamp(1.2rem, 4vw, 4rem);
  --maxw: 1280px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 400; line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* SPLASH */
.splash {
  position: fixed; inset: 0; z-index: 999;
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .7s var(--ease), clip-path .8s var(--ease);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; } }
.splash-logo {
  width: clamp(120px, 22vw, 180px);
  filter: brightness(0.15) invert(0);
  animation: fadeIn .8s var(--ease) both;
}
.splash-tag {
  font-family: "Cormorant", serif;
  font-style: italic; font-size: 1rem;
  color: var(--navy); margin-top: 1.2rem;
  letter-spacing: 0.06em;
  animation: fadeIn .8s var(--ease) .2s both;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: padding .25s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { border-bottom-color: var(--line); padding-block: 0.75rem; }
.nav-brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--ink);
}
.nav-logo { height: 32px; width: auto; filter: brightness(0.15) invert(0); }
.brand-txt {
  font-family: "DM Sans", sans-serif;
  font-weight: 700; letter-spacing: 0.20em;
  font-size: 0.98rem; color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-links a {
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
}
.nav-links a:not(.nav-cta):hover { color: var(--navy); }
.nav-cta {
  background: var(--ink); color: var(--white);
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  transition: background .25s var(--ease);
}
.nav-cta:hover { background: var(--navy-deep); color: var(--white); }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* HERO — minimalista limpio */
.hero {
  padding: 9rem var(--pad) 3rem;
  background: var(--white);
}
.hero-frame {
  max-width: var(--maxw); margin: 0 auto;
}
.hero-eyebrow {
  font-family: "Cormorant", serif;
  font-style: italic; font-size: 0.95rem;
  color: var(--navy); margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.hero-h {
  font-family: "Cormorant", serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 3rem;
  text-wrap: balance;
}
.hero-h em { color: var(--navy); font-style: italic; font-weight: 500; }
.hero-two {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  align-items: start;
}
.hero-lead {
  font-size: 1.05rem; color: var(--ink-2);
  max-width: 55ch; margin-bottom: 1.6rem;
  line-height: 1.65;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.10em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }

.hero-list {
  list-style: none;
  border-left: 3px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.4rem;
}
.hero-list li {
  padding: 0.45rem 0;
  font-family: "Cormorant", serif;
  font-size: 1.2rem;
  color: var(--ink);
  border-bottom: 1px dashed var(--line-soft);
}
.hero-list li:last-child { border-bottom: 0; }

.hero-ruler {
  max-width: var(--maxw); margin: 3rem auto 0;
  padding: 1rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3);
}
.hero-ruler span:nth-child(even) { color: var(--gold); }

@media (max-width: 820px) { .hero-two { grid-template-columns: 1fr; } }

/* SECTION */
.section { padding: clamp(4rem, 8vw, 7rem) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.sec-h { text-align: center; margin-bottom: 3rem; }
.sec-h-l { text-align: left; }
.sec-mark {
  font-family: "Cormorant", serif;
  font-size: 2.5rem; color: var(--gold);
  line-height: 0.4; margin-bottom: 0.8rem;
}
.sec-h h2 {
  font-family: "Cormorant", serif;
  font-weight: 500; font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05; color: var(--ink);
}
.sec-lead {
  font-family: "Cormorant", serif;
  font-style: italic; font-size: 1.1rem;
  color: var(--ink-2); max-width: 50ch;
  margin: 0.6rem auto 0;
}

/* ÁREAS - lista firma legal */
.areas-list {
  border-top: 1px solid var(--ink);
}
.area {
  display: grid;
  grid-template-columns: 80px 1fr 130px;
  gap: 1.5rem;
  padding: 2rem 0.5rem;
  align-items: start;
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), padding-left .25s var(--ease);
}
.area:hover { background: var(--white-2); padding-left: 1rem; }
.area-no {
  font-family: "Cormorant", serif;
  font-weight: 500; font-size: 2.5rem;
  color: var(--gold); line-height: 1;
}
.area-body h3 {
  font-family: "Cormorant", serif;
  font-weight: 600; font-size: 1.5rem;
  color: var(--ink); margin-bottom: 0.5rem;
}
.area-body p { color: var(--ink-2); font-size: 0.98rem; max-width: 60ch; }
.area-tag {
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--navy);
  align-self: start;
  justify-self: end;
}
@media (max-width: 720px) {
  .area { grid-template-columns: 60px 1fr; }
  .area-tag { grid-column: 2 / -1; justify-self: start; margin-top: 0.5rem; }
}

/* NOSOTROS */
.about { background: var(--white-2); }
.about-cols {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 3rem;
}
.about-copy .lead {
  font-family: "Cormorant", serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ink); line-height: 1.4;
  margin-bottom: 1.4rem;
}
.about-copy .lead strong { color: var(--navy); font-weight: 500; }
.about-copy p { color: var(--ink-2); font-size: 1rem; margin-bottom: 1rem; max-width: 55ch; }

.about-firm {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--white);
}
.firm-row {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem; color: var(--ink);
}
.firm-row:last-child { border-bottom: 0; }
.firm-row span {
  font-family: "Cormorant", serif;
  font-style: italic;
  color: var(--gold);
  font-size: 0.9rem;
}

/* Valores */
.values {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.val {
  padding: 1.4rem 1.2rem;
  border-left: 2px solid var(--gold);
  background: var(--white);
}
.val-mark { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.5rem; display: block; }
.val h4 {
  font-family: "Cormorant", serif;
  font-weight: 600; font-size: 1.15rem;
  color: var(--ink); margin-bottom: 0.35rem;
}
.val p { color: var(--ink-2); font-size: 0.88rem; }

@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .about-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* CONTACTO */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.cbox {
  padding: 1.5rem 1.3rem;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex; flex-direction: column; gap: 0.4rem;
  min-height: 140px; position: relative;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
a.cbox:hover { transform: translateY(-3px); border-color: var(--navy); }
.cbox-static { background: var(--white-2); }
.c-k {
  font-family: "Cormorant", serif;
  font-style: italic; font-size: 0.9rem;
  color: var(--gold);
}
.c-v {
  font-family: "DM Sans", sans-serif;
  font-weight: 500; font-size: 1.05rem;
  color: var(--ink); line-height: 1.35;
}
.c-a { position: absolute; right: 1.3rem; bottom: 1.3rem; color: var(--navy); font-size: 1.3rem; }
.c-map {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  overflow: hidden; min-height: 340px;
}
.c-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(0.5); }

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

/* FOOTER */
.footer {
  background: var(--ink); color: var(--white);
  padding: clamp(3rem, 5vw, 4rem) var(--pad) 1.6rem;
}
.foot-wrap {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr;
  gap: 2rem; align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.foot-logo { height: 48px; filter: brightness(2.5) invert(1); }
.foot-h {
  font-family: "Cormorant", serif; font-style: italic;
  font-size: 1.05rem; color: var(--gold);
  margin-bottom: 0.4rem;
}
.foot-info p { color: var(--white); font-size: 0.9rem; opacity: 0.88; margin-bottom: 0.2rem; }
.foot-legal {
  max-width: var(--maxw); margin: 1rem auto 0;
  font-size: 0.78rem; color: var(--white); opacity: 0.55;
  letter-spacing: 0.10em; text-align: center; text-transform: uppercase;
}
@media (max-width: 620px) { .foot-wrap { grid-template-columns: 1fr; text-align: center; } .foot-logo { margin-inline: auto; } }

/* WA */
.wa-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #062b13;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(10,20,40,0.35);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
