/* nerea.egv.es — portfolio de fotografía */

:root {
  --bg: #0e0e0e;
  --bg-soft: #161616;
  --text: #f2f0ec;
  --text-muted: #a8a4a0;
  --accent: #d8c7a1;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Cabecera */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

nav.main a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

nav.main a:first-child {
  margin-left: 0;
}

nav.main a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0 0 0.75rem;
  font-weight: normal;
  letter-spacing: 0.04em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 40ch;
  margin: 0;
}

/* Secciones */
section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.sobre-mi p {
  max-width: 65ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Galería */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.galeria-item {
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  overflow: hidden;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contacto */
.contacto p {
  color: var(--text-muted);
}

.contacto a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contacto a:hover {
  border-bottom-color: var(--accent);
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  nav.main a {
    margin-left: 1rem;
    font-size: 0.85rem;
  }
}
