/* Base Styles */
:root {
  --color-primary: #C8A2C8;
  --color-primary-light: #F1D7FF;
  --color-secondary: rgb(107, 114, 128);
  --font-sans: 'Poppins', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: white;
  transition: color 0.3s ease;
}

.header.scrolled .logo {
  color: var(--color-primary);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header.scrolled .nav-list a {
  color: #333;
}

.nav-list a:hover {
  color: var(--color-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: white;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.header.scrolled .mobile-menu-btn span {
  background-color: #333;
}

/* Hero Section */
.hero {
  height: 100vh;
  /* background-image: url('https://images.pexels.com/photos/1456613/pexels-photo-1456613.jpeg?auto=compress&cs=tinysrgb&w=1600'); */
  background-image: url('https://img.freepik.com/vector-gratis/tarjeta-felicitacion-marco-floral-purpura-acuarela_65186-3275.jpg?semt=ais_hybrid&w=980');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

@media (max-width: 768px) {
  .hero {
    background-image: url('/img/mobile.png');
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.3s;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.6s;
}

.hero .date {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.2em;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.9s;
}

.rsvp-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 1.2s;
}

.rsvp-btn:hover {
  background: #be123c;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.arrow {
  border: solid white;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 6px;
  transform: rotate(45deg);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 1.5rem auto;
}

.section-header p {
  color: #666;
  font-size: 1.125rem;
}

/* ====== SECCIÓN DETALLES ====== */
.details {
  padding: 6rem 0;
  background: #f9fafb;
}

/* ====== TARJETAS ====== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.card {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-image {
  height: 400px;
  background-size: cover;
  background-position: center;
}

/* ====== CONTENIDO DE LA TARJETA ====== */
.card-content {
  padding: 1.5rem;
  padding-left: 5rem;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* ====== ICONOS DE MAPAS ====== */
.map-icon img {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.map-icon img:hover {
  transform: scale(1.1);
}

/* ====== GRID PRINCIPAL ====== */
.card-grid {
  display: grid;
  align-items: center;
}

/* ====== VERSIÓN DESKTOP ====== */
@media (min-width: 769px) {
  .card-grid {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }

  .card-content {
    border-right: 1px solid #e5e7eb;
    margin-right: 2rem;
  }

  @media (min-width: 769px) {
    .icons {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1.5rem;
      padding-right: 2rem;
      padding-top: 1rem;
      padding-bottom: 1.5rem;
    }
  }

  .map-icon img {
    width: 80px;
  }
}

/* ====== VERSIÓN MÓVIL ====== */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  @media (max-width: 768px) {
    .icons {
      display: flex;
      justify-content: center;
      margin-top: 0.5rem;
      margin-bottom: 1.5rem;
      gap: 1.5rem;
    }
  }

  .map-icon img {
    width: 90px;
  }

  .card-content {
    border-right: none;
    margin-right: 0;
  }
}

/* Countdown */
.countdown {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.countdown h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.countdown-timer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .countdown-timer {
    grid-template-columns: repeat(4, 1fr);
  }
}

.countdown-item {
  background: var(--color-primary-light);
  padding: 1rem;
  border-radius: 0.5rem;
}

.countdown-item div {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.countdown-item span {
  color: var(--color-primary)
}

/* Schedule Section */
.schedule {
  padding: 6rem 0;
  background: white;
}

.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: #fff1f2;
  color: var(--color-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: #fecdd3;
}

.tab-btn.active {
  background: var(--color-primary);
  color: white;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-primary-light);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 1rem;
}

.timeline-item:nth-child(odd) {
  padding-right: 50%;
  text-align: right;
}

.timeline-item:nth-child(even) {
  padding-left: 50%;
  text-align: left;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.02);
}

.timeline-time {
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-dot {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  line-height: 1;
}

/* Gallery Section */
.gallery {
  background: #f9fafb;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
}

.gallery-item img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.2);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1100;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox button:hover {
  color: var(--color-primary);
}

.close-btn {
  top: 1rem;
  right: 1rem;
}

.prev-btn {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.next-btn {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* RSVP Section */
.rsvp {
  padding: 3rem 0;
  background: white;
}

.rsvp-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.radio-group {
  display: flex;
  gap: 2rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.submit-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background: #be123c;
}

.success-message {
  text-align: center;
  padding: 2rem;
}

.success-message.hidden {
  display: none;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

/* Travel Section */
.travel {
  padding: 6rem 0;
  background: #f9fafb;
}

.travel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.travel-card {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.travel-card:hover {
  transform: translateY(-5px);
}

.travel-card .card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.travel-card .card-content {
  padding: 1.5rem;
}

.travel-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.hotel-info,
.transport-info,
.attractions {
  margin-bottom: 1.5rem;
}

.hotel-info h4,
.transport-info h4,
.attractions h4 {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.link:hover {
  color: #be123c;
}

.map-container {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.map {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
}

.map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Footer */
.footer {
  background: #c8a2c8;
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.footer h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.heart {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.footer p {
  color: wheat;
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.875rem;
  margin: 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.hidden {
  visibility: hidden;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .hero .date {
    font-size: 1.5rem;
  }

  .nav-list {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu-active .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu-active .nav-list a {
    color: #333;
    padding: 0.5rem 0;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-item {
    padding: 0 0 0 2rem !important;
    text-align: left !important;
  }

  .timeline-dot {
    left: 0;
  }

  .radio-group {
    flex-direction: column;
    gap: 1rem;
  }
}

.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.radio-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding-left: 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  transition: all 0.2s ease;
}

.radio-wrapper input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-custom {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: white;
  border: 2px solid #777;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.radio-wrapper input[type="radio"]:checked~.radio-custom {
  border-color: #4f46e5;
}

.radio-wrapper input[type="radio"]:checked~.radio-custom::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4f46e5;
}

.radio-wrapper:hover .radio-custom {
  border-color: #4f46e5;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 768px) {
  .card-content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .only-mobile {
    display: inline;
  }
}

.only-mobile {
  display: none;
}