:root {
  --gold: #C9A66B;
  --gold-light: #F0E2C5;
  --black: #1a1a1a;
  --dark: #2d2d2d;
  --white: #ffffff;
  --cream: #FAF8F5;
  --olive: #5A6650;
  --olive-bg: #4A5540;
  --text: #333333;
  --text-light: #666666;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--olive-bg);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(74, 80, 64, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74, 80, 64, 0.3) 0%, transparent 50%);
}

.hero-curtains {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  pointer-events: none;
}

.hero-curtains .curtain {
  flex: 1;
  background: linear-gradient(to bottom, 
    rgba(45, 45, 45, 0.3) 0%,
    transparent 20%,
    transparent 80%,
    rgba(45, 45, 45, 0.3) 100%
  );
}

.hero-curtains .curtain.left,
.hero-curtains .curtain.right {
  flex: 0 0 15%;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1100px, 94vw);
  padding: clamp(24px, 4vw, 48px);
  border-radius: 18px;
  background-image:
    linear-gradient(rgba(20, 24, 16, 0.66), rgba(20, 24, 16, 0.66)),
    url("https://chatgpt.com/backend-api/estuary/public_content/enc/eyJpZCI6Im1fNmEwMDVlODRjNGE4ODE5MWI0YWZhYmM2YmY2YTE1MmQ6ZmlsZV8wMDAwMDAwMGEyYzg2MWY2OGYyNDNmZTAwOTViNTFmNiIsInRzIjoiMjA1ODMiLCJwIjoicHlpIiwiY2lkIjoiMSIsInNpZyI6IjU4NmM2NmI5YzhjNWQ2NTVlOWIyMzg1MmJkZmUxMTI3YzkxZDkwN2RiNGI2ODFkZTJmMDkzYzBjZDE2MGNiMjIiLCJ2IjoiMCIsImdpem1vX2lkIjpudWxsLCJjcyI6bnVsbCwiY2RuIjpudWxsLCJmbiI6bnVsbCwiY2QiOm51bGwsImNwIjpudWxsLCJtYSI6bnVsbH0=");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% auto;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

.pretitle {
  font-size: 0.75rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #f6e7c6;
  margin-bottom: 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}

.hero h1 {
  font-size: clamp(3.5rem, 12vw, 7rem);
  color: #fffdf8;
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.72);
}

.hero h1 span {
  display: block;
  font-size: 0.4em;
  color: #f2d9a3;
  font-style: italic;
  margin-top: 10px;
}

.date {
  font-size: 1.1rem;
  color: #fff2d7;
  margin-top: 30px;
  font-weight: 300;
  letter-spacing: 3px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.65);
}

.scroll-hint {
  margin-top: 60px;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 247, 230, 0.95);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Countdown Section */
.countdown-section {
  background: var(--olive-bg);
  padding: 60px 0;
  border-top: 1px solid rgba(201, 166, 107, 0.2);
  border-bottom: 1px solid rgba(201, 166, 107, 0.2);
}

.countdown-section .section-title {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.countdown-section .section-subtitle {
  color: var(--gold-light);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--white);
  line-height: 1;
}

.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-top: 5px;
  font-family: 'Montserrat', sans-serif;
}

/* Sections */
section {
  padding: 80px 0;
}

.photo-moment {
  padding: 40px 0 20px;
  background: linear-gradient(180deg, rgba(250, 248, 245, 0.96) 0%, rgba(245, 241, 234, 0.92) 100%);
}

.photo-moment-editorial {
  background: linear-gradient(180deg, rgba(242, 240, 232, 0.8) 0%, rgba(250, 248, 245, 0.96) 100%);
}

.photo-moment-rsvp {
  padding-bottom: 40px;
}

.photo-card {
  margin: 0 auto;
  width: min(940px, 100%);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(201, 166, 107, 0.38);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 14px 40px rgba(63, 53, 32, 0.12);
  backdrop-filter: blur(2px);
}

.photo-card img {
  display: block;
  width: 100%;
  height: clamp(260px, 48vw, 470px);
  object-fit: cover;
  border-radius: 12px;
  filter: saturate(0.93) contrast(1.03) sepia(0.08);
}

.photo-card.portrait {
  width: min(560px, 100%);
}

.photo-card.portrait img {
  height: clamp(380px, 72vw, 720px);
}

.photo-card.photo-copas img {
  object-fit: contain;
  object-position: center center;
  background: #f4efe4;
  height: auto;
  max-height: 760px;
}

.photo-card figcaption {
  margin-top: 12px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  letter-spacing: 0.4px;
  font-size: 1.2rem;
  color: #7b6642;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--black);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 50px;
  font-family: 'Montserrat', sans-serif;
}

/* Location */
.location {
  background: var(--cream);
}

.location.stay {
  background: #f2f0e8;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.location-card {
  text-align: center;
  padding: 40px 30px;
  border: 1px solid rgba(201, 166, 107, 0.3);
  transition: all 0.3s ease;
}

.location-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.location-card h3 {
  color: var(--black);
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-style: italic;
}

.location-card .location-place {
  font-size: 1.1rem;
  color: var(--black);
  font-weight: 500;
  margin-bottom: 10px;
}

.location-card .location-address {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.6;
}

.location-card .location-time {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.location-link {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.location-card .location-link + .location-link {
  margin-left: 14px;
}

.location-link:hover {
  color: var(--gold);
}

/* Decorative Flowers */
.decorative-elements {
  position: relative;
  height: 80px;
  background: var(--cream);
}

.decorative-elements.bottom {
  background: var(--black);
}

.flower-left,
.flower-right {
  position: absolute;
  width: 150px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
}

.flower-left {
  left: 20px;
  top: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 80"><path d="M20 80 Q10 60 25 40 Q15 20 30 10 Q40 20 50 10 Q60 20 70 10 Q85 20 75 40 Q90 60 80 80 Z" fill="%23C9A66B" opacity="0.3"/><circle cx="30" cy="40" r="3" fill="%23C9A66B"/><circle cx="50" cy="25" r="2" fill="%23C9A66B"/><circle cx="70" cy="35" r="3" fill="%23C9A66B"/></svg>');
}

.flower-right {
  right: 20px;
  top: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 80" transform="scale(-1,1)"><path d="M20 80 Q10 60 25 40 Q15 20 30 10 Q40 20 50 10 Q60 20 70 10 Q85 20 75 40 Q90 60 80 80 Z" fill="%23C9A66B" opacity="0.3"/><circle cx="30" cy="40" r="3" fill="%23C9A66B"/><circle cx="50" cy="25" r="2" fill="%23C9A66B"/><circle cx="70" cy="35" r="3" fill="%23C9A66B"/></svg>');
  transform: scaleX(-1);
}

.vase-left,
.vase-right {
  position: absolute;
  width: 80px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
}

.vase-left {
  left: 30px;
  bottom: -40px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 80"><path d="M20 80 L15 50 Q15 30 25 20 Q30 15 35 20 Q45 30 45 50 L40 80 Z" fill="%23C9A66B" opacity="0.5"/><path d="M25 20 Q20 10 25 5 Q30 0 35 5 Q40 10 35 20" fill="%23C9A66B" opacity="0.4"/></svg>');
}

.vase-right {
  right: 30px;
  bottom: -40px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 80"><path d="M20 80 L15 50 Q15 30 25 20 Q30 15 35 20 Q45 30 45 50 L40 80 Z" fill="%23C9A66B" opacity="0.5"/><path d="M25 20 Q20 10 25 5 Q30 0 35 5 Q40 10 35 20" fill="%23C9A66B" opacity="0.4"/></svg>');
}

/* Schedule */
.schedule {
  background: var(--cream);
}

.timeline {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 40px;
  position: relative;
  margin-bottom: 35px;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  top: 5px;
}

.timeline-item:nth-child(odd)::before {
  right: -4px;
}

.timeline-item:nth-child(even)::before {
  left: -4px;
}

.timeline-content {
  text-align: right;
  max-width: 180px;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: left;
}

.timeline-time {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
}

.timeline-event {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--black);
  font-style: italic;
}

.timeline-details {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 3px;
}

/* Wedding Planner */
.planner {
  background: var(--olive-bg);
  padding: 60px 0;
}

.planner .section-title {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.planner-content {
  text-align: center;
  color: var(--white);
}

.planner-name {
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 10px;
  color: var(--gold-light);
}

.planner-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.planner-contact {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.planner-item {
  font-size: 0.9rem;
  color: var(--white);
}

.planner-item a {
  color: var(--white);
  text-decoration: none;
}

.planner-item a:hover {
  text-decoration: underline;
}

.planner-hours {
  margin-top: 25px;
  font-size: 0.8rem;
  color: var(--gold-light);
}

/* RSVP */
.rsvp {
  background: var(--cream);
  padding: 80px 0 120px;
}

.guest-greeting {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 30px;
  font-style: italic;
}

.rsvp-form {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px 40px;
  border: 1px solid rgba(201, 166, 107, 0.2);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}

.guest-name-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--black);
  font-style: italic;
  margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
}

/* RSVP Options */
.rsvp-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.rsvp-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.rsvp-option input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

.rsvp-option input[type="radio"]:checked {
  border-color: var(--gold);
}

.rsvp-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

.rsvp-option span {
  font-size: 0.9rem;
  color: var(--text);
}

/* Guest Counter */
.guest-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.counter-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.counter-btn:hover {
  background: var(--gold);
  color: var(--white);
}

.guest-counter input {
  width: 60px;
  text-align: center;
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.guest-fields {
  display: none;
}

.guest-fields.active {
  display: block;
}

.guest-row {
  border: 1px solid rgba(201, 166, 107, 0.2);
  padding: 20px;
  margin-bottom: 15px;
}

.guest-row h4 {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 15px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.alergia-field {
  margin-top: 15px;
}

.intolerancia-field {
  margin-top: 15px;
}

.intolerancia-field input,
.alergia-field input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
}

.children-field {
  margin-top: 15px;
}

.children-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.guest-counter.small {
  gap: 15px;
}

.guest-counter.small .counter-btn {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.guest-counter.small input {
  width: 50px;
  padding: 8px;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

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

.success-message {
  display: none;
  text-align: center;
  padding: 40px;
}

.success-message.show {
  display: block;
}

.success-message h3 {
  color: var(--black);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.success-message p {
  color: var(--text-light);
}

.gift-section {
  background: #f2f0e8;
  padding: 70px 0;
}

.gift-card {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(201, 166, 107, 0.35);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.gift-text {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 18px;
}

.gift-method {
  font-size: 1rem;
  color: #6f5a35;
  margin-top: 8px;
}

/* Footer */
footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.wedding-logo {
  width: min(360px, 82vw);
  height: auto;
  margin: 0 auto 18px;
  display: block;
  filter: sepia(22%) saturate(95%) hue-rotate(345deg) brightness(0.92);
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 10px;
}

.footer-date {
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .photo-moment {
    padding: 26px 0 12px;
  }

  .photo-card {
    border-radius: 14px;
    padding: 10px;
  }

  .photo-card img {
    height: 260px;
  }

  .photo-card.portrait img {
    height: 420px;
  }

  .photo-card.photo-copas img {
    height: auto;
    max-height: 560px;
  }

  .photo-card figcaption {
    font-size: 1.05rem;
  }

  .hero-content {
    background-size: cover;
    background-position: center top;
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .countdown {
    gap: 20px;
  }
  
  .countdown-number {
    font-size: 2rem;
  }
  
  .hero-curtains .curtain.left,
  .hero-curtains .curtain.right {
    display: none;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 35px;
    padding-right: 0;
    justify-content: flex-start;
  }
  
  .timeline-item::before,
  .timeline-item:nth-child(even)::before {
    left: 11px;
    right: auto;
  }
  
  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    max-width: 100%;
  }
  
  .rsvp-form {
    padding: 30px 20px;
  }
  
  .planner-contact {
    flex-direction: column;
    gap: 10px;
  }
  
  .rsvp-options {
    flex-direction: column;
    gap: 10px;
  }
}
