/* Estilos para el sitio de invitación de boda */

@font-face {
  font-family: 'Chamberi Display Light';
  src: url('../fonts/ChamberiDisplay-Light.otf') format('opentype');
}

@font-face {
  font-family: 'Chamberi Display Extra Light';
  src: url('../fonts/ChamberiDisplay-ExtraLight.otf') format('opentype');
}

:root {
  --color-primary: #d4af7a;       /* Dorado */
  --color-secondary: #4a4a4a;     /* Gris oscuro */
  --color-tertiary: #7A8450;      /* Dorado oscuro */
  --color-accent: #C9B27C;        /* Dorado oscuro */
  --color-background: #F4F1EC;    /* Blanco hueso porque definitivamente no te vas a casar de blanco */
  --color-text: #0C0C0C;          /* Texto casi negro */
  --color-light: #F4F1EC;         /* Blanco casi puro porque definitivamente no te vas a casar de blanco*/
  --font-primary: 'Chamberi Display Light', serif;
  --font-secondary: 'Chamberi Display Extra Light', serif;
  --font-text: 'Chamberi Display Extra Light', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 3px;
  background-color: var(--color-primary);
}

p {
  margin-bottom: 1rem;
  font-weight: 300;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--color-primary);
}

button, .btn {
  background-color: var(--color-primary);
  color: var(--color-light);
  border: none;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-text);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 3px;
}

button:hover, .btn:hover {
  background-color: var(--color-accent);
  color: var(--color-light);
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: var(--font-text);
  font-size: 1rem;
}

/* Header */
header {
  height: 100vh;
  background: url('/public/img/header-bg-2.jpg') right center / cover;
  /* background-position property is now included in the shorthand above */
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
  color: var(--color-light);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.header-top {
  z-index: 1;
  margin-top: 8rem;
}

.header-bottom {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-bottom: 4rem;
}

.dress-code {
  img {
    width: 70px;
    height: 170px;
  }
}

.header-title {
  font-family: var(--font-primary);
  font-size: 4rem;
  color: var(--color-light);
  margin-bottom: 0rem;
}

.header-subtitle {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
}

/* Countdown styles */
.countdown-container {
  margin-bottom: 1.5rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 0.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.countdown-unit span:first-child {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 5px;
  font-family: var(--font-primary);
  line-height: 1;
}

.countdown-label {
  font-size: 1rem;
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-text);
}

.header-date {
  font-family: var(--font-text);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--color-light);
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Navegación */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  background-color: rgba(255, 255, 255, 0);
}

nav .logo {
  svg {
    fill: var(--color-light);
  }
  height: 50px;
  width: 50px;
  z-index: 10;
}

.evento-2 .logo-evento {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 170px;
  height: 170px;
  margin-bottom: 1rem;
  svg {
    fill: var(--color-secondary);
  }
  @media (max-width: 768px) {
    margin-bottom: 4rem;
  }
}

.evento-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

nav.admin-nav {
  background-color: var(--color-background);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

nav.admin-nav a,
nav.admin-nav .menu-toggle {
  color: var(--color-text);
}

nav.scrolled {
  background-color: var(--color-background);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  padding: 1rem 3rem;
}

nav.scrolled .logo svg {
  fill: var(--color-tertiary);
}

nav.scrolled a {
  color: var(--color-tertiary) !important;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

nav li {
  position: relative;
}

nav a {
  color: var(--color-light);
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-light);
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0.5rem;
}

nav.scrolled .menu-toggle {
  color: var(--color-tertiary);
}

/* Responsive navigation styles */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  nav.scrolled {
    padding: 0.8rem 1.5rem;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    transform: translateY(-10px);
    opacity: 0;
  }

  nav ul.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  nav li {
    width: 100%;
    text-align: center;
  }

  nav a {
    display: block;
    padding: 0.8rem 0;
    /* color: var(--color-text); */
    font-size: 1.1rem;
  }

  nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* Secciones */
section {
  padding-bottom: 0rem;
  padding-top: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  margin-bottom: 3rem;
}

.family-1, .family-2 {
  position: relative;
  padding-bottom: 1rem;
}

.family-1::after, .family-2::after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 100px;
  height: 1.5px;
  background-color: var(--color-primary);
}

@media (max-width: 768px) {
  .family-1, .family-2 {
    display: block;
    width: 100%;
  }
}

@media (min-width: 769px) {
  .family-1, .family-2 {
    display: inline-block;
    width: 49%;
  }
}

/* Sección Presentación */
.presentacion {
  background-color: var(--color-light);
}

.couple-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2rem;
  border: 5px solid var(--color-primary);
}

.couple-info {
  margin-bottom: 3rem;
}

/* Evento y Ubicación */
.evento {
  background-color: var(--color-background);
}

.event-card {
  background-color: var(--color-tertiary);
  color: var(--color-light);
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.event-card h3 {
  color: var(--color-light);
}

.event-card i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.map-container {
  height: 400px;
  margin-top: 3rem;
}

/* Cronograma */
.cronograma {
  background-color: var(--color-light);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.cronograma::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zM22.344 0L13.858 8.485 15.272 9.9l9.9-9.9h-2.828zM32 0l-3.657 3.657 1.414 1.414L34.828 0H32zm-6.283 0L20.344 5.373 21.758 6.787l6.87-6.87H25.717zM38.283 0L34.626 3.657 36.04 5.07 40.97 0h-2.686zM60 0l-.827.828L57.9 2.485l1.414 1.414L60 3.313V0zm-60 0l.827.828L2.1 2.485 0.687 3.899 0 3.313V0z' fill='%23d4af7a' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-primary) 0,
    var(--color-primary) 8px,
    transparent 8px,
    transparent 16px
  );
  top: 0;
  bottom: 0;
  left: 50%;
  opacity: 0.5;
}

.timeline-item {
  padding: 3rem 0;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 60px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 60px;
  text-align: left;
}

.timeline-content {
  background-color: var(--color-light);
  padding: 2.5rem;
  border-radius: 2px;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 2px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(212, 175, 122, 0.1);
}

.timeline-content::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 1px;
  background-color: var(--color-primary);
  top: 50%;
  opacity: 0.5;
}

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

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

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--color-primary);
  background: var(--color-light);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  transition: all 0.4s ease;
  box-shadow: 0 0 0 4px rgba(212, 175, 122, 0.1);
}

.timeline-item:hover::after {
  transform: translateY(-50%) scale(1.2);
  box-shadow: 0 0 0 8px rgba(212, 175, 122, 0.1);
  border-color: var(--color-accent);
}

.timeline-item:nth-child(odd)::after {
  right: -8px;
}

.timeline-item:nth-child(even)::after {
  left: -8px;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.timeline-content h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.timeline-content p {
  color: var(--color-secondary);
  margin-bottom: 0;
  line-height: 1.8;
  font-size: 1.05rem;
  font-weight: 300;
}

.timeline-time {
  display: block;
  font-family: var(--font-secondary);
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* Vestimenta */
.vestimenta {
  background-color: var(--color-background);
}

.dress-code {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.dress-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dress-card i {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Hospedaje */
.hospedaje {
  background-color: var(--color-light);
}

.accommodations {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.hotel-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: var(--color-background);
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.hotel-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 1rem;
}

/* Mesa de Regalos */
.regalos {
  background-color: var(--color-background);
}

.gift-registry {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
}

.registry-card {
  flex: 1;
  min-width: 280px;
  max-width: 300px;
  background-color: var(--color-light);
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 1rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  justify-content: flex-start;
}

.registry-card:hover {
  transform: translateY(-10px);
}

.registry-card img {
  max-width: 150px;
}

.registry-logo-container {
  display: flex;
  justify-content: center;
  height: 150px;
  align-items: center;
}

.registry-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.registry-btn-container {
  text-align: center;
  border-top: 1px solid #f1f1f1;

  .uniko {
    margin-bottom: 1rem;
  }
}

/* Galería de Fotos */
.galeria {
  background-color: var(--color-light);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 769px) {
  .gallery {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  height: auto;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border: 5px solid white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 1001;
}

/* Área privada */
.login-container {
  max-width: 500px;
  margin: 3rem auto;
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#error-container {
  min-height: 50px;
  margin-bottom: 1rem;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
  font-weight: 500;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.guest-container {
  max-width: 800px;
  margin: 3rem auto;
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.guest-header {
  text-align: center;
  margin-bottom: 2rem;
}

.guest-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--color-background);
  border-radius: 5px;
  text-align: left;
}

.info-card i {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-top: 0.25rem;
}

.info-card div {
  flex: 1;
}

.info-card h3 {
  margin-bottom: 0.5rem;
}

.confirmed {
  color: #28a745;
  font-weight: 500;
}

.pending {
  color: #ffc107;
  font-weight: 500;
}

.declined {
  color: #dc3545;
  font-weight: 500;
}

.guest-actions {
  text-align: center;
}

.guest-actions h3 {
  margin-bottom: 1rem;
}

.guest-actions p {
  margin-bottom: 1.5rem;
}

/* Admin panel */
.admin-container {
  max-width: 1000px;
  margin: 3rem auto;
}

.admin-header {
  margin-bottom: 2rem;
}

.admin-actions {
  margin-bottom: 2rem;
  background-color: var(--color-background);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 1rem;
}

.admin-actions-header h3 {
  margin: 0;
}

.admin-export {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-export p {
  margin: 0;
  font-weight: 500;
}

.export-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: #9a7446;
}

.admin-stats {
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card {
  background-color: var(--color-background);
  padding: 1.5rem;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0.5rem 0;
}

.stat-percent {
  font-size: 1rem;
  color: var(--color-secondary);
}

.guests-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
  background-color: white;
}

.guests-table th, .guests-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.guests-table th {
  background-color: var(--color-primary);
  color: var(--color-light);
  font-weight: 500;
}

.guests-table tr:hover {
  background-color: #f9f9f9;
}

.guests-table tr:last-child td {
  border-bottom: none;
}

.guests-table th {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.guests-table tr:hover {
  background-color: #f9f9f9;
}

.status-badge {
  padding: 0.3rem 0.6rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-confirmed {
  background-color: #d4edda;
  color: #155724;
}

.status-declined {
  background-color: #f8d7da;
  color: #721c24;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.btn-danger {
  background-color: #dc3545;
}

.btn-danger:hover {
  background-color: #bd2130;
}

.btn-decline {
  background-color: #dc3545;
  margin: 0; /* Remove top margin */
}

.btn-decline:hover {
  background-color: #bd2130;
}

.code-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
}

.code-input-group input {
  flex: 1;
}

.codigo-invitacion {
  display: block;
  margin-bottom: 8px;
  font-family: monospace;
}

.copy-link-btn {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}

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

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.shared-message {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: stretch;
}

.form-buttons form {
  flex: 1;
  display: flex; /* Make the form a flex container */
}

.form-buttons button {
  width: 100%;
  height: 100%; /* Ensure buttons take full height */
  margin: 0; /* Remove any default margins */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px; /* Set a consistent minimum height */
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: var(--color-light);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideIn 0.4s;
}

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

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-secondary);
}

.close-modal:hover {
  color: var(--color-primary);
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-small {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: var(--color-light);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 5px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--color-background);
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-primary);
  margin: 0.5rem 0;
}

.stat-percent {
  font-size: 0.9rem;
  color: var(--color-secondary);
}

/* Footer */
footer {
  background-color: var(--color-secondary);
  color: var(--color-light);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-light);
}

.footer-date {
  font-family: var(--font-text);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--color-light);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--color-primary);
}

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .header-title {
    font-size: 3rem;
  }

  .timeline::after {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: left;
    padding-right: 0;
    padding-left: 70px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 20px;
  }

  .timeline-item:nth-child(odd)::after {
    right: auto;
    left: 20px;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-light);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    margin: 0.5rem 0;
  }

  nav.scrolled a, nav a {
    color: var(--color-text);
    font-weight: bold;
  }

  .menu-toggle {
    display: block;
    color: var(--color-light);
  }

  nav.scrolled .menu-toggle {
    color: var(--color-tertiary);
  }

  .header-title {
    font-size: 2.5rem;
  }

  .header-subtitle {
    font-size: 1.2rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .timeline-item:nth-child(even)::after {
    left: 20px !important;
  }
}

@media (max-width: 576px) {
  .header-title {
    font-size: 2rem;
  }

  .couple-img {
    width: 200px;
    height: 200px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  header {
    background: url('/public/img/header-bg-mobile.jpg') center center / cover;
  }
}

/* iPad/iOS specific styles */
@supports (-webkit-touch-callout: none) {
  /* iOS devices only */
  @media (min-width: 576px) {
    header {
      background: url('/public/img/header-bg-2.jpg') right center / 100% 21%;
    }
  }
}

/* Admin Login Styles */
.admin-login-section {
  padding: 120px 0 80px;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.admin-login-container {
  background-color: var(--color-light);
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-login-header h2 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.admin-login-container .form-group {
  margin-bottom: 1.5rem;
}

.admin-login-container .btn {
  width: 100%;
  margin-top: 1rem;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: var(--color-light);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideIn 0.4s;
}

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

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-secondary);
}

.close-modal:hover {
  color: var(--color-primary);
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-small {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

/* RSVP button styles - ensure perfect alignment */
.guest-actions .form-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.guest-actions .form-buttons form {
  flex: 1;
  max-width: 250px;
}

.guest-actions .form-buttons button {
  padding: 12px 15px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 100%;
}

.guest-actions .btn {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.guest-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.guest-actions .btn-decline:hover {
  background-color: #c82333;
}

/* Responsive styles for countdown */
@media (max-width: 768px) {
  .countdown {
    gap: 15px;
  }
  
  .countdown-unit {
    padding: 5px;
  }
  
  .countdown-unit span:first-child {
    font-size: 3.5rem;
  }
  
  .countdown-label {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .countdown {
    gap: 8px;
  }
  
  .countdown-unit {
    padding: 3px;
  }
  
  .countdown-unit span:first-child {
    font-size: 3rem;
  }
  
  .countdown-label {
    font-size: 0.8rem;
  }
}

section.evento-2 {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    padding-top: 0;
}

/* Card layout styles */
.evento-2 {
  .card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px; /* space between cards */
  }

  .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: var(--color-tertiary);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 478px;
  }

  .card img {
    /* max-width: 116px;
    height: 74px; */
    border-radius: 10px 10px 0 0;
  }

  .card.rings {
    img {
      width: 120px !important;
      height: 100px !important;
      margin-bottom: 20px;
      margin-top: 20px;
    }
  }

  .card.glasses {
    img {
      width: 140px !important;
      height: 140px !important;
    }
  }

  .button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: var(--color-tertiary);
    color: var(--color-light);
    border-color: var(--color-primary);
    border: 2.5px solid var(--color-primary);
    text-decoration: none;
    border-radius: 30px;
  }

  @media (min-width: 768px) {
    .card-container {
      flex-direction: row;
    }
  }
}

/* Responsive card layout */
@media (max-width: 767px) {
  .card-container {
    flex-direction: column;
    width: 90%;
  }
  .card {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (min-width: 768px) {
  .card-container {
    flex-direction: row;
    width: 90%;
    justify-content: space-between;
  }
  .card {
    width: 48%;
  }
}