/* ==========================================================================
   RESPONSIVE.CSS - PANTALLA COMPLETA TOTAL (MÓVIL, TABLET Y PANTALLA SETUP / PC)
   Boda Olivia & Daniel - Sin espacios laterales ni bordes vacíos
   Edge-to-Edge Responsive System
   ========================================================================== */

/* --------------------------------------------------------------------------
   REGLAS BASE OBLIGATORIAS: PANTALLA COMPLETA Y CERO ESPACIOS LATERALES
   -------------------------------------------------------------------------- */
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--parchment) !important;
  overflow-x: hidden !important;
  display: block !important;
}

main,
.main-invitation-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
  background-color: var(--parchment);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Todas las secciones del contenido principal a 100% de ancho */
.invitation-header,
.couple-portrait-section,
.invitation-text-section,
.blessing-parents-section,
.save-the-date-section,
.night-photo-break,
.wedding-program-section,
.dress-code-section,
.quote-section,
.venues-section,
.gallery-section,
.website-qr-section,
.rsvp-section,
.final-closing-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   1. TELÉFONOS MÓVILES (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
  .invitation-header {
    padding: 0rem 1rem 0.5rem 1rem;
  }

  .couple-title-main {
    font-size: 2.6rem;
  }

  .couple-script-and {
    font-size: 2.25rem;
  }

  .wedding-script-title {
    font-size: 2.65rem;
  }

  .arch-photo-wrapper,
  .arch-portrait-wrapper {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    position: relative;
  }

  .arch-frame-inner {
    height: 380px;
  }

  .blessing-quote-card,
  .parents-block,
  .calendar-wrapper,
  .countdown-container,
  .timeline-container,
  .venues-cards-stack,
  .gallery-grid-2x2,
  .rsvp-box-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .gallery-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 0.5rem;
  }

  .gallery-thumb-item {
    height: 140px;
  }

  .save-the-date-content-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .calendar-wrapper {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
  }

  .countdown-container {
    width: 100%;
    max-width: 340px;
    margin: 1.5rem auto 0 auto;
  }

  .timeline-items-list {
    padding: 0 0.5rem;
  }

  .venues-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 0.75rem;
  }

  .rsvp-box-card {
    padding: 2rem 1.25rem;
    border-radius: 1rem;
    margin: 0 0.5rem;
  }

  /* Flores Decorativas en Móvil */
  .floral-crown-img {
    width: 100%;
    max-width: 100%;
  }

  .section-floral-corner img {
    width: 120px;
  }

  .arch-floral-corner {
    bottom: -10px;
  }

  .arch-floral-corner.left {
    left: -12px;
  }

  .arch-floral-corner.right {
    right: -12px;
  }

  .arch-floral-corner img {
    width: 110px;
  }
}

/* ==========================================================================
   2. PANTALLAS TABLET (768px – 1023px)
   Distribución ampliada sin espacios vacíos laterales
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .invitation-header {
    padding: 0rem 1.5rem 1.25rem 1.5rem;
  }

  .couple-title-main {
    font-size: 3.6rem;
  }

  .couple-script-and {
    font-size: 3rem;
  }

  .wedding-script-title {
    font-size: 3.6rem;
  }

  .arch-photo-wrapper,
  .arch-portrait-wrapper {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    position: relative;
  }

  .arch-frame-inner {
    height: 500px;
  }

  .invitation-body-quote {
    max-width: 720px;
    font-size: 1.2rem;
    margin: 0.75rem auto 0 auto;
    padding: 0 1.5rem;
  }

  /* Cita de Bendición a todo el ancho */
  .blessing-quote-card {
    width: 100%;
    max-width: 100%;
    padding: 2.5rem 2rem;
    margin: 0 0 2rem 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .blessing-quote-text {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
  }

  /* Padres en 3 Columnas a pantalla completa */
  .parents-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2.5rem 1.5rem;
    align-items: center;
  }

  .parent-divider {
    display: none;
  }

  .parent-names {
    font-size: 1.35rem;
  }

  /* Save the Date Lado a Lado a todo el ancho */
  .save-the-date-section {
    padding: 3.5rem 1.5rem;
  }

  .save-the-date-content-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
    margin: 2rem 0 0 0;
    align-items: center;
    justify-items: center;
  }

  .calendar-wrapper {
    margin: 0;
    width: 100%;
    max-width: 340px;
  }

  .countdown-container {
    margin: 0;
    width: 100%;
    max-width: 360px;
  }

  /* Banner nocturno edge-to-edge */
  .night-photo-break {
    height: 280px;
    margin: 2.5rem 0;
    width: 100%;
  }

  .night-photo-overlay .with-love-script {
    font-size: 2.6rem;
  }

  .night-photo-overlay .names-tag {
    font-size: 1.6rem;
  }

  /* Itinerario Alternado a todo el ancho */
  .wedding-program-section {
    padding: 3.5rem 1.5rem;
  }

  .timeline-container {
    width: 100%;
    max-width: 620px;
    margin: 2.5rem auto 0 auto;
    padding: 1rem 1.5rem;
  }

  .timeline-items-list {
    gap: 2.5rem;
  }

  .timeline-row {
    width: 48%;
    max-width: 290px;
  }

  .timeline-row.timeline-step-left {
    margin-right: auto;
    margin-left: 0;
    flex-direction: row;
    text-align: left;
  }

  .timeline-row.timeline-step-right {
    margin-left: auto;
    margin-right: 0;
    flex-direction: row-reverse;
    text-align: right;
  }

  .timeline-icon-badge {
    width: 60px;
    height: 60px;
  }

  .timeline-icon-badge img {
    width: 34px;
    height: 34px;
  }

  .timeline-time {
    font-size: 1.2rem;
  }

  .timeline-desc {
    font-size: 0.95rem;
  }

  .timeline-heart-sep {
    margin: -1rem 0;
    font-size: 12px;
  }

  /* Dress code edge-to-edge */
  .dress-code-section {
    margin: 3.5rem 0;
    width: 100%;
  }

  .dress-code-content {
    padding: 3.5rem 1.5rem;
    width: 100%;
    max-width: 100%;
  }

  .gift-registry-text {
    max-width: 700px;
    margin: 1rem auto 0 auto;
    font-size: 1.15rem;
  }

  /* Cita Romántica */
  .quote-section {
    padding: 3.5rem 1.5rem;
    width: 100%;
  }

  .quote-section blockquote {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.3rem;
  }

  /* Ubicaciones en 2 Columnas a todo el ancho */
  .venues-section {
    padding: 3.5rem 1.5rem;
    width: 100%;
  }

  .venues-cards-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .venue-card {
    padding: 1.75rem;
  }

  .venue-photo-inner {
    height: 180px;
  }

  /* Galería en 4 Columnas horizontales a pantalla completa */
  .gallery-section {
    padding: 3.5rem 1.5rem;
    width: 100%;
  }

  .gallery-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0 0 0;
    padding: 0;
  }

  .gallery-thumb-item {
    height: 180px;
  }

  /* RSVP a todo el ancho */
  .rsvp-section {
    padding: 3.5rem 1.5rem;
    width: 100%;
  }

  .rsvp-box-card {
    width: 100%;
    max-width: 100%;
    padding: 3rem 2rem;
    margin: 0;
    border-radius: 1.25rem;
  }

  /* Cierre */
  .final-closing-box {
    height: 340px;
  }

  .final-thankyou-script {
    font-size: 4rem;
  }

  /* Flores Decorativas en Tablet */
  .floral-crown-img {
    width: 92%;
    max-width: 820px;
  }

  .section-floral-corner img {
    width: 175px;
  }

  .arch-floral-corner {
    bottom: -14px;
  }

  .arch-floral-corner.left {
    left: -16px;
  }

  .arch-floral-corner.right {
    right: -16px;
  }

  .arch-floral-corner img {
    width: 155px;
  }
}

/* ==========================================================================
   3. PANTALLAS SETUP / PC / DESKTOP (min-width: 1024px)
   EXPERIENCIA COMPLETA EDGE-TO-EDGE SIN ESPACIOS LATERALES NI MÁRGENES
   ========================================================================== */
@media (min-width: 1024px) {

  /* Encabezado Principal */
  .invitation-header {
    padding: 0rem 1.5rem 1.5rem 1.5rem;
    width: 100%;
  }

  .couple-title-main {
    font-size: 4.8rem;
    letter-spacing: 0.12em;
  }

  .couple-script-and {
    font-size: 3.8rem;
  }

  .wedding-script-title {
    font-size: 4.5rem;
  }

  .invite-subtitle {
    font-size: 11px;
    letter-spacing: 0.35em;
  }

  /* Retrato en Arco */
  .couple-portrait-section {
    padding: 2rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .arch-photo-wrapper,
  .arch-portrait-wrapper {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    position: relative;
  }

  .arch-frame-inner {
    height: 600px;
  }

  .invitation-text-section {
    padding: 2.5rem 1.5rem;
    width: 100%;
  }

  .getting-married-script {
    font-size: 2.8rem;
  }

  .getting-married-h3 {
    font-size: 1.35rem;
    letter-spacing: 0.35em;
  }

  .invitation-body-quote {
    max-width: 860px;
    font-size: 1.35rem;
    margin: 1.25rem auto 0 auto;
    line-height: 1.8;
    padding: 0 1.5rem;
  }

  /* Bendición Matrimonial a Pantalla Completa */
  .blessing-parents-section {
    padding: 2.5rem 0;
    width: 100%;
  }

  .blessing-quote-card {
    width: 100%;
    max-width: 100%;
    margin: 0 0 3rem 0;
    padding: 3.5rem 2rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-sizing: border-box;
  }

  .blessing-quote-text {
    font-size: 1.35rem;
    line-height: 1.9;
    max-width: 950px;
    margin: 0 auto;
  }

  /* Padres y Padrinos en 3 Columnas a 100% de Ancho */
  .parents-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 3rem 3rem;
    align-items: center;
    box-sizing: border-box;
  }

  .parent-divider {
    display: none;
  }

  .parent-role-tag {
    font-size: 11px;
    letter-spacing: 0.32em;
  }

  .parent-names {
    font-size: 1.55rem;
    margin-top: 0.4rem;
  }

  /* Save the Date a Pantalla Completa (2 Columnas Fluidas) */
  .save-the-date-section {
    padding: 4.5rem 2rem;
    width: 100%;
  }

  .save-the-date-title {
    font-size: 14px;
    letter-spacing: 0.4em;
  }

  .date-three-box {
    margin: 1.5rem 0;
  }

  .date-three-box span.num {
    font-size: 3.2rem;
  }

  .save-the-date-content-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 100%;
    margin: 3rem 0 0 0;
    padding: 0 4rem;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
  }

  .calendar-wrapper {
    margin: 0;
    width: 100%;
    max-width: 400px;
  }

  .calendar-header-grid {
    font-size: 12px;
    padding-bottom: 0.75rem;
  }

  .calendar-days-grid {
    font-size: 16px;
    row-gap: 1rem;
  }

  .calendar-day-active span {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .countdown-container {
    margin: 0;
    width: 100%;
    max-width: 440px;
  }

  .countdown-grid {
    gap: 1rem;
  }

  .countdown-item {
    padding: 1.25rem 0.75rem;
  }

  .countdown-item span.number {
    font-size: 2.8rem;
  }

  .countdown-item span.label {
    font-size: 11px;
    margin-top: 0.5rem;
  }

  .calendar-btn-link {
    padding: 1.1rem 2.5rem;
    font-size: 11px;
    margin-top: 1.75rem;
  }

  /* Banner Nocturno 100% Edge-to-Edge */
  .night-photo-break {
    height: 360px;
    margin: 4rem 0;
    width: 100%;
    max-width: 100%;
  }

  .night-photo-overlay .with-love-script {
    font-size: 3.4rem;
  }

  .night-photo-overlay .names-tag {
    font-size: 2.1rem;
    letter-spacing: 0.35em;
  }

  /* Itinerario Alternado a Pantalla Completa */
  .wedding-program-section {
    padding: 5rem 2rem;
    width: 100%;
  }

  .program-title {
    font-size: 2.6rem;
    letter-spacing: 0.3em;
  }

  .program-script {
    font-size: 3.2rem;
  }

  .timeline-container {
    width: 100%;
    max-width: 740px;
    margin: 3.5rem auto 0 auto;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
  }

  .timeline-items-list {
    gap: 3rem;
  }

  .timeline-row {
    width: 47%;
    max-width: 330px;
  }

  .timeline-row.timeline-step-left {
    margin-right: auto;
    margin-left: 0;
    flex-direction: row;
    text-align: left;
  }

  .timeline-row.timeline-step-right {
    margin-left: auto;
    margin-right: 0;
    flex-direction: row-reverse;
    text-align: right;
  }

  .timeline-time {
    font-size: 1.35rem;
  }

  .timeline-desc {
    font-size: 1.05rem;
  }

  .timeline-icon-badge {
    width: 66px;
    height: 66px;
  }

  .timeline-icon-badge img {
    width: 38px;
    height: 38px;
  }

  .timeline-heart-sep {
    margin: -1.25rem 0;
    font-size: 13px;
  }

  /* Dress Code Edge-to-Edge */
  .dress-code-section {
    margin: 5rem 0;
    width: 100%;
    max-width: 100%;
  }

  .torn-edge-spacer-top,
  .torn-edge-spacer-bottom {
    height: 28px;
  }

  .dress-code-content {
    padding: 5rem 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .dress-code-h3 {
    font-size: 15px;
    letter-spacing: 0.45em;
  }

  .swatches-palette {
    gap: 2rem;
    margin: 2.25rem 0;
  }

  .swatch-circle {
    width: 48px;
    height: 48px;
  }

  .gift-registry-text {
    max-width: 820px;
    margin: 1.25rem auto 0 auto;
    font-size: 1.3rem;
    line-height: 1.9;
  }

  /* Cita Romántica */
  .quote-section {
    padding: 4.5rem 2rem;
    width: 100%;
  }

  .quote-section blockquote {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.5rem;
    line-height: 1.9;
  }

  /* Ubicaciones en 2 Columnas a Pantalla Completa */
  .venues-section {
    padding: 5rem 2rem;
    width: 100%;
  }

  .venues-title {
    font-size: 2.5rem;
    letter-spacing: 0.35em;
  }

  .venues-subtitle {
    max-width: 750px;
    font-size: 1.25rem;
    margin: 0.5rem auto 3rem auto;
  }

  .venues-cards-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 4rem;
    box-sizing: border-box;
  }

  .venue-card {
    padding: 2.5rem;
    border-radius: 1.25rem;
  }

  .venue-place-name {
    font-size: 2.6rem;
  }

  .venue-time-badge {
    font-size: 1.15rem;
  }

  .venue-address-text {
    font-size: 14.5px;
    max-width: 380px;
  }

  .venue-photo-inner {
    height: 220px;
  }

  .venue-map-link {
    padding: 1rem 1.75rem;
    font-size: 11px;
    margin-top: 1.5rem;
  }

  /* Galería en 4 Columnas Panorámicas a Pantalla Completa */
  .gallery-section {
    padding: 5rem 2rem;
    width: 100%;
  }

  .gallery-title {
    font-size: 2.5rem;
    letter-spacing: 0.35em;
  }

  .gallery-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin: 2.5rem 0 0 0;
    padding: 0 3rem;
    box-sizing: border-box;
  }

  .gallery-thumb-item {
    height: 260px;
    border-radius: 0.85rem;
    padding: 6px;
  }

  .view-more-photos-btn {
    padding: 0.95rem 2.5rem;
    font-size: 11.5px;
    margin-top: 2.5rem;
  }

  /* Website & QR */
  .website-qr-section {
    padding: 4.5rem 2rem;
    width: 100%;
  }

  .website-qr-title {
    font-size: 2.1rem;
    letter-spacing: 0.3em;
  }

  .website-qr-desc {
    max-width: 600px;
    margin: 0.5rem auto 1.5rem auto;
    font-size: 1.2rem;
  }

  .qr-box-card {
    padding: 1.5rem;
    border-radius: 1.25rem;
  }

  .qr-box-card svg,
  .qr-box-card img,
  .qr-code-img {
    width: 190px;
    height: 190px;
    border-radius: 0.75rem;
  }

  .website-link-text {
    font-size: 11.5px;
    letter-spacing: 0.22em;
  }

  /* RSVP a Pantalla Completa */
  .rsvp-section {
    padding: 5rem 2rem;
    width: 100%;
  }

  .rsvp-box-card {
    width: 100%;
    max-width: 100%;
    padding: 4rem 3rem;
    border-radius: 1.5rem;
    margin: 0;
    box-sizing: border-box;
  }

  .rsvp-title-main {
    font-size: 2.5rem;
    letter-spacing: 0.35em;
  }

  .rsvp-script-sub {
    font-size: 3.2rem;
  }

  .rsvp-instructions {
    font-size: 1.25rem;
    max-width: 640px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
  }

  .whatsapp-rsvp-btn {
    max-width: 460px;
    margin: 0 auto;
    padding: 1.15rem 2rem;
    font-size: 12px;
  }

  .toggle-rsvp-form-btn {
    max-width: 460px;
    margin: 1.5rem auto 0 auto;
    font-size: 11px;
  }

  .rsvp-online-form {
    max-width: 540px;
    margin: 2rem auto 0 auto;
  }

  /* Banner de Cierre 100% Edge-to-Edge */
  .final-closing-footer {
    margin-top: 4rem;
    width: 100%;
    max-width: 100%;
  }

  .final-closing-box {
    height: 440px;
  }

  .final-thankyou-script {
    font-size: 5.2rem;
  }

  .final-cant-wait-text {
    font-size: 15px;
    max-width: 420px;
  }

  .final-date-tag span.date {
    font-size: 15px;
    letter-spacing: 0.3em;
  }

  /* Botón Flotante de Música */
  .floating-music-btn {
    bottom: 2.5rem;
    right: 2.5rem;
    width: 64px;
    height: 64px;
  }

  /* Flores Decorativas en Desktop Setup (Medio Grandes) */
  .floral-crown-img {
    width: 85%;
    max-width: 1150px;
  }

  .section-floral-corner img {
    width: 220px;
  }

  .arch-floral-corner {
    bottom: -16px;
  }

  .arch-floral-corner.left {
    left: -20px;
  }

  .arch-floral-corner.right {
    right: -20px;
  }

  .arch-floral-corner img {
    width: 185px;
  }
}

/* ==========================================================================
   4. MONITORES WIDESCREEN Y ULTRA-WIDE (min-width: 1440px)
   ========================================================================== */
@media (min-width: 1440px) {

  .parents-block {
    padding: 3.5rem 6rem;
  }

  .save-the-date-content-wrap {
    padding: 0 8rem;
    gap: 6rem;
  }

  .timeline-container {
    max-width: 820px;
    padding: 1.5rem 2rem;
  }

  .venues-cards-stack {
    padding: 0 8rem;
    gap: 4rem;
  }

  .gallery-grid-2x2 {
    padding: 0 6rem;
    gap: 2rem;
  }

  .gallery-thumb-item {
    height: 300px;
  }

  .night-photo-break {
    height: 420px;
  }

  .final-closing-box {
    height: 480px;
  }

  /* Flores en Pantallas Grandes / Ultra-Wide */
  .floral-crown-img {
    max-width: 1350px;
    width: 82%;
  }

  .section-floral-corner img {
    width: 260px;
  }

  .arch-floral-corner {
    bottom: -18px;
  }

  .arch-floral-corner.left {
    left: -24px;
  }

  .arch-floral-corner.right {
    right: -24px;
  }

  .arch-floral-corner img {
    width: 215px;
  }
}