/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #f8f5f1;
  --color-primary: #b2d8d8; /* celeste suave */
  --color-secondary: #cde0c3; /* verde suave */
  --color-accent: #e6d3b3; /* beige dorado */
  --color-text: #2c2c2c;
  --font-main: 'Georgia', serif;
  --font-accent: 'Playfair Display', serif;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

header {
  background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: white;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

nav a {
  padding: 1rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: bold;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: var(--color-accent);
  color: white;
}

section {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: auto;
}

h2 {
  font-family: var(--font-accent);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Código de vestimenta */
.dresscode {
  background-color: var(--color-secondary);
  padding: 1rem;
  border-left: 5px solid var(--color-accent);
  margin-bottom: 2rem;
  font-style: italic;
}

/* Lista de regalos */
.gift-list ul {
  list-style-type: none;
  padding: 0;
}

.gift-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ccc;
}

/* Mapa */
.map iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
}

/* Confirmación de asistencia */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea, select, button {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

button {
  background-color: var(--color-accent);
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: var(--color-primary);
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--color-primary);
  color: white;
  margin-top: 2rem;
}

/* Responsive ajustes */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  nav a {
    flex: 1 1 50%;
    text-align: center;
  }

  section {
    padding: 1.5rem 1rem;
  }
}