/* Yolanda & Olmo — Galería de Boda Editorial & Alta Costura */

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

:root {
  --bg: #0b0a09;
  --bg-raised: #141210;
  --bg-card: #181512;
  --text: #fbf9f5;
  --text-muted: #a39b8e;
  --accent: #d4af37;
  --accent-light: #f3e5ab;
  --accent-glow: rgba(212, 175, 55, 0.15);
  --border-gold: rgba(212, 175, 55, 0.22);
  --border-gold-hover: rgba(212, 175, 55, 0.65);
  --serif: 'Cormorant Garamond', Georgia, "Iowan Old Style", serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- Header Hero (Home) ---------- */

.hero {
  position: relative;
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.08) 0%, rgba(11, 10, 9, 1) 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Monograma Y & O */
.monogram-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: rgba(20, 18, 16, 0.6);
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px var(--accent-glow);
  position: relative;
}

.monogram-badge::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.35);
}

.monogram-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent-light);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0.8rem 0;
}

.hero-divider span {
  color: var(--accent);
  font-size: 0.75rem;
  opacity: 0.8;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold));
}

.hero-divider::after {
  background: linear-gradient(90deg, var(--border-gold), transparent);
}

.hero .subtitle {
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0 0 1.5rem;
}

.stats-bar {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.5rem 1.4rem;
  border-radius: 30px;
  background: rgba(24, 21, 18, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.stats-bar span.dot {
  color: var(--accent);
  font-size: 0.5rem;
}

/* ---------- Grid de Álbumes (Home) ---------- */

.albums-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
}

.album-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.album-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold-hover);
  box-shadow: 0 20px 45px rgba(212, 175, 55, 0.15), 0 10px 25px rgba(0, 0, 0, 0.6);
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: brightness(0.92) contrast(1.02);
}

.album-card:hover img {
  transform: scale(1.06);
  filter: brightness(1) contrast(1.05);
}

/* Badge Superior en la Tarjeta */
.album-card-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: rgba(14, 12, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  z-index: 2;
}

/* Gradiente Inferior de la Tarjeta */
.album-card-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.6rem 1.6rem;
  background: linear-gradient(to top, rgba(8, 7, 6, 0.95) 0%, rgba(8, 7, 6, 0.7) 60%, rgba(8, 7, 6, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

.album-card-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}

.album-card:hover .album-card-title {
  color: var(--accent-light);
}

.album-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.album-card-cta {
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease;
}

.album-card:hover .album-card-cta {
  transform: translateX(4px);
  color: #fff;
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 3.5rem 1.5rem 4.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  background: rgba(14, 12, 10, 0.4);
}

.footer-monogram {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin: 0;
}

/* ---------- Vista de Álbum (Grid de fotos) ---------- */

.album-header {
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
  background: rgba(20, 18, 16, 0.5);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--accent-light);
  border-color: var(--border-gold-hover);
  background: rgba(212, 175, 55, 0.1);
}

.album-header h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.4rem;
  color: #fff;
}

.album-header .count {
  color: var(--accent-light);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  padding: 6px 1.5rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.photo-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-raised);
  border: 1px solid rgba(212, 175, 55, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.photo-grid a:hover {
  transform: scale(1.03);
  border-color: var(--border-gold-hover);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.photo-grid a:hover img {
  filter: brightness(1.05);
}

/* ---------- Vista Individual de Foto ---------- */

.photo-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #060505;
}

.photo-frame {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem;
}

.photo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border-radius: 4px;
}

.close-btn {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: rgba(20, 18, 16, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-muted);
  z-index: 10;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: var(--accent-light);
  border-color: var(--border-gold-hover);
  transform: scale(1.08);
}

.nav-zone {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 35%;
  display: flex;
  align-items: center;
  z-index: 5;
}

.nav-zone span {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(20, 18, 16, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: var(--accent-light);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-prev { left: 0; padding-left: 1.2rem; justify-content: flex-start; }
.nav-next { right: 0; padding-right: 1.2rem; justify-content: flex-end; }

.nav-zone:hover span {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--border-gold-hover);
  transform: scale(1.1);
  color: #fff;
}

.photo-counter {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  background: rgba(20, 18, 16, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  color: var(--accent-light);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  z-index: 5;
}

/* Responsivo */
@media (min-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
  }
}
