/* Mobile */
@media only screen and (max-width: 767px) {
  :root {
    /* Ajuste fijo entre la tarjeta de ceremonia y el separador floral */
    --separador-gap-after-card: 85px;
    --separador-flor-overlap-card: 135px;
    --separador-flor-width-mobile: 370px;
  }

  #modalMusica .modal-content p {
    font-size: 52px;
    line-height: 52px;
    letter-spacing: 0.045em;
    padding-bottom: 8px;
  }

  #modalMusica .modal-content p::before {
    font-size: 148px;
    top: 64%;
  }

  #modalMusica .modal-content p span {
    font-size: 34px;
    line-height: 34px;
    padding-bottom: 16px;
  }

  #modalMusica .modal-content .boton {
    margin: 0 5px 15px;
    min-width: 0;
    width: calc(50% - 12px);
    max-width: none;
    min-height: 88px;
    padding: 16px 8px;
    font-size: 16px;
    line-height: 22px;
  }

  #modalMusica .adorno {
    width: 100%;
    max-width: 420px;
  }

  #modalMusica .adorno.adorno-2 {
    margin-top: 20px;
  }

  #modalMusica .modal-content span.aclara-musica {
    font-size: 33px;
    line-height: 34px;
    margin-top: -8px;
    margin-bottom: 4px;
  }

  #modalMusica .adorno-musica {
    margin-bottom: 7px;
    max-width: 230px;
    width: 64%;
  }

  #modalMusica .adorno-musica span::before {
    font-size: 21px;
  }

  #modalMusica .adorno-musica i {
    font-size: 17px;
  }

  .title {
    font-size: 45px;
    line-height: 50px;
    padding: 0 15px;
    margin-bottom: 0;
  }

  .subtitle {
    font-size: 19px;
    padding: 0 15px;
    margin-top: 25px;
  }

  section.portada .content-portada h1 {
    font-size: 70px;
    line-height: 75px;
  }

  section.portada .box-nombres-fecha-portada {
    background: url("../img/ampersand.svg") center center no-repeat;
    background-size: 170px;
    background-position-y: 65px;
    padding-bottom: 20px;
  }

  section.portada .portada-picture {
    width: 100%;
    height: 400px;
    position: relative;
  }

  section.portada .portada-picture::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../img/portada-curva-original.webp");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    z-index: 0;
    top: 1px;
    left: 0;
  }

  section.portada .adorno-1,
  section.portada .adorno-2,
  section.portada .adorno-3,
  section.portada .adorno-4 {
    display: none;
  }

  section.portada .portada-container .row.d-flex {
    height: 600px;
  }

  section.portada .portada-container {
    width: 100%;
    padding-bottom: 0;
  }

  section.cuenta-regresiva .box-aros {
    width: var(--contador-aro-size);
    height: var(--contador-aro-size);
    top: var(--contador-aro-y);
  }

  section.portada .box-nombres-fecha-portada h1 span {
    font-size: 40px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    margin-bottom: 15px;
  }

  section.portada .content-portada span.fecha:before {
    right: -40px;
  }

  section.portada .content-portada span.fecha:after {
    left: -40px;
  }

  section.portada .content-portada {
    width: 95%;
  }

  section.portada .content-portada span.fecha {
    font-size: 25px;
    margin-bottom: 35px;
    margin-top: 0;
  }

  section.portada .box-frase-portada p {
    font-size: 20px;
  }

  section.portada .box-frase-portada {
    margin-top: 25px;
    margin-bottom: 55px;
  }

  section.portada::after {
    display: none;
  }

  section.portada > .d-md-flex {
    --flor-izquierda-ancho: 58%;
    --flor-izquierda-x: -30px;
    --flor-izquierda-y: 70px;
    --pluma-derecha-ancho: 45%;
    --pluma-derecha-x: -5px;
    --pluma-derecha-y: 55px;
    --portada-foto-alto: 300px;
    display: block !important;
    max-width: 100%;
  }

  section.portada .portada-picture {
    background-image: url("../img/portada-mobile-nueva.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 360px;
    position: relative;
    width: 100%;
  }

  section.portada .portada-picture::after {
    display: none;
  }

  section.portada .portada-diseno-chatgpt {
    display: block;
    height: auto;
    margin-top: -103px;
    position: relative;
    width: 100%;
    z-index: 4;
  }

  section.portada .portada-flores {
    display: none;
  }

  section.portada .portada-flor-izquierda,
  section.portada .portada-pluma-derecha {
    display: none;
    margin: 0;
    position: absolute;
    transform: translateY(-100%);
    z-index: 5;
  }

  section.portada .portada-flor-izquierda {
    left: var(--flor-izquierda-x);
    top: calc(var(--portada-foto-alto) + var(--flor-izquierda-y));
    width: var(--flor-izquierda-ancho);
  }

  section.portada .portada-pluma-derecha {
    right: var(--pluma-derecha-x);
    top: calc(var(--portada-foto-alto) + var(--pluma-derecha-y));
    width: var(--pluma-derecha-ancho);
  }

  section.portada .portada-flor-izquierda img,
  section.portada .portada-pluma-derecha img {
    display: block;
    width: 100%;
  }

  section.portada .portada-flor-izquierda {
    display: none;
  }

  section.portada .portada-container {
    background: var(--color-4);
    display: none;
    padding: 74px 24px 70px;
    width: 100%;
  }

  section.portada .portada-container .portada-container-2 {
    background: transparent;
    padding-bottom: 0;
  }

  section.portada .portada-container-2 > picture {
    display: none;
  }

  section.portada .portada-container .row.d-flex {
    height: auto;
  }

  section.portada .box-nombres-fecha-portada {
    background: none;
    padding-bottom: 0;
  }

  section.portada .content-portada {
    width: 100%;
  }

  section.portada .content-portada span.fecha {
    border: none;
    color: #728c76;
    display: inline-flex;
    font-size: 28px;
    gap: 12px;
    line-height: 1;
    margin: 0 0 28px;
    padding: 0;
  }

  section.portada .content-portada span.fecha::before,
  section.portada .content-portada span.fecha::after {
    background: rgba(114, 140, 118, 0.32);
    content: "";
    display: inline-block;
    height: 1px;
    position: static;
    width: 44px;
  }

  section.portada .content-portada h1 {
    color: #bf6f84;
    font-size: 57px;
    letter-spacing: 0.045em;
    line-height: 0.9;
    padding: 0;
  }

  section.portada .box-nombres-fecha-portada h1:nth-of-type(2) {
    margin-top: 0;
  }

  section.portada .box-nombres-fecha-portada h1 + span {
    background: transparent;
    color: #ead0da;
    font-family: "Cormorant Garamond", var(--fuente-1);
    font-size: 56px;
    height: auto;
    line-height: 0.65;
    margin: 4px 0 8px;
    width: auto;
  }

  section.portada .content-portada h1 + span::before,
  section.portada .content-portada h1 + span::after {
    display: none;
  }

  section.portada .box-frase-portada {
    margin: 38px 0 0;
  }

  section.portada .box-frase-portada p {
    color: #9c82ad;
    font-family: var(--fuente-welcome-script);
    font-size: 39px;
    line-height: 1.12;
    white-space: nowrap;
  }

  ul.lang-inv {
    top: -60px;
  }

  section.cuenta-regresiva .box-aros .box-circulo span.falta {
    font-size: 45px;
    margin-top: 10px;
  }

  section.cuenta-regresiva .reloj-col span.number {
    font-size: 35px;
  }

  section.footer .col-nombres-footer {
    padding: 12px 0 24px;
  }

  section.footer .logo-boda-footer {
    max-width: 380px;
    width: min(92vw, 380px);
  }

  section.footer .col-acciones-footer ul {
    padding: 0;
    margin: 0;
    text-align: center;
    margin-top: 35px;
  }

  section.cuenta-regresiva .reloj-col span.time {
    font-size: 18px;
  }

  section.footer .col-acciones-footer ul a,
  section.footer .addeventatc span.nameBtn {
    font-size: 18px;
  }

  section.cuenta-regresiva .box-aros .box-circulo {
    padding: 28px 20px;
    height: var(--contador-contenido-size);
    width: var(--contador-contenido-size);
    max-width: 350px;
  }

  section.ceremonia-fiesta .col-ceremonia h3,
  section.ceremonia-fiesta .col-fiesta h3 {
    font-size: clamp(24px, 6.2vw, 30px);
    line-height: 1.2;
    padding: 12px 20px;
    width: fit-content;
    max-width: calc(100% - 62px);
    margin: 0 auto;
    text-align: center;
    white-space: nowrap;
  }

  section.ceremonia-fiesta .col-ceremonia .anim-anillos,
  section.ceremonia-fiesta .anim-fiesta {
    width: 40%;
    height: auto;
  }

  section.ceremonia-fiesta .col-ceremonia {
    margin-bottom: 45px;
  }

  section.ceremonia-fiesta .adorno-1 {
    position: absolute;
    width: 80px;
    top: 655px;
    left: -1px;
  }

  section.ceremonia-fiesta .adorno-2 {
    position: absolute;
    width: 85px;
    top: 655px;
    left: -1px;
  }

  section.ceremonia-fiesta .adorno-3 {
    position: absolute;
    width: 90px;
    top: 655px;
    left: -1px;
  }

  section.instagram {
    padding-top: 35%;
    padding-bottom: 50%;
  }

  section.instagram .title {
    font-size: 40px;
    position: relative;
    top: -34px;
  }

  section.instagram .subtitle,
  section.instagram .celebriam-logo-anim {
    position: relative;
    top: -34px;
  }

  section.instagram .celebriam-logo-anim {
    top: 118px;
  }

  section.instagram .boton {
    display: inline-block;
    position: relative;
    top: 156px;
  }

  section.footer {
    padding-bottom: 20%;
    padding-top: 18%;
  }

  section.regalos {
    padding: 120px 0;
  }

  section.fiesta {
    padding-bottom: 35%;
    padding-top: 55px;
  }

  section.fiesta .subtitle {
    padding-bottom: 50px;
  }

  section.fiesta .item-fiesta .adorno.adorno-1 {
    position: absolute;
    top: -82px;
    left: 8px;
    z-index: 0;
    width: 145px;
  }

  section.fiesta .item-fiesta .adorno.adorno-2 {
    position: absolute;
    top: -30px;
    left: 15px;
    z-index: 3;
    width: 110px;
  }

  section.ceremonia-fiesta {
    padding-top: calc(17% + 100px);
    padding-bottom: var(--separador-gap-after-card);
  }

  section.galeria {
    padding-top: 10px;
  }

  section.galeria .carrusel {
    max-width: min(82vw, 360px);
  }

  #modalMapa .modal-header .modal-title {
    font-size: 25px;
    line-height: 30px;
    margin-top: 0;
  }

  #modalMapa .modal-content-2 .adorno-1 {
    top: -112px;
  }

  #modalMapa .modal-dialog {
    margin-top: 22px;
  }

  #modalMapa .modal-content-2 .img-top-modal {
    height: 96px;
  }

  #modalMapa .modal-dialog .white-circle-icon {
    width: 145px;
    top: -76px;
  }

  #modalMapa iframe {
    height: 36vh;
    min-height: 300px;
  }

  section.ceremonia-fiesta .info-col .info-box a.boton {
    min-width: 80%;
  }

  section.fiesta .fiesta-flor-izq {
    max-width: 25%;
    bottom: -30%;
  }

  section.fiesta:after {
    background-size: min(94%, 520px) auto;
    bottom: -95px;
    height: 170px;
  }

  section.instagram:before {
    top: -2px;
  }

  section.instagram .hashtag {
    font-size: 40px;
  }

  section.instagram:after {
    bottom: 0;
  }

  section.fiesta .item-fiesta a.boton {
    min-width: 100%;
  }

  #controlador-musica {
    top: initial;
    bottom: 0;
    right: 0;
  }

  .music-anim-icon {
    width: 80px;
    height: 80px;
    cursor: pointer;
  }

  section.footer .col-acciones-footer ul li {
    text-align: center;
    margin-bottom: 15px;
  }

  section.cuenta-regresiva {
    --contador-aro-size: 400px;
    --contador-aro-y: 0px;
    --contador-contenido-size: 230px;
    height: 360px;
    padding-top: 34px;
  }

  section.ceremonia-fiesta:after {
    /* Cambia este valor para mover el separador floral: más negativo = más arriba */
    display: none;
  }

  .separador-galeria {
    /* Para moverla: sube/baja --separador-flor-overlap-card, no uses porcentajes */
    --separador-flor-top: calc(
      0px - var(--separador-gap-after-card) - var(--separador-flor-overlap-card)
    );
    --separador-flor-width: var(--separador-flor-width-mobile);
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .separador-galeria img {
    max-width: none;
    width: var(--separador-flor-width);
  }

  section.regalos .adorno-1 {
    position: absolute;
    width: 80px;
    top: 300px;
    left: -1px;
  }

  section.regalos .adorno-2 {
    position: absolute;
    width: 85px;
    top: 300px;
    left: -1px;
  }

  section.regalos .adorno-3 {
    position: absolute;
    width: 90px;
    top: 300px;
    left: -1px;
  }

  .modal-dialog .white-circle-icon {
    top: -80px;
  }

  .modal .modal-content-2 .adorno-2 {
    position: absolute;
    width: 95px;
    top: -39px;
    left: -30px;
  }

  .modal .modal-content-2 .adorno-1 {
    position: absolute;
    width: 118%;
    max-width: 380px;
    height: auto;
    top: -112px;
    left: 50%;
    margin-left: 0;
    margin-right: 0;
    transform: translateX(-50%);
    z-index: 1;
  }

  .modal .modal-content-2 .modal-header .modal-title {
    font-size: 25px;
    line-height: 30px;
    font-family: var(--fuente-1);
    font-weight: var(--grosor-fuente-regular);
  }

  .flags-laguages {
    padding: 5px;
  }
  .fila-invitado {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    width: 100%;
  }

  .fila-invitado input,
  .fila-invitado select {
    width: 100%;
  }

  .modal-asistencia-fijo {
    margin: 140px 15px 20px 15px;
  }

  #listaInvitados {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .invitado-item,
  .bloque-invitado {
    margin: 0 !important;
  }

  .fila-select {
    margin-bottom: 10px;
  }

  .fila-asistencia {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .opciones-asistencia {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    white-space: nowrap;
  }

  .opciones-asistencia .form-check {
    margin: 0;
    white-space: nowrap;
  }

  .opciones-asistencia label {
    white-space: nowrap;
    font-size: 14px;
  }

  .opciones-asistencia .custom-control-label::before,
  .opciones-asistencia .custom-control-label::after {
    width: 16px;
    height: 16px;
    top: 2px;
  }

  .opciones-asistencia .form-check-input {
    transform: scale(0.85);
    margin-top: 2px;
  }

  .btn-eliminar {
    width: 32px;
    height: 32px;
    font-size: 16px;
    line-height: 32px;
    border-radius: 50%;
  }
}
