/* =====================================================
   COMPONENTS.CSS — Sistema estructural reutilizable
   Extraído de edinsel_landing/index.html
   Vanilla CSS. Sin dependencias. Retemable via :root.
   ===================================================== */


/* ─── 0. RESET MÍNIMO ────────────────────────────── */

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


/* ─── 1. DESIGN TOKENS ───────────────────────────── */
/*
   Cambiá estos valores para retematizar todo el sistema
   sin tocar ningún componente.
*/

:root {
  /* Paleta */
  --dark:             #0e0e0c;
  --dark-2:           #171714;
  --dark-footer:      #090908;
  --light:            #f6f4f0;
  --light-2:          #edeae3;
  --accent:           #5c90c8;
  --accent-hover:     #4a7db8;
  --accent-dim:       rgba(92, 144, 200, 0.12);

  /* Texto */
  --text-dark:        #1c1c1a;
  --text-muted:       #6b6b68;
  --text-light:       #f0ede6;
  --text-light-muted: #c8c5bc;

  /* Bordes / divisores */
  --border-dark:      rgba(255, 255, 255, 0.15);
  --border-dark-soft: rgba(255, 255, 255, 0.10);
  --border-light:     rgba(28, 28, 26, 0.12);
  --border-light-soft:rgba(28, 28, 26, 0.10);

  /* Tipografía */
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Pesos canónicos */
  --w-light:  300;
  --w-reg:    400;
  --w-med:    500;
  --w-semi:   600;

  /* Escala tipográfica (fluida, cuando aplica) */
  --fs-display:   clamp(2.8rem, 6vw, 5.5rem);   /* Hero headline */
  --fs-h2:        clamp(2rem, 3.5vw, 2.9rem);   /* Section headline */
  --fs-h2-xl:     clamp(1.75rem, 4vw, 3rem);    /* Pivot statement */
  --fs-h3:        1.35rem;                      /* Card titles */
  --fs-quote:     clamp(1.2rem, 2vw, 1.5rem);   /* Callout */
  --fs-body:      1rem;
  --fs-body-sm:   0.9rem;
  --fs-body-xs:   0.85rem;
  --fs-sub:       clamp(0.95rem, 1.5vw, 1.1rem);
  --fs-eyebrow:   0.68rem;
  --fs-label:     0.62rem;
  --fs-micro:     0.6rem;
  --fs-num-big:   3rem;

  /* Numbered list agrandado (vaciado) */
  --fs-xlist:     clamp(1.6rem, 3.5vw, 2.6rem);

  /* Letter spacing canónico */
  --ls-eyebrow:   0.22em;
  --ls-label:     0.20em;
  --ls-nav:       0.14em;
  --ls-btn:       0.13em;

  /* Layout */
  --max-w:      1100px;
  --pad-x:      clamp(1.5rem, 5vw, 4rem);
  --section-py: clamp(5rem, 10vw, 9rem);

  /* Grid blueprint */
  --grid-size:       72px;
  --grid-opacity:    rgba(255, 255, 255, 0.025);
  --grid-opacity-2:  rgba(255, 255, 255, 0.02);

  /* Transiciones */
  --t-fast: 0.2s;
  --t-med:  0.35s;
}


/* ─── 2. BASE ────────────────────────────────────── */

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  font-weight: var(--w-light);
  background: var(--light);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}


/* ─── 3. UTILIDADES ──────────────────────────────── */

.u-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Etiqueta de sección (eyebrow) */
.u-eyebrow {
  font-size: var(--fs-label);
  font-weight: var(--w-med);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* Titular de sección (serif ligero) */
.u-headline {
  font-family: var(--f-serif);
  font-size: var(--fs-h2);
  font-weight: var(--w-light);
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

/* Cuerpo de texto editorial */
.u-body {
  font-size: var(--fs-body);
  font-weight: var(--w-light);
  line-height: 1.85;
  color: var(--text-dark);
}
.u-body p + p { margin-top: 1.25rem; }
.u-body em    { font-style: italic; }

/* Variante sobre fondo oscuro */
.is-dark .u-headline { color: var(--text-light); }
.is-dark .u-body     { color: var(--text-light-muted); }


/* ─── 4. SECTION WRAPPERS ────────────────────────── */
/*
   Dos fondos canónicos. Cualquier componente vive
   dentro de uno de estos contenedores.
*/

.section {
  padding: var(--section-py) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section--light   { background: var(--light); }
.section--light-2 { background: var(--light-2); }
.section--dark    { background: var(--dark); }
.section--dark-2  { background: var(--dark-2); }


/* ─── 5. BLUEPRINT GRID (fondo geométrico) ───────── */
/*
   Úselo como background-layer de cualquier .section--dark.
   Simula cuadrícula de plano arquitectónico.
*/

.blueprint-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-opacity) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-opacity) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
}
.blueprint-grid--soft::before {
  background-image:
    linear-gradient(var(--grid-opacity-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-opacity-2) 1px, transparent 1px);
}

/* Resplandor puntual opcional (hero) */
.blueprint-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 72% 48%, rgba(160,130,90,0.08) 0%, transparent 62%);
  pointer-events: none;
}


/* ─── 6. BOTONES ─────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: var(--w-reg);
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--text-light);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--solid:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Botón sobre fondo claro */
.btn--on-light {
  color: var(--text-dark);
  border-color: rgba(28, 28, 26, 0.25);
}
.btn--on-light:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

/* Link con subrayado tipográfico (ghost) */
.btn--link {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding: 0 0 2px;
  transition: opacity var(--t-fast);
}
.btn--link:hover { opacity: 0.65; }


/* ─── 7. HERO ────────────────────────────────────── */
/*
   Componente 01. Hero = eyebrow + headline + sub + CTA.
   Text-agnostic.
*/

.c-hero {
  min-height: 100svh;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem var(--pad-x) 6rem;
}
.c-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.c-hero__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: var(--w-med);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.c-hero__headline {
  font-family: var(--f-serif);
  font-size: var(--fs-display);
  font-weight: var(--w-light);
  line-height: 1.07;
  color: var(--text-light);
  max-width: 800px;
  margin-bottom: 2.25rem;
}
.c-hero__sub {
  font-size: var(--fs-sub);
  font-weight: var(--w-light);
  color: var(--text-light-muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

/* Indicador de scroll (opcional) */
.c-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.c-hero__scroll span {
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.c-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: pulse-line 2.2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.25; transform: scaleY(0.7); }
  50%      { opacity: 1;    transform: scaleY(1);   }
}


/* ─── 8. LARGE NUMBERED LIST ─────────────────────── */
/*
   Componente 04. Lista con cada línea prominente,
   separadas por borde fino. Con pivote final opcional.
*/

.c-xlist { margin-bottom: 3rem; }
.c-xlist__line {
  font-family: var(--f-serif);
  font-size: var(--fs-xlist);
  font-weight: var(--w-light);
  color: var(--text-light-muted);
  line-height: 1.4;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-dark-soft);
  transition: color 0.25s;
  cursor: default;
}
.c-xlist__line:hover { color: var(--text-light); }

/* Pivote final — declaración resolutoria */
.c-xlist__pivot { padding-top: 2.75rem; }
.c-xlist__pivot-text {
  font-family: var(--f-serif);
  font-size: var(--fs-h2-xl);
  font-weight: var(--w-light);
  color: var(--text-light);
  line-height: 1.25;
  max-width: 740px;
}
.c-xlist__pivot-text em {
  font-style: italic;
  color: var(--accent);
}


/* ─── 9. CARD GRID ───────────────────────────────── */
/*
   Componente 05. Grid con gap de 1px que simula
   divisor compartido. 2/3/4 columnas según variante.
*/

.c-cardgrid {
  display: grid;
  gap: 1px;
  background: var(--border-light);
}
.c-cardgrid--2 { grid-template-columns: repeat(2, 1fr); }
.c-cardgrid--3 { grid-template-columns: repeat(3, 1fr); }
.c-cardgrid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .c-cardgrid--3, .c-cardgrid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .c-cardgrid--2, .c-cardgrid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .c-cardgrid--4 { grid-template-columns: 1fr; }
}

.c-card {
  background: var(--light);
  padding: 2.5rem 2rem;
  transition: background var(--t-fast);
}
.c-card:hover { background: var(--light-2); }

/* Si queda un ítem huérfano en grid-2, ocupa fila entera */
.c-cardgrid--2 .c-card:last-child:nth-child(odd) { grid-column: span 2; }
@media (max-width: 640px) {
  .c-cardgrid--2 .c-card:last-child:nth-child(odd) { grid-column: span 1; }
}

.c-card__num {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--accent);
  margin-bottom: 1rem;
}
.c-card__title {
  font-family: var(--f-serif);
  font-size: var(--fs-h3);
  font-weight: var(--w-reg);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}
.c-card__body {
  font-size: 0.88rem;
  font-weight: var(--w-light);
  line-height: 1.75;
  color: var(--text-muted);
}

/* Variante sobre fondo light-2 */
.section--light-2 .c-card          { background: var(--light-2); }
.section--light-2 .c-card:hover    { background: var(--light); }


/* ─── 10. TWO-COLUMN COMPARISON ──────────────────── */
/*
   Componente 06. Layout de dos columnas 1fr / 1fr
   con gap amplio. Útil para texto vs callout,
   descripción vs filtro, etc.
*/

.c-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .c-duo { grid-template-columns: 1fr; gap: 3rem; }
}

/* Variante con columna derecha alineada al final (e3 header) */
.c-duo--end { align-items: end; gap: 4rem; margin-bottom: 4rem; }
@media (max-width: 768px) {
  .c-duo--end { grid-template-columns: 1fr; gap: 2rem; }
}


/* ─── 11. HIGHLIGHTED STATEMENT / CALLOUT ────────── */
/*
   Componente 12. Cita destacada.
*/

.c-callout {
  background: var(--dark);
  padding: 2.75rem 2.5rem;
  border-left: 3px solid var(--accent);
}
.c-callout__text {
  font-family: var(--f-serif);
  font-size: var(--fs-quote);
  font-weight: var(--w-light);
  font-style: italic;
  color: var(--text-light);
  line-height: 1.55;
}

/* Variante centrada para statement grande */
.c-statement {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--f-serif);
  font-size: var(--fs-h2-xl);
  font-weight: var(--w-light);
  line-height: 1.25;
  color: var(--text-dark);
}
.is-dark .c-statement { color: var(--text-light); }
.c-statement em { color: var(--accent); font-style: italic; }


/* ─── 12. ENTRE-CARD (tarjeta oscura bordeada) ───── */
/*
   Tarjeta editorial sobre fondo oscuro.
   Uso típico: concepto destacado al lado de texto.
*/

.c-entrecard {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  padding: 2.5rem;
  transition: border-color var(--t-fast);
}
.c-entrecard:hover { border-color: rgba(92, 144, 200, 0.4); }

.c-entrecard__label {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.c-entrecard__title {
  font-family: var(--f-serif);
  font-size: 2rem;
  font-weight: var(--w-light);
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1;
}
.c-entrecard__body {
  font-size: var(--fs-body-sm);
  font-weight: var(--w-light);
  color: var(--text-light-muted);
  line-height: 1.8;
}


/* ─── 13. FILTER LIST (qualifying list) ──────────── */
/*
   Lista de líneas sobrias, última en serif itálica
   como pivote / resolución.
*/

.c-filterlist { list-style: none; }
.c-filterlist li {
  font-size: var(--fs-body-sm);
  font-weight: var(--w-light);
  color: var(--text-muted);
  line-height: 1.6;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light-soft);
}
.c-filterlist li:last-child {
  border-bottom: none;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-dark);
  padding-top: 1.5rem;
}


/* ─── 14. TIMELINE / NUMBERED STEPS ──────────────── */
/*
   Componente 07. Pasos horizontales con número grande
   muy tenue. Se apoya en .c-cardgrid para el layout.
*/

.c-step {
  background: var(--light);
  padding: 2.25rem 1.75rem;
}
.c-step__num {
  font-family: var(--f-serif);
  font-size: var(--fs-num-big);
  font-weight: var(--w-light);
  color: rgba(28, 28, 26, 0.1);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.c-step__title {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-weight: var(--w-reg);
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}
.c-step__body {
  font-size: var(--fs-body-xs);
  font-weight: var(--w-light);
  color: var(--text-muted);
  line-height: 1.75;
}

/* Nota al pie del timeline */
.c-step-note {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light-soft);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: var(--fs-body);
  color: var(--text-muted);
  max-width: 600px;
}


/* ─── 15. MULTI-TIER CTA ─────────────────────────── */
/*
   Componente 08. Columna izq: botón solid + micro.
   Columna der: lista de contact-links (bajo compromiso).
*/

.c-contactlinks {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.c-contactlink {
  display: block;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: var(--text-light);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.c-contactlink:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.c-contactlink__label {
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
}
.c-contactlink__value {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-weight: var(--w-light);
}

.c-cta-micro {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-light-muted);
  line-height: 1.7;
}
.c-cta-sub {
  font-size: var(--fs-body);
  font-weight: var(--w-light);
  color: var(--text-light-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}


/* ─── 16. NAV (institucional) ────────────────────── */

.c-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 14, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background var(--t-med), box-shadow var(--t-med);
}
.c-nav.is-scrolled {
  background: rgba(14, 14, 12, 0.97);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}
.c-nav__logo {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-weight: var(--w-reg);
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--t-fast);
}
.c-nav__logo:hover { color: var(--accent); }
.c-nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.c-nav__links a {
  font-size: 0.72rem;
  font-weight: var(--w-reg);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-light-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.c-nav__links a:hover { color: var(--text-light); }

/* Variante "demo" para galería, no fixed */
.c-nav--static { position: static; background: var(--dark); }


/* ─── 17. FOOTER ─────────────────────────────────── */

.c-footer {
  background: var(--dark-footer);
  padding: 2rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.c-footer__logo {
  font-family: var(--f-serif);
  font-size: 0.95rem;
  color: var(--text-light-muted);
}
.c-footer__copy {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}
.c-footer__links {
  display: flex;
  gap: 2rem;
}
.c-footer__links a {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--t-fast);
}
.c-footer__links a:hover { color: var(--text-light); }


/* ─── 18. TYPOGRAPHIC SEPARATOR ──────────────────── */
/*
   Componente 11. Divisor ornamental entre secciones.
   Tres variantes: línea fina, marca serif, trio de marcas.
*/

.c-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 0;
}
.c-sep__line {
  flex: 0 0 4rem;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}
.c-sep__mark {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.3em;
}

/* Variante mínima: sólo línea */
.c-sep--line .c-sep__mark { display: none; }
.c-sep--line .c-sep__line { flex: 0 0 8rem; }

/* Sobre fondo oscuro */
.is-dark .c-sep__line { opacity: 0.15; }


/* ─── 19. FADE-IN UTILIDAD ───────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ─── POST CARD (tarjeta con imagen) ─────────────── */

.c-post-card {
  display: flex;
  flex-direction: column;
  background: var(--light);
  text-decoration: none;
  transition: background var(--t-fast);
  overflow: hidden;
}
.c-post-card:hover { background: var(--light-2); }

.c-post-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.c-post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.c-post-card:hover .c-post-card__img img { transform: scale(1.04); }

.c-post-card__body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.c-post-card__cat {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.c-post-card__title {
  font-family: var(--f-serif);
  font-size: var(--fs-h3);
  font-weight: var(--w-reg);
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.c-post-card__excerpt {
  font-size: 0.875rem;
  font-weight: var(--w-light);
  line-height: 1.75;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.5rem;
}
.c-post-card__link {
  font-size: 0.72rem;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
  transition: opacity var(--t-fast);
}
.c-post-card:hover .c-post-card__link { opacity: 0.65; }
