/* ============================================
   TEMPLATE-BASE.CSS
   Estilos base compartidos por TODAS las plantillas
   de invitacion digital de Invitora.
   Mobile-first, full-width, sin scroll horizontal.
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
  color: var(--color-text, #333);
  background-color: var(--color-bg, #fff);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Layout full-width ---------- */
.template-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Contenedor interno para contenido que necesita lectura cómoda */
.invitation-inner {
  width: min(100% - 2.5rem, 1100px);
  margin-inline: auto;
}

/* Secciones full-bleed */
.section {
  width: 100%;
  padding: 3rem 1.25rem;
}

.section-alt {
  background-color: var(--color-secondary, #f5f0e8);
}

/* ---------- Tipografia ---------- */
.template-title {
  font-family: var(--font-accent, Georgia, serif);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
  text-align: center;
  margin-bottom: 0.75rem;
}

.template-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--color-text-light, #666);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-accent, Georgia, serif);
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-desc {
  text-align: center;
  color: var(--color-text-light, #666);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  cursor: pointer;
  border: none;
  min-height: 48px;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--color-primary, #c5a47e);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark, #a6835a);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
}

.btn-whatsapp:hover {
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary, #c5a47e);
  border: 2px solid var(--color-primary, #c5a47e);
}

.btn-outline:hover {
  background-color: var(--color-primary, #c5a47e);
  color: #fff;
}

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

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 1.25rem; }
.mb-3 { margin-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .section {
    padding: 4rem 2rem;
  }

  .invitation-inner {
    width: min(100% - 4rem, 1100px);
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 5rem 2rem;
  }
}
