/* ==========================================================
   NICOLÁS DELRIEU — ESTILOS PRINCIPALES
   Edita colores, tamaños y espacios desde cada sección.
   ========================================================== */

/* 01. COLORES Y VARIABLES */
:root {
  --navy: #152840;
  --ink: #28384b;
  --muted: #67717a;
  --paper: #faf8f4;
  --cream: #fbf7ee;
  --gold: #c59c63;
  --line: #e9e1d6;
  --content-width: 1280px;
}

/* 02. REGLAS GENERALES */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .footer-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  color: var(--navy);
}

/* 03. PORTADA / HERO
   FOTO a la derecha, texto sobre una banda crema a la izquierda.
   El HTML original se conserva sin cambios.
*/
.hero {
    position: relative;
    width: 100%;
    height: 650px;
    min-height: 550px;
    overflow: hidden;
    background: #ead6c0;
}
/* Foto ocupando todo el hero */
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
}
/* Banda crema opaca a la izquierda: evita superponer
   una capa blanca sobre el rostro de Nicolás. */
/* Degradado suave sobre el lado izquierdo */
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(250, 247, 240, 0.85) 0%,
        rgba(250, 247, 240, 0.65) 15%,
        rgba(250, 247, 240, 0.25) 30%,
        rgba(250, 247, 240, 0.05) 42%,
        transparent 55%
    );
    pointer-events: none;
}
/* Texto del hero */
.hero-content {
    position: absolute;
    z-index: 2;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: 360px;
}

.eyebrow {
  margin-bottom: 21px;
  color: #a58153;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}
/* El subtítulo superior no aparece en el mockup original. */
.hero .eyebrow { display: none; }
.hero h1 {
  margin-bottom: 25px;
  font-size: clamp(57px, 5.5vw, 85px);
  line-height: .96;
  letter-spacing: -.048em;
}
.gold-rule {
  display: block;
  width: 62px;
  height: 3px;
  margin: 0 0 24px;
  background: var(--gold);
}
.hero-content > p:last-child {
  max-width: 310px;
  margin-bottom: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
}
/* El mockup no incluye navegación en la portada. */
.hero-footer { display: none; }

/* 04. CONTENEDOR COMÚN */
.section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 90px 48px;
}

/* 05. BIOGRAFÍA */
.bio {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  align-items: center;
  gap: 70px;
  background: var(--paper);
}
.bio-photo {
  height: 555px;
  overflow: hidden;
  background: #e9e6df;
}
.bio-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.bio-copy { max-width: 540px; }
.bio-copy h2,
.section-heading h2 {
  margin-bottom: 22px;
  font-size: clamp(46px, 5vw, 68px);
  line-height: 1.13;
  letter-spacing: -.025em;
}
.bio-copy p:not(.eyebrow) {
  margin-bottom: 21px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.75;
}


/* 06. CABECERA Y CUADRÍCULA DE LA GALERÍA */
.gallery-section {
  max-width: 1400px;
  padding-top: 72px;
  padding-bottom: 100px;
}

.section-heading {
  margin-bottom: 46px;
  text-align: center;
}

.section-heading .gold-rule {
  margin-right: auto;
  margin-left: auto;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 22px;
}

.gallery-card {
  min-width: 0;
  margin: 0;
}

/* Mostrar las fotos completas, sin recortes */
.gallery-card img {
  display: block;
  width: 100%;
  height: 300px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  background: #f3f0ea;
}

/* Títulos y descripciones */
.gallery-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 7px 0;
  text-align: center;
}

.gallery-card strong {
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  font-weight: 400;
}

.gallery-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* 07. PIE DE PÁGINA */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 35px 6%;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer-name { font-size: 25px; }

/* 08. TABLETS */
@media (max-width: 850px) {
  .hero { height: 570px; min-height: 570px; }
  .hero-image { width: 75%; object-position: 45% center; }
  .hero-shade { width: 43%; }
  .hero-content { left: 28px; width: 35%; }
  .hero h1 { font-size: clamp(48px, 7vw, 63px); }
  .hero-content > p:last-child { font-size: 15px; }
  .section { padding: 75px 26px; }
  .bio { gap: 36px; }
  .bio-photo { height: 520px; }
  .bio-copy p:not(.eyebrow) { font-size: 16px; }
  .gallery-grid { gap: 30px 18px; }
}

/* 09. MÓVILES
   Texto arriba y retrato abajo para evitar cortes de cara.
*/
@media (max-width: 600px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    order: 0;
    width: 100%;
    padding: 40px 26px 35px;
    transform: none;
    background: var(--cream);
  }
  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(55px, 14vw, 72px);
  }
  .hero-content > p:last-child {
    max-width: 420px;
    font-size: 16px;
    line-height: 1.6;
  }
  .hero-image {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    height: 370px;
    object-fit: cover;
    object-position: 42% 35%;
    z-index: auto;
  }
  .hero-shade { display: none; }
  .section { padding: 62px 20px; }
  .bio { display: flex; flex-direction: column; gap: 34px; }
  .bio-photo { width: 100%; height: 470px; }
  .bio-copy h2,
  .section-heading h2 { font-size: 46px; }
  .bio-copy p:not(.eyebrow) { font-size: 17px; }
  .gallery-section { padding-top: 35px; }
  .section-heading { margin-bottom: 33px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 34px; }
  .gallery-card img { aspect-ratio: 1.28 / 1; }
  .gallery-card figcaption { padding-top: 12px; }
  .site-footer { flex-direction: column; gap: 8px; text-align: center; }
}

/* 10. ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}



