/* ============================================================
   Culturoscope — sitio del estudio
   Sistema visual: manual de marca personal/Culturoscope (v2.1).
   Todos los valores ajustables viven en :root. Para retocar la
   estética, editar ese bloque.
   ============================================================ */

:root {
  /* --- Color base --- */
  --paper:       #f4f6f5;   /* Fondo claro primario (frío) */
  --paper-warm:  #fbfaf6;   /* Fondo claro cálido */
  --cream:       #efe9da;   /* Panel cálido (sección "Sobre mí") */
  --surface:     #ffffff;   /* Tarjetas */
  --ink:         #14181a;   /* Tinta principal */
  --ink-soft:    rgba(20,24,26,.72);  /* Texto secundario */
  --ink-faint:   rgba(20,24,26,.50);  /* Etiquetas tenues */
  --border:      rgba(20,24,26,.10);  /* Bordes UI */

  /* --- Acentos de marca --- */
  --azul:        #1269C7;   /* Greek Blue — acento principal */
  --azul-hover:  #0d52a0;
  --agua:        #1F9C92;   /* Aguamarina — acento secundario */
  --agua-dark:   #18786f;
  --bone:        #e3d9c4;   /* Hueso */

  /* --- "Mar": gradiente del hero y bloques de color (navy → azul → agua) --- */
  --sea-1: #0c2742;
  --sea-2: #1269C7;
  --sea-3: #1F9C92;
  --gradient-sea: linear-gradient(158deg, var(--sea-1) 0%, var(--sea-2) 58%, var(--sea-3) 122%);

  /* --- Texto sobre fondo oscuro/color --- */
  --on-dark:        #f4f6f5;
  --on-dark-soft:   rgba(244,246,245,.82);
  --on-dark-faint:  rgba(244,246,245,.55);

  /* --- Tipografía --- */
  --f-display: 'Geist', system-ui, sans-serif;
  --f-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --f-italic:  'Newsreader', Georgia, serif;
  --f-mono:    'JetBrains Mono', monospace;

  /* --- Espaciado (base 8px) --- */
  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 72px; --space-9: 112px;

  /* --- Layout --- */
  --max-width:    1080px;
  --narrow-width: 680px;
  --header-h:     64px;
  --radius:       14px;

  /* --- Movimiento --- */
  --reveal-delay: 0ms;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================================================
   Base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

/* ============================================================
   Contenedores y secciones
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow { max-width: var(--narrow-width); }

.section { padding-block: var(--space-9); }
.section--warm   { background: var(--paper-warm); }
.section--cream  { background: var(--cream); }
.section--sea    { background: var(--gradient-sea); color: var(--on-dark); }

/* ============================================================
   Cabecera
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(244,246,245,.80);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; cursor: pointer; }
.brand__mark { width: 42px; height: 42px; }

/* Selector de idioma (ES · EN · ΕΛ) */
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: var(--space-4);
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em;
}
.lang-switch a { color: var(--ink-faint); transition: color .15s ease; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { color: var(--azul); }
.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav a {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: color .18s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav__cta { color: var(--azul) !important; }

/* ============================================================
   Hero (bloque de color, triángulo a gran tamaño)
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  margin-top: calc(var(--header-h) * -1);   /* el hero arranca bajo la cabecera translúcida */
  padding-top: var(--header-h);
  background: var(--gradient-sea);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__mark {
  width: clamp(260px, 48vw, 540px);
  height: auto;
  margin-bottom: var(--space-6);
  filter: drop-shadow(0 10px 52px rgba(0,0,0,.32));
}
.hero__title {
  font-size: clamp(2.75rem, 8vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}
.hero__sub {
  margin: var(--space-5) auto 0;
  max-width: 34ch;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--on-dark-soft);
}

/* Indicador de scroll — réplica del de la web de MdA (trazo que fluye) */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-6);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  color: var(--on-dark-faint);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__cue-line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, transparent, rgba(244,246,245,.6));
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%    { transform: scaleY(.2); transform-origin: top; }
  50%   { transform: scaleY(1);  transform-origin: top; }
  50.01%{ transform: scaleY(1);  transform-origin: bottom; }
  100%  { transform: scaleY(.2); transform-origin: bottom; }
}

/* ============================================================
   Intro
   ============================================================ */

.lead {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0;
}
.lead::first-letter { } /* gancho de personalización si hiciera falta */

/* ============================================================
   Encabezado de sección
   ============================================================ */

.section__head { margin-bottom: var(--space-7); }
.eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: var(--space-4);
}
.section--sea .eyebrow { color: var(--on-dark); opacity: .85; }
.section__title {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 400;
}
/* Subtexto introductorio bajo el título de sección */
.section__lead {
  margin: var(--space-5) 0 0;
  max-width: 62ch;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ============================================================
   Galería de proyectos (showroom visual)
   ============================================================ */

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(12,39,66,.14);
}
.card__wrap { display: block; height: 100%; }
.card__cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.card__cover img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .5s var(--ease);
}
.card:hover .card__cover img { transform: scale(1.03); }
/* Portada de color para proyectos sin miniatura todavía */
.card__cover--music {
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-sea);
  border-bottom: none;
}
.card__cover-mark { width: clamp(72px, 14vw, 120px); height: auto; opacity: .92; }
.card:hover .card__cover--music .card__cover-mark { transform: none; }

.card__body { padding: var(--space-6); }
.card__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  margin-bottom: var(--space-3);
}
.card__desc { color: var(--ink-soft); margin: 0 0 var(--space-5); }
.card__foot {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--space-3);
}
.tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}
.card__cta {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--azul);
  white-space: nowrap;
}
.card__cta span { display: inline-block; margin-left: 2px; transition: margin-left .18s ease; }
.card:hover .card__cta span { margin-left: 8px; }

/* ============================================================
   Sobre mí
   ============================================================ */

.about__prose p {
  font-size: 1.18rem;
  line-height: 1.7;
  margin: 0 0 var(--space-5);
}
.about__prose p:last-child { margin-bottom: 0; }
/* Sub-etiquetas de las dos voces ("Sobre nosotros": Jorge / Atlas) */
.about__who { display: block; margin-bottom: var(--space-4); }
.about__who:not(:first-child) { margin-top: var(--space-8); }

/* ============================================================
   Pie + contacto (bloque azul, unificados)
   ============================================================ */

.site-footer {
  background: var(--gradient-sea);
  color: var(--on-dark);
  padding-block: var(--space-8);
}
.site-footer__inner { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-5); }
.site-footer__mark { width: 36px; height: 36px; opacity: .9; }
.site-footer__email {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--on-dark);
  border-bottom: 1px solid rgba(244,246,245,.45);
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.site-footer__email:hover { border-color: var(--on-dark); color: var(--on-dark); }
.site-footer__copy {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--on-dark-faint);
}

/* ============================================================
   Aparición al hacer scroll
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease var(--reveal-delay),
              transform .7s var(--ease) var(--reveal-delay);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 720px) {
  :root { --space-9: 72px; }
  .gallery { grid-template-columns: 1fr; gap: var(--space-5); }
  .site-nav { gap: var(--space-4); }
}

/* ============================================================
   Menos movimiento
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__cue-line { animation: none; }
  .card, .card__cover img { transition: none; }
}
