*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --rosa: #f4c2d7;
  --rosa-oscuro: #8b2942;
  --burgundy: #6b1d32;
  --dorado: #c9a227;
  --dorado-claro: #e8d5a3;
  --crema: #fdf8f3;
  --texto: #4a1f28;
  --texto-suave: #7a4a55;
  --sombra: 0 8px 32px rgba(74, 31, 40, 0.14);
  --radio: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', system-ui, sans-serif;
  background: var(--crema);
  color: var(--texto);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

/* Fondo decorativo */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(244, 194, 215, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
    var(--crema);
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.hero__ornament {
  font-size: 1.5rem;
  color: var(--dorado);
  letter-spacing: 0.4em;
  margin-bottom: 0.5rem;
}

.hero__parents {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  color: var(--burgundy);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.hero__invite {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: var(--texto-suave);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero h1 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  color: var(--burgundy);
  margin-bottom: 0.15rem;
  font-weight: 400;
}

.hero__subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--rosa-oscuro);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.hero__message {
  font-size: 0.98rem;
  color: var(--texto-suave);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero__divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--dorado), transparent);
  margin: 0 auto 1.5rem;
}

/* Video */
.video-section {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.video-section h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--texto);
}

.video-wrapper {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 3px solid var(--dorado-claro);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-wrapper--vertical {
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #2a1f21 0%, #4a3540 100%);
  color: #fff;
  text-align: center;
  padding: 2rem;
  gap: 0.75rem;
}

.video-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.7;
}

.video-placeholder p {
  font-size: 0.95rem;
  opacity: 0.85;
  max-width: 320px;
}

/* Detalles del evento */
.details {
  max-width: 600px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.details__card {
  background: #fff;
  border-radius: var(--radio);
  padding: 2rem;
  box-shadow: var(--sombra);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.details h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(244, 194, 215, 0.4);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 194, 215, 0.3);
  border-radius: 50%;
  font-size: 1.1rem;
}

.detail-item__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texto-suave);
  margin-bottom: 0.15rem;
}

.detail-item__value {
  font-size: 1.05rem;
  font-weight: 500;
}

.detail-item__sub {
  font-size: 0.92rem;
  color: var(--texto-suave);
  margin-top: 0.2rem;
}

.detail-item a {
  color: var(--rosa-oscuro);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.detail-item a:hover {
  border-bottom-color: var(--rosa-oscuro);
}

/* Formulario RSVP */
.rsvp {
  max-width: 520px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.rsvp__card {
  background: #fff;
  border-radius: var(--radio);
  padding: 2rem;
  box-shadow: var(--sombra);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.rsvp h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.rsvp__hint {
  text-align: center;
  color: var(--texto-suave);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--texto);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(212, 137, 159, 0.35);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--crema);
  color: var(--texto);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--rosa-oscuro);
  box-shadow: 0 0 0 3px rgba(244, 194, 215, 0.35);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.radio-group {
  display: flex;
  gap: 1rem;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
  border: 2px solid rgba(212, 137, 159, 0.35);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  background: var(--crema);
}

.radio-option input:checked + label {
  border-color: var(--dorado);
  background: rgba(201, 162, 39, 0.12);
  color: var(--texto);
}

.radio-option input:focus-visible + label {
  box-shadow: 0 0 0 3px rgba(244, 194, 215, 0.5);
}

#grupo-acompanantes {
  transition: opacity 0.3s, max-height 0.3s;
}

#grupo-acompanantes.hidden {
  opacity: 0.4;
  pointer-events: none;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--rosa-oscuro) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(107, 29, 50, 0.35);
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107, 29, 50, 0.45);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Alertas */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  display: none;
}

.alert.visible {
  display: block;
}

.alert--success {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.35);
  color: #2e7d32;
}

.alert--error {
  background: rgba(211, 47, 47, 0.1);
  border: 1px solid rgba(211, 47, 47, 0.3);
  color: #c62828;
}

/* WhatsApp */
.whatsapp-action {
  margin-bottom: 1.5rem;
  text-align: center;
}

.whatsapp-action__hint {
  font-size: 0.92rem;
  color: var(--texto-suave);
  margin-bottom: 0.85rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 10px;
  background: #25d366;
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-whatsapp svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #fff;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

.footer__heart {
  color: var(--rosa-oscuro);
}

/* Responsive */
@media (max-width: 480px) {
  .radio-group {
    flex-direction: column;
  }

  .hero {
    padding-top: 2rem;
  }

  .rsvp__card,
  .details__card {
    padding: 1.5rem;
  }
}
