/* ============================================================
   PALIA CONSULTORES — Editorial cálido terracota + beige
   ============================================================ */

:root {
  --paper: #f6efe4;        /* marfil cálido */
  --paper-2: #efe6d5;      /* marfil algo más oscuro */
  --paper-3: #e8dcc4;
  --ink: #2a2320;          /* negro cálido, no puro */
  --ink-2: #5c4e46;        /* café medio */
  --ink-3: #8b7969;        /* café claro */
  --terracota: #b0533a;    /* terracota principal */
  --terracota-deep: #8d3d28;
  --terracota-soft: #c97a5f;
  --line: rgba(42,35,32,0.14);
  --line-soft: rgba(42,35,32,0.06);

  --pad: clamp(1.2rem, 4vw, 4rem);
  --maxw: 1200px;
  --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(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em, i { font-style: italic; }

/* ============================================================
   SPLASH
   ============================================================ */
.splash {
  position: fixed; inset: 0; z-index: 999;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .8s 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(160px, 30vw, 260px);
  height: auto;
  animation: logoFade 1s var(--ease) both;
}
@keyframes logoFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.splash-line {
  height: 1px; width: 0; background: var(--terracota);
  margin-top: 1.4rem;
  animation: lineGrow 1.5s var(--ease) .3s forwards;
}
@keyframes lineGrow { to { width: 140px; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem var(--pad);
  background: transparent;
  transition: background .35s var(--ease), padding .25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(246, 239, 228, 0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding-block: 0.8rem;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600; font-size: 1.35rem;
  color: var(--ink);
}
.nav-logo { height: 42px; width: auto; transition: height .3s var(--ease); }
.nav.is-scrolled .nav-logo { height: 34px; }
.brand-txt em { color: var(--terracota); font-weight: 500; margin-left: 0.2em; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-links a {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ink-2);
  transition: color .25s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--terracota); }
.nav-cta {
  background: var(--terracota); color: var(--paper);
  padding: 0.6rem 1.2rem; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.02em;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav-cta:hover { background: var(--terracota-deep); transform: translateY(-1px); color: var(--paper); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============================================================
   HERO — editorial dos columnas
   ============================================================ */
.hero {
  padding: 8.5rem var(--pad) 3rem;
  background:
    radial-gradient(80% 60% at 20% 30%, rgba(201,122,95,0.10), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-wrap {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem; color: var(--terracota);
  margin-bottom: 1.6rem; letter-spacing: 0.02em;
}
.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.05; letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero-title em {
  color: var(--terracota);
  font-style: italic;
  font-weight: 500;
}
.hero-lead {
  font-size: 1.1rem;
  max-width: 46ch;
  color: var(--ink-2);
  margin-bottom: 2rem;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn-solid {
  background: var(--terracota); color: var(--paper);
}
.btn-solid:hover { background: var(--terracota-deep); transform: translateY(-2px); color: var(--paper); }
.btn-line {
  border-color: var(--ink); color: var(--ink); background: transparent;
}
.btn-line:hover { border-color: var(--terracota); color: var(--terracota); transform: translateY(-2px); }

/* Tarjeta lateral con imagen — recuadro editorial */
.hero-card {
  position: relative;
  padding: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(42,35,32,0.15);
  transform: rotate(-1deg);
}
.hero-card-frame {
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-card-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.12) saturate(1.02) contrast(0.98);
}
.hero-card-meta {
  padding: 1rem 0.4rem 0.2rem;
  text-align: center;
}
.hero-card-quote {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 1.15rem;
  color: var(--ink); margin-bottom: 0.35rem;
}
.hero-card-cite {
  font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Marquee editorial */
.hero-marquee {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: center; align-items: center;
  gap: 1.2rem; flex-wrap: wrap;
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--ink-2);
}
.hero-marquee span:nth-child(even) { color: var(--terracota); }

@media (max-width: 820px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-card { max-width: 380px; margin-inline: auto; transform: none; }
}

/* ============================================================
   SECTION genérica
   ============================================================ */
.section {
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
  max-width: var(--maxw); margin: 0 auto;
}
.section-title { margin-bottom: 3rem; text-align: center; }
.folio {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 0.95rem;
  color: var(--terracota); letter-spacing: 0.14em;
  margin-bottom: 0.7rem;
}
.section-title h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  color: var(--ink);
}
.deck {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-2);
  margin-top: 0.8rem;
  max-width: 50ch; margin-inline: auto;
}

/* ============================================================
   PRÁCTICAS
   ============================================================ */
.practicas-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.practica {
  background: var(--paper);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  transition: background .25s var(--ease);
}
.practica:hover { background: var(--paper-2); }
.pract-no {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 0.95rem;
  color: var(--terracota); margin-bottom: 0.8rem;
}
.practica h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600; font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  color: var(--ink); margin-bottom: 0.8rem;
}
.practica p { color: var(--ink-2); font-size: 1rem; }

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

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pull {
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
  text-align: center;
  background: var(--paper-2);
  border-block: 1px solid var(--line);
  max-width: 900px; margin: 0 auto;
}
.pull-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 6rem; line-height: 0.5;
  color: var(--terracota); margin-bottom: 1rem;
}
.pull blockquote {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400; font-style: italic;
  font-size: clamp(1.6rem, 3.8vw, 2.8rem);
  line-height: 1.25; color: var(--ink);
  max-width: 22ch; margin: 0 auto;
}
.pull-cite {
  font-size: 0.85rem; color: var(--ink-3); letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 1.5rem;
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.about {
  background: var(--paper);
}
.about-cols {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.about-txt p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 1.2rem; max-width: 55ch; }
.about-txt p:last-child { margin-bottom: 0; }
.about-txt strong { color: var(--ink); font-weight: 600; }
.about-txt em { color: var(--terracota); font-style: italic; }
.dropcap::first-letter {
  font-family: "Cormorant Garamond", serif;
  font-size: 4.5rem; line-height: 0.85;
  float: left; padding: 0.05em 0.15em 0 0;
  color: var(--terracota); font-weight: 600;
}

.about-side {
  background: var(--paper-2);
  padding: 1.6rem 1.5rem;
  border-left: 3px solid var(--terracota);
}
.side-tag {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 0.9rem;
  color: var(--terracota); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 1.2rem;
}
.side-list { list-style: none; margin-bottom: 1.4rem; }
.side-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  font-size: 0.95rem;
}
.side-list li:last-child { border-bottom: 0; }
.side-list li span { color: var(--terracota); margin-right: 0.3rem; }

.side-facts {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.side-facts div {
  font-size: 0.85rem; color: var(--ink);
  font-family: "Inter", sans-serif;
}
.side-facts div span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--terracota); font-size: 0.75rem;
  margin-bottom: 0.15rem;
}

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

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { background: var(--paper-2); }
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.5rem);
}
.contact-info { display: flex; flex-direction: column; }
.crow {
  display: grid; grid-template-columns: 110px 1fr auto;
  gap: 1rem; align-items: center;
  padding: 1.4rem 0.4rem;
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), padding-left .25s var(--ease);
}
.crow.crow-static { align-items: start; }
a.crow:hover { background: rgba(176,83,58,0.05); padding-left: 0.8rem; }
.crow-k {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 0.95rem;
  color: var(--terracota); letter-spacing: 0.04em;
}
.crow-v {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500; font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--ink); line-height: 1.35;
}
.crow-static .crow-v {
  font-family: "Inter", sans-serif; font-weight: 400;
  font-size: 0.95rem; color: var(--ink-2);
}
.crow-a { color: var(--terracota); font-size: 1.3rem; }

.contact-map {
  border: 1px solid var(--line);
  overflow: hidden; min-height: 320px;
  filter: sepia(0.15) saturate(0.9) contrast(1.02);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

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

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 5vw, 5rem) var(--pad) 2rem;
}
.foot-wrap {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246,239,228,0.15);
}
.foot-logo { height: 90px; width: auto; filter: brightness(1.6); }
.foot-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem;
  color: var(--paper);
}
.foot-h {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 1rem;
  color: var(--terracota-soft); margin-bottom: 0.6rem;
}
.foot-cols div p:not(.foot-h) { font-size: 0.92rem; color: var(--paper); opacity: 0.85; }
.foot-legal {
  max-width: var(--maxw); margin: 1.4rem auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem; color: var(--paper); opacity: 0.6;
  letter-spacing: 0.06em; text-transform: uppercase;
}
@media (max-width: 620px) {
  .foot-wrap { grid-template-columns: 1fr; text-align: center; }
  .foot-logo { margin-inline: auto; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.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(42,35,32,0.25);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
