/* ═══════════════════════════════════════════════════════
   base.css — Tokens, reset, tipografía, utilidades
   Irene Izaguerri Design System
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  /* Primitives */
  --cafe:          #343434;
  --coconut:       #FFFFFF;

  --caramelo-100: #F9F6F3;
  --caramelo-300: #E3D1C3;
  --caramelo-500: #CCCC99;
  --caramelo-700: #899A71;
  --caramelo-900: #4F684B;

  --pistacho-100: #E8EDE7;
  --pistacho-300: #C0CFBD;
  --pistacho-500: #899A71;
  --pistacho-700: #4F684B;
  --pistacho-900: #31412F;

  --higo-100: #EDE7EA;
  --higo-300: #CEBFC5;
  --higo-500: #7A5C68;
  --higo-700: #5C4450;
  --higo-900: #3F3036;

  --almendra-100: #F9FAFA;
  --almendra-300: #EAEAEB;
  --almendra-500: #DADADC;
  --almendra-700: #A4A3A5;
  --almendra-900: #6E6D6E;

  --caramelo: var(--caramelo-500);
  --pistacho: var(--pistacho-500);
  --higo: var(--higo-500);
  --almendra: var(--almendra-500);

  /* Spacing */
  --sp-xs:  4px;
  --sp-s:   8px;
  --sp-sm:  12px;
  --sp-m:   16px;
  --sp-ml:  24px;
  --sp-l:   32px;
  --sp-xl:  42px;
  --sp-xxl: 64px;

  /* Layout */
  --nav-h:        84px;
  --section-pad:  80px;
  --container:    1180px;

  /* Radius */
  --r-xs: 4px;
  --r-s:  8px;
  --r-m:  16px;

  /* Typography */
  --fd: 'Playfair Display', serif;
  --fp: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fd);
  color: var(--cafe);
  background: #fff;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── LAYOUT ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 16px);
}

/* ── TIPOGRAFÍA ──────────────────────────────────────── */

/* Heading — Playfair Display italic */
.t-xl {
  font-family: var(--fd);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.2;
  color: var(--cafe);
}

.t-l {
  font-style: normal;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  color: var(--cafe);
  font-family: var(--fp);
  letter-spacing:          -5%;
}

.t-m {
  font-family: var(--fd);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  color: var(--cafe);
}

.t-s {
  font-family: var(--fd);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.2;
  color: var(--cafe);
}

.t-xs {
  font-family: var(--fd);
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  color: var(--cafe);
}

/* Pretitle — Poppins Regular uppercase */
.t-pretitle {
  font-family: var(--fp);
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pistacho);
  line-height: 0.5;
}

/* Lead — Poppins Regular */
.t-lead {
  font-family: var(--fd);
  font-size: clamp(18px, 1.5vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--cafe);
  max-width: 50ch;
  font-style: italic;
}

.t-hero-lead {
  font-size: clamp(22px, 1.5vw, 30px);
  font-weight: 500;
  max-width: 860px;
}

/* Body — Poppins */
.t-body {
  font-family: var(--fp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--almendra-900);
}

.t-body-semibold {
  font-family: var(--fp);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--cafe);
}

.t-body-bold {
  font-family: var(--fp);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--cafe);
}

/* Caption — Poppins Regular */
.t-caption {
  font-family: var(--fp);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pistacho);

}

.t-center {
  text-align: center;
}

/* ── SECCIÓN GENÉRICA ────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}

.section-header {
  margin-bottom: var(--sp-l);
  display: flex;
  flex-direction: column;
  gap: var(--sp-m);
}

/* Max-width on titles to avoid overly wide lines — no <br> needed */
.section-header .section-title,
.section-header .page-heading,
.section-header .t-xl,
.section-header .t-l,
.section-header .t-m {
  max-width: 16ch;
}


.section-title {
  font-family: var(--fd);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  color: var(--cafe);
}

/* ── BOTONES ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  border-radius: var(--r-s);
  align-items: center;
  gap: var(--sp-s);
  padding: var(--sp-sm) var(--sp-sm) var(--sp-sm) var(--sp-ml);
  /*border-radius: var(--r-s);*/
  font-family: var(--fp);
  font-size: clamp(1rem, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  border: 2px solid;
}

.btn-light {
  /*display: inline-flex;*/
  /*align-items: center;*/
  /*gap: var(--sp-s);*/
  border-color: var(--coconut);
  /*font-family: var(--fd);*/
  /*font-size: clamp(15px, 1.5vw, 20px);*/
  /*font-weight: 600;*/
  color: var(--coconut);
  background: transparent;
  /*cursor: pointer;*/
  transition: background .2s, color .2s;
}
.btn-light:hover {
  background: var(--higo-500);
  /*color: var(--cafe);*/
}
/*.btn-light:hover .arr path {
  stroke: var(--cafe);
}*/


.btn-primary {
  border-color: var(--cafe);
  background: var(--cafe);
  color: var(--coconut);
}
.btn-primary .arr path { stroke: var(--coconut); }

.btn-primary:hover {
  background: var(--higo);
  border-color: var(--higo);
  /*color: var(--cafe);*/
}
/*.btn-primary:hover .arr path { stroke: var(--cafe); }*/

.btn-secondary {
  border: 2px solid;
  border-color: var(--cafe);
  color: var(--cafe);
}
.btn-secondary:hover {
  background: var(--almendra-500);
  color: var(--cafe);
}
/*.btn-secondary:hover .arr path {
  stroke: var(--higo);
}/*



.arr { width: 21px; height: 24px; flex-shrink: 0; }

/* ── REVEAL ANIMATION ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }



/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
    --section-pad: 48px;
  }
}

/* ── PAGE HERO (compartido por páginas interiores) ───────────────── */
.page-hero-wrap {
  background: var(--caramelo-100);
  position: relative;
  overflow: hidden;
}

.page-hero {
  padding: calc(var(--nav-h) + 10vh) clamp(20px, 4vw, 16px) 15vh;
  max-width: var(--container);
  margin: 0 auto;
    position: relative;
  z-index: 1;
}

.page-hero-vector {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .12;
  pointer-events: none;
  z-index: 0;
}


@media (max-width: 1024px) {
  .page-hero { grid-template-columns: 1fr; }
  .page-hero-vector { width: 70vw; }
}

.page-hero-vector irene-hero-vector {
  width: clamp(280px, 40vw, 800px);
  height: clamp(280px, 40vw, 800px);
}


.page-heading {
  /*font-family: var(--fd);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(40px,5.5vw,54px);
  line-height: 1.2;
  color: var(--cafe);*/

    font-family: var(--fp);
    font-style: normal;
    font-weight: 700;
    font-size: clamp(44px, 6.5vw, 64px);
    line-height: 1.2;
    color: var(--cafe);
    letter-spacing:          -4%;
}

/* ── PAGE HERO INNER (compartido) ───────────────────────── */

.page-hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1025px) {
  .page-hero-text {
  max-width: 70%;
}
}

/* ── STATS (servicios hero) ──────────────────────────────── */