/* ============================================================
   RESET & BASE — Brandbook Felicitas Hiriart 2026
   Colores: #DDD7D3 Ceniza de sal · #050505 Cámara oscura
            #D18C42 Luz de hora dorada · #5C4A3A Cuarto de revelado
   Tipografías: Cormorant Garamond (principal) · Jost (secundaria)
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #DDD7D3;
  --white:    #ffffff;
  --dark:     #050505;
  --mid:      #5C4A3A;
  --light:    #a09590;
  --accent:   #D18C42;
  --accent2:  #5C4A3A;
  --bg:       #f5f2ef;
  --section-pad: 100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--dark);
  background: var(--bg);
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   NAVBAR
============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

#navbar.scrolled {
  background: rgba(245,242,239,0.97);
  padding: 14px 60px;
  box-shadow: 0 1px 20px rgba(5,5,5,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 38px;
}

.nav-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s;
}

.nav-logo .logo-light { display: block; }
.nav-logo .logo-dark  { display: none; }

#navbar.scrolled .nav-logo .logo-light { display: none; }
#navbar.scrolled .nav-logo .logo-dark  { display: block; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.3s, opacity 0.3s;
  opacity: 0.85;
}

.nav-links a:hover { opacity: 1; }
#navbar.scrolled .nav-links a { color: var(--dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--cream);
  transition: color 0.4s;
}

#navbar.scrolled .nav-toggle { color: var(--dark); }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-wrap { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.15) 50%, rgba(5,5,5,0.55) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--cream);
  padding: 0 20px;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.2rem;
  letter-spacing: 0.15em; opacity: 0.85; margin-bottom: 20px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300; letter-spacing: 0.06em;
  line-height: 1.05; margin-bottom: 18px;
}

.hero-sub {
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cream); opacity: 0.75; margin-bottom: 48px;
}

.btn-hero {
  display: inline-block;
  padding: 14px 44px;
  border: 1px solid rgba(221,215,211,0.6);
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream);
  transition: background 0.3s, border-color 0.3s;
}

.btn-hero:hover {
  background: rgba(221,215,211,0.12);
  border-color: var(--cream);
}

.scroll-arrow {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  color: var(--cream); font-size: 1.4rem; opacity: 0.5;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SECTION HEADER
============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: block;
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300; letter-spacing: 0.04em; margin-bottom: 16px;
}

.section-desc {
  font-size: 0.82rem; color: var(--mid);
  max-width: 480px; margin: 0 auto; line-height: 1.9;
}

/* ============================================================
   PORTADAS DE CATEGORÍA
============================================================ */
.albums-section {
  padding: 0;
  position: relative;
}

.category-cover {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 500px;
  overflow: hidden;
  cursor: pointer;
}

.category-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  will-change: transform;
}

.category-cover:hover img { transform: scale(1.04); }

.category-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.15) 60%, rgba(5,5,5,0) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding-bottom: 80px;
  text-align: center;
  transition: background 0.4s;
}

.category-cover:hover .category-cover-overlay {
  background: linear-gradient(to top, rgba(5,5,5,0.78) 0%, rgba(5,5,5,0.25) 60%, rgba(5,5,5,0.05) 100%);
}

/* Número de sección */
.category-cover-overlay .section-label-over {
  font-size: 0.6rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px; font-weight: 400;
}

.category-cover-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300; letter-spacing: 0.08em;
  color: var(--cream); line-height: 1;
  margin-bottom: 20px;
}

.category-cover-btn {
  display: inline-block;
  padding: 12px 36px;
  border: 1px solid rgba(221,215,211,0.5);
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--cream);
  transition: background 0.25s, border-color 0.25s;
}

.category-cover:hover .category-cover-btn {
  background: rgba(209,140,66,0.25);
  border-color: var(--accent);
}

/* ============================================================
   OVERLAY DE ÁLBUMES (panel que se abre al click)
============================================================ */
.albums-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 190;
  background: rgba(5,5,5,0.97);
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.albums-overlay.active { display: flex; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.albums-ov-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid rgba(221,215,211,0.1);
  flex-shrink: 0;
}

.albums-ov-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 300;
  color: var(--cream); letter-spacing: 0.06em;
}

.albums-ov-close {
  background: none; border: none;
  color: var(--cream); font-size: 2rem;
  cursor: pointer; opacity: 0.6; transition: opacity 0.2s; line-height: 1;
}
.albums-ov-close:hover { opacity: 1; }

.albums-ov-body {
  flex: 1; overflow-y: auto;
  padding: 40px 48px;
}

.albums-ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.album-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #1a1a1a;
}

.album-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.album-card:hover img { transform: scale(1.05); }

.album-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0) 55%);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 24px 20px;
  transition: background 0.3s;
}

.album-card:hover .album-card-overlay {
  background: linear-gradient(to top, rgba(5,5,5,0.82) 0%, rgba(5,5,5,0.1) 65%);
}

.album-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 300;
  letter-spacing: 0.05em; color: var(--cream);
  margin-bottom: 4px;
}

.album-card-count {
  font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); opacity: 0.9;
}

.album-card-btn {
  margin-top: 10px;
  padding: 7px 18px;
  border: 1px solid rgba(221,215,211,0.4);
  font-size: 0.58rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream);
  transition: background 0.2s;
}

.album-card:hover .album-card-btn {
  background: rgba(209,140,66,0.3);
  border-color: var(--accent);
}

/* ============================================================
   LIGHTBOX DE ÁLBUM
============================================================ */
.album-lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,5,5,0.97);
  flex-direction: column;
}

.album-lightbox.active { display: flex; }

.album-lb-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(221,215,211,0.1);
  flex-shrink: 0;
}

.album-lb-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 300;
  color: var(--cream); letter-spacing: 0.05em;
}

.album-lb-close {
  background: none; border: none;
  color: var(--cream); font-size: 2rem;
  cursor: pointer; opacity: 0.6;
  transition: opacity 0.2s; line-height: 1;
}

.album-lb-close:hover { opacity: 1; }

.album-lb-body {
  flex: 1; overflow-y: auto;
  padding: 24px 40px 40px;
}

.album-lb-grid {
  columns: 4; column-gap: 10px;
}

.album-lb-item {
  break-inside: avoid;
  margin-bottom: 10px;
  cursor: pointer;
  overflow: hidden;
}

.album-lb-item img {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.4s, opacity 0.3s;
}

.album-lb-item:hover img { transform: scale(1.02); opacity: 0.9; }

/* ============================================================
   FOTO INDIVIDUAL (dentro del álbum abierto)
============================================================ */
.photo-viewer {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5,5,5,0.98);
  align-items: center; justify-content: center;
}

.photo-viewer.active { display: flex; }

.photo-viewer img {
  max-width: 92vw; max-height: 90vh;
  width: auto; height: auto;
  object-fit: contain; display: block;
}

.pv-close, .pv-prev, .pv-next {
  position: absolute;
  background: none; border: none;
  color: var(--cream); cursor: pointer;
  opacity: 0.6; transition: opacity 0.2s; line-height: 1;
}
.pv-close:hover, .pv-prev:hover, .pv-next:hover { opacity: 1; }
.pv-close { top: 24px; right: 32px; font-size: 2.4rem; }
.pv-prev  { left: 24px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.pv-next  { right: 24px; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ============================================================
   SOBRE MÍ
============================================================ */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.about-img-wrap { overflow: hidden; }
.about-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.6s ease;
}
.about-img-wrap:hover img { transform: scale(1.03); }

.about-text {
  padding: 80px 70px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--cream);
}

.about-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; letter-spacing: 0.04em; margin-bottom: 32px;
}

.about-text p {
  font-size: 0.88rem; line-height: 1.95;
  color: var(--mid); margin-bottom: 16px;
}

.about-text em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1rem; color: var(--accent);
}

.about-cierre {
  margin-top: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem !important; font-style: italic;
  color: var(--dark) !important;
}

/* ============================================================
   CONTACTO
============================================================ */
.contact-section {
  padding: var(--section-pad) 60px;
  background: var(--bg);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px; max-width: 1000px;
  margin: 0 auto; align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid #ccc9c5;
  background: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem; font-weight: 300; color: var(--dark);
  outline: none; transition: border-color 0.3s;
  border-radius: 0; -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  align-self: flex-start;
  padding: 14px 48px;
  background: var(--dark); color: var(--cream);
  border: none; font-family: 'Jost', sans-serif;
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer; transition: background 0.3s;
}

.btn-submit:hover { background: var(--accent2); }

.form-note { font-size: 0.8rem; color: var(--accent); min-height: 1.2em; }

.contact-info { display: flex; flex-direction: column; gap: 32px; padding-top: 10px; }

.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { font-size: 1.3rem; line-height: 1; }
.contact-item div { display: flex; flex-direction: column; gap: 4px; }
.contact-item strong {
  font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid);
}
.contact-item a, .contact-item span { font-size: 0.88rem; color: var(--dark); }
.contact-item a:hover { color: var(--accent); }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--dark); color: var(--cream);
  text-align: center; padding: 60px 20px 40px;
}

.footer-logo {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.footer-logo img { height: 48px; width: auto; object-fit: contain; }

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1rem; opacity: 0.5; margin-bottom: 28px;
}

.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 32px; }

.footer-links a {
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.5; transition: opacity 0.3s;
}

.footer-links a:hover { opacity: 1; }

.footer-copy { font-size: 0.7rem; opacity: 0.3; letter-spacing: 0.1em; }

/* ============================================================
   RESPONSIVE — Tablet (≤1024px)
============================================================ */
@media (max-width: 1024px) {
  .album-lb-grid { columns: 3; }
  .albums-ov-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ============================================================
   RESPONSIVE — Mobile/Tablet (≤900px)
============================================================ */
@media (max-width: 900px) {
  /* Navbar */
  #navbar { padding: 18px 24px; }
  #navbar.scrolled { padding: 12px 24px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(245,242,239,0.98);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 20px rgba(5,5,5,0.1);
    z-index: 101;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    color: var(--dark) !important;
    padding: 15px 24px;
    border-bottom: 1px solid rgba(5,5,5,0.06);
    font-size: 0.72rem;
  }
  .nav-toggle { display: block; }

  /* Hero */
  .hero-title { font-size: clamp(2.4rem, 10vw, 4rem); }
  .hero-sub { font-size: 0.62rem; letter-spacing: 0.18em; }
  .btn-hero { padding: 12px 32px; font-size: 0.62rem; }

  /* Portadas de categoría */
  .category-cover { height: 70vh; min-height: 380px; }
  .category-cover-overlay { padding-bottom: 52px; }
  .category-cover-title { font-size: clamp(2.4rem, 8vw, 4rem); }
  .category-cover-btn { padding: 10px 28px; font-size: 0.6rem; }

  /* Overlay de álbumes */
  .albums-ov-header { padding: 18px 24px; }
  .albums-ov-body { padding: 24px 16px; }
  .albums-ov-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .album-card-title { font-size: 1.1rem; }

  /* Lightbox álbum */
  .album-lb-header { padding: 16px 20px; }
  .album-lb-body { padding: 14px 14px 32px; }
  .album-lb-grid { columns: 2; column-gap: 8px; }
  .album-lb-item { margin-bottom: 8px; }

  /* Visor foto */
  .pv-prev { left: 12px; font-size: 2.2rem; }
  .pv-next { right: 12px; font-size: 2.2rem; }
  .pv-close { top: 16px; right: 16px; font-size: 2rem; }
  .photo-viewer img { max-width: 96vw; max-height: 86vh; }

  /* Sobre mí */
  .about-section { grid-template-columns: 1fr; }
  .about-img-wrap { height: 65vw; min-height: 280px; }
  .about-text { padding: 48px 28px; }

  /* Contacto */
  .contact-section { padding: 60px 24px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .btn-submit { align-self: stretch; text-align: center; }
}

/* ============================================================
   RESPONSIVE — Mobile pequeño (≤560px)
============================================================ */
@media (max-width: 560px) {
  /* Navbar */
  #navbar { padding: 16px 18px; }
  .nav-logo { height: 30px; }
  .nav-logo img { height: 30px; }

  /* Hero */
  .hero-tagline { font-size: 1rem; }
  .hero-title { font-size: clamp(2rem, 11vw, 3rem); }
  .btn-hero { padding: 12px 28px; }

  /* Portadas */
  .category-cover { height: 60vh; min-height: 320px; }
  .category-cover-title { font-size: clamp(2rem, 9vw, 3rem); }
  .category-cover-overlay { padding-bottom: 40px; }

  /* Overlay álbumes */
  .albums-ov-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .albums-ov-title { font-size: 1.2rem; }

  /* Lightbox */
  .album-lb-grid { columns: 1; }
  .album-lb-title { font-size: 1.1rem; }

  /* Sobre mí */
  .about-text { padding: 36px 20px; }
  .about-text h2 { font-size: 2rem; margin-bottom: 24px; }

  /* Contacto */
  .contact-section { padding: 48px 18px; }

  /* Footer */
  .footer { padding: 48px 18px 32px; }
  .footer-logo img { height: 36px; }
  .footer-links { gap: 20px; }
}
