@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Outfit:wght@300;400;500&display=swap');

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

:root {
  --bg:      #1a2030;
  --bg2:     #212840;
  --bg3:     #1e2538;
  --text:    #e8e4dc;
  --muted:   #8a8fa0;
  --accent:  #c4724a;
  --accent2: #7a9cb8;
  --border:  rgba(255,255,255,0.07);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(26,32,48,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
  transition: padding 0.3s;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 300; letter-spacing: 0.08em;
  color: var(--text); text-decoration: none;
}
.logo span { color: var(--accent); }

nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav ul li a {
  text-decoration: none; color: var(--muted);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.2s;
}
nav ul li a:hover { color: var(--text); }

/* ── HERO ── */
#inicio {
  position: relative; height: 100vh; overflow: hidden;
  display: flex; align-items: flex-end;
}

.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.6) saturate(0.9);
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,32,48,0.97) 0%,
    rgba(26,32,48,0.5) 40%,
    rgba(26,32,48,0.15) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 4rem 5rem;
  max-width: 680px;
  animation: fadeUp 1s ease both;
}

.hero-tag {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-tag::before {
  content: ''; display: block;
  width: 2.5rem; height: 1px; background: var(--accent);
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300; line-height: 1.05;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}
h1 em { font-style: italic; color: var(--accent2); }

.hero-sub {
  color: var(--muted); font-size: 0.95rem; line-height: 1.75;
  max-width: 400px; margin-bottom: 2.2rem;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 2rem;
  border: 0.5px solid var(--accent);
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; background: transparent;
  transition: all 0.25s;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ── SECTIONS ── */
section { padding: 6rem 4rem; }

.section-label {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.1;
  margin-bottom: 3rem;
}

/* ── GALERÍA ── */
#galeria { background: var(--bg); }

.gallery-filters {
  display: flex; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 1.2rem;
  border: 0.5px solid var(--border);
  background: transparent; color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent); color: var(--accent);
}

.gallery-grid { columns: 3; gap: 6px; }

@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 600px) { .gallery-grid { columns: 1; } }

.gallery-item {
  break-inside: avoid; margin-bottom: 6px;
  position: relative; overflow: hidden; cursor: pointer;
}

.gallery-item img {
  width: 100%; display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: saturate(0.9) brightness(0.95);
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: saturate(1) brightness(1);
}

.gallery-caption {
  position: absolute; inset: 0;
  background: rgba(26,32,48,0.65);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end;
  padding: 1.2rem;
}

.gallery-item:hover .gallery-caption { opacity: 1; }

.gallery-caption span {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text); border-bottom: 0.5px solid var(--accent);
  padding-bottom: 2px;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,26,40,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: var(--muted); font-size: 1.8rem; cursor: pointer;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--text); }

.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0.5px solid var(--border);
  color: var(--muted); font-size: 1.2rem;
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover {
  border-color: var(--accent); color: var(--accent);
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ── SOBRE MÍ ── */
#sobre-mi { background: var(--bg3); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 5rem; align-items: center;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.about-img-wrap { position: relative; }

.about-img-wrap img {
  width: 100%; display: block;
  filter: saturate(0.85);
}

.about-img-wrap::before {
  content: '';
  position: absolute; top: -14px; left: -14px;
  width: 100%; height: 100%;
  border: 0.5px solid var(--accent);
  z-index: -1;
}

.about-content p {
  color: var(--muted); line-height: 1.85; font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.about-content p strong { color: var(--text); font-weight: 400; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem;
  border-top: 0.5px solid var(--border);
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 300; color: var(--accent); line-height: 1;
}

.stat-label {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.3rem;
}

/* ── CONTACTO ── */
#contacto { background: var(--bg2); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-intro p {
  color: var(--muted); line-height: 1.8; font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.social-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }

.social-list a {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; color: var(--muted);
  font-size: 0.82rem; letter-spacing: 0.05em;
  transition: color 0.2s;
}
.social-list a:hover { color: var(--accent); }

.social-list .icon {
  width: 2rem; height: 2rem;
  border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  transition: border-color 0.2s;
}
.social-list a:hover .icon { border-color: var(--accent); }

/* ── FOOTER ── */
footer {
  background: var(--bg3);
  padding: 2.5rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  border-top: 0.5px solid var(--border);
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 300; color: var(--muted);
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }

.footer-copy {
  font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em;
}

/* ── SERIES ── */
.serie-block { margin-bottom: 4rem; }

.serie-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 300;
  color: var(--muted); letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 0.5px solid var(--border);
  text-transform: capitalize;
}

.sin-fotos {
  color: var(--muted); font-size: 0.9rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center; padding: 4rem 0;
}

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { gap: 1.2rem; }
  section { padding: 4rem 1.5rem; }
  .hero-content { padding: 0 1.5rem 3.5rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
}
