:root {
  --boda-verde: #59613d;
  --boda-verde-claro: #737d54;
  --boda-fondo: #f8f6ee;
  --boda-blanco: #ffffff;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--boda-fondo);
  color: var(--boda-verde);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, p {
  margin: 0;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: rgba(248, 246, 238, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(115, 125, 84, 0.2);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 3rem;
  width: auto;
}

.nav-logo {
  transition: opacity 0.2s;
}
.nav-logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: none;
  align-items: baseline;
  gap: 2rem;
}

.nav-links a {
  color: var(--boda-verde);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color 0.2s;
  padding: 0.5rem 0.75rem;
}

.nav-links a:hover {
  color: var(--boda-verde-claro);
}

.nav-toggle {
  background: none;
  border: none;
  color: var(--boda-verde);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(248, 246, 238, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(115, 125, 84, 0.2);
  padding: 1rem;
  gap: 0.25rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--boda-verde);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.75rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- SPACER ---------- */
.spacer {
  height: 2.5rem;
  background: var(--boda-fondo);
}
@media (min-width: 768px) {
  .spacer { height: 4rem; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6rem;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero { padding-top: 7rem; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.25);
}

.hero-card {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  margin: 0 1rem;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 20rem;
}
@media (min-width: 768px) {
  .hero-card {
    max-width: 42rem;
    padding: 2rem;
    gap: 1rem;
  }
}

.hero-logo {
  height: 4rem;
  width: auto;
  margin: 0 auto 0.25rem;
  filter: brightness(0) invert(1);
  filter: drop-shadow(0 10px 8px rgba(0,0,0,0.25));
  -webkit-filter: brightness(0) invert(1);
}
@media (min-width: 768px) {
  .hero-logo { height: 7rem; }
}

.hero-label {
  font-family: var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 19px;
  color: var(--boda-verde-claro);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
@media (min-width: 768px) {
  .hero-label { font-size: 21px; }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
  margin-top: 0.5rem;
}
@media (min-width: 768px) {
  .hero-title { font-size: 4.5rem; }
}

.hero-date {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  margin-top: 0.5rem;
}
@media (min-width: 768px) {
  .hero-date { font-size: 1.125rem; }
}
.hero-date .dot {
  margin: 0 0.5rem;
  color: var(--boda-verde-claro);
}

.hero-divider {
  height: 2px;
  width: 3rem;
  background: var(--boda-verde-claro);
  margin: 0.5rem auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
@media (min-width: 768px) {
  .hero-divider { width: 4rem; }
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  max-width: 24rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
@media (min-width: 768px) {
  .hero-quote { font-size: 1.25rem; }
}

/* ---------- SLIDESHOW ---------- */
.slideshow, .quote-parallax {
  position: relative;
  z-index: 0;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slideshow-track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  user-select: none;
  pointer-events: none;
}
.slide-ring {
  object-position: 50% 85%;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}

.slideshow-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(89, 97, 61, 0.1);
  pointer-events: none;
}

.slideshow-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
@media (min-width: 1024px) {
  .slideshow-dots { bottom: 1.5rem; }
}

.slideshow-dots button {
  height: 0.625rem;
  width: 0.625rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.5s ease-out;
  padding: 0;
}
.slideshow-dots button:hover {
  background: #fff;
}
.slideshow-dots button.active {
  background: var(--boda-verde-claro);
  width: 2rem;
}

/* ---------- QUOTE PARALLAX ---------- */
.quote-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../images/quote-bg.jpg');
  background-size: cover;
  background-position: 50% 25%;
  filter: grayscale(100%);
  transition: filter 0.6s ease-out, transform 10s ease-out;
}
.quote-parallax:hover .quote-bg {
  filter: grayscale(0%);
  transform: scale(1.1);
}
@media (min-width: 1024px) {
  .quote-bg { background-attachment: fixed; }
}

.quote-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}

.quote-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  text-align: center;
  pointer-events: none;
}
.quote-content h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.875rem;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
@media (min-width: 1024px) {
  .quote-content h2 { font-size: 3rem; }
}

/* ---------- UBICACIONES ---------- */
.ubicaciones {
  position: relative;
  background: var(--boda-fondo);
}

.ubicaciones-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding-top: 3rem;
  text-align: center;
}
@media (min-width: 1024px) {
  .ubicaciones-title { padding-top: 6rem; }
}
.ubicaciones-title h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
@media (min-width: 1024px) {
  .ubicaciones-title h2 { font-size: 4.5rem; }
}

.ubicacion-block {
  position: relative;
  z-index: 0;
  min-height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0;
}
@media (min-width: 1024px) {
  .ubicacion-block { min-height: 700px; height: 85vh; padding: 0; }
}

.ubicacion-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  user-select: none;
  pointer-events: none;
}

.ubicacion-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(89, 97, 61, 0.4);
  pointer-events: none;
}

.ubicacion-btn-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 80rem;
  margin: 4rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .ubicacion-btn-wrap { margin-top: 0; }
  .ubicacion-btn-wrap.left { justify-content: flex-start; }
  .ubicacion-btn-wrap.right { justify-content: flex-end; }
}

.ubicacion-btn, .rsvp-btn {
  pointer-events: auto;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.5rem 1.5rem 0.5rem 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
  border: 1px solid rgba(115, 125, 84, 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s;
}
.ubicacion-btn:hover, .rsvp-btn:hover {
  transform: scale(1.05);
}

.btn-icon {
  background: var(--boda-verde);
  color: var(--boda-verde-claro);
  padding: 0.75rem;
  border-radius: 9999px;
  display: flex;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.ubicacion-btn:hover .btn-icon {
  background: var(--boda-verde-claro);
  color: var(--boda-verde);
}

.btn-text {
  text-align: left;
}
.btn-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(89, 97, 61, 0.6);
}
.btn-place {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--boda-verde);
  line-height: 1.2;
}
.btn-time {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(89, 97, 61, 0.7);
  letter-spacing: 0.03em;
}

/* ---------- DRESS CODE ---------- */
.dresscode {
  padding: 5rem 0;
  background: var(--boda-fondo);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .dresscode { padding: 6rem 0; }
}

.dresscode-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dresscode-inner h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--boda-verde);
  margin-bottom: 1rem;
}
@media (min-width: 1024px) {
  .dresscode-inner h2 { font-size: 3.75rem; }
}

.dresscode-inner p {
  font-family: var(--font-sans);
  color: rgba(89, 97, 61, 0.7);
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1rem;
}
@media (min-width: 768px) {
  .dresscode-inner p { font-size: 1.125rem; }
}

.dresscode-card {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  background: #fff;
  padding: 0.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid rgba(115, 125, 84, 0.3);
  overflow: hidden;
}
.dresscode-card img {
  border-radius: 0.75rem;
  width: 100%;
  height: auto;
}

/* ---------- RSVP ---------- */
.rsvp {
  position: relative;
  z-index: 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  overflow: hidden;
  background: var(--boda-verde);
}
@media (min-width: 1024px) {
  .rsvp { min-height: 100vh; padding: 6rem 0; }
}

.rsvp-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-wrap: wrap;
}
.rsvp-collage img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  object-position: 50% 25%;
  user-select: none;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .rsvp-collage img { width: 50%; }
}

.rsvp-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}

.rsvp-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.rsvp-note {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--boda-verde);
  max-width: 32rem;
}
.rsvp-note svg {
  flex-shrink: 0;
}
.rsvp-note span {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-align: center;
}
@media (min-width: 768px) {
  .rsvp-note span { font-size: 0.875rem; }
}

.rsvp-btn {
  padding: 0.5rem 2rem 0.5rem 0.5rem;
  background: rgba(89, 97, 61, 0.9);
  border: 1px solid rgba(255,255,255,0.2);
}
.rsvp-icon {
  background: var(--boda-verde-claro);
  color: var(--boda-verde);
  padding: 0.875rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.rsvp-btn:hover .rsvp-icon {
  background: #fff;
}
.rsvp-btn .btn-label {
  color: rgba(115, 125, 84, 0.9);
}
.rsvp-btn .btn-place {
  font-size: 1.5rem;
  color: #fff;
}
