/* ============================================================================
   MODAL / 01 - BIENVENIDA PREMIUM E. MIRANDA, SERVICIO EN TODA GUATEMALA
   Se carga ÚNICAMENTE en la página Home (español e inglés).
   El panel se adapta a móvil y permite cerrar siempre con un toque.
============================================================================ */
.em-home-modal[hidden] { display: none !important; }
.em-home-modal { position: fixed; inset: 0; z-index: 11000; display: grid; place-items: center;
    padding: clamp(10px, 2.5vw, 22px); isolation: isolate; }
.em-home-modal-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 5, .87);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.em-home-modal-panel { position: relative; display: grid; grid-template-columns: .83fr 1fr;
    width: min(100%, 870px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
    background: #130f12; border: 1px solid rgba(201, 152, 103, .5); border-radius: 16px;
    box-shadow: 0 34px 130px rgba(0,0,0,.74), 0 0 0 5px rgba(132, 80, 59, .1); color: #faf5f1;
    animation: em-home-modal-in .38s cubic-bezier(.2,.75,.28,1) both; }
.em-home-modal-panel:focus { outline: none; }
.em-home-modal-x { position: absolute; z-index: 2; right: 14px; top: 14px; display: grid;
    place-items: center; height: 40px; width: 40px; border: 1px solid rgba(224,191,169,.35);
    border-radius: 50%; background: rgba(18,12,15,.88); color: #fff; cursor: pointer; }
.em-home-modal-x span { display: block; font-size: 27px; font-weight: 300; line-height: 1; transform: translateY(-1px); }
.em-home-modal-x:hover, .em-home-modal-x:focus-visible { background: #b12537; border-color: #ef6e7d; }
.em-home-modal-visual { position: relative; min-height: 430px; overflow: hidden; background:
    radial-gradient(ellipse at 40% 26%, #644045, #21151a 55%, #090709); }
.em-home-modal-image { width: 100%; height: 100%; display: block; position: absolute; inset: 0;
    object-fit: cover; object-position: center 35%; }
.em-home-modal-visual::after { content: ''; position: absolute; inset: 0;
    pointer-events: none; background: linear-gradient(0deg, rgba(12,5,7,.85), transparent 48%), linear-gradient(90deg, transparent 75%, rgba(12,5,7,.25)); }
.em-home-modal-visual-tag, .em-home-modal-visual-bottom { position: absolute; z-index: 1; left: 27px; color: #fff; }
.em-home-modal-visual-tag { top: 24px; font-size: .64rem; letter-spacing: .3em; font-weight: 700; }
.em-home-modal-visual-bottom { bottom: 30px; display: grid; gap: 14px; font-size: .65rem;
    letter-spacing: .23em; line-height: 1.6; font-weight: 700; }
.em-home-modal-stroke { width: 75px; height: 1px; background: #d8ad7c; }
.em-home-modal-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center;
    padding: clamp(27px,4.2vw,54px); }
.em-home-modal-brand { display: flex; align-items: center; gap: 9px; color: #d3b89a;
    font-size: .72rem; font-weight: 750; letter-spacing: .18em; }
.em-home-modal-brand i { color: #e39fa6; font-size: 1.1rem; }
.em-home-modal-kicker { display: flex; align-items: center; gap: 8px; margin: 30px 0 12px;
    color: #d9a680; font-size: .65rem; letter-spacing: .22em; font-weight: 700; }
.em-home-modal-kicker span { width: 6px; height: 6px; border-radius: 50%; background: #f44f61; }
.em-home-modal-copy h2 { margin: 0 0 10px; font: 500 clamp(2.6rem, 4vw, 4.1rem)/1.11 'Playfair Display',Georgia,serif;
    letter-spacing: -.035em; text-wrap: balance; color: #fff; }
.em-home-modal-copy h2 em { display: block; color: #f25f69; font-style: normal; }
.em-home-modal-country { display: inline-flex; align-items: center; gap: 8px; align-self: start;
    margin: 11px 0 14px; padding: 8px 11px; border: 1px solid rgba(225,175,118,.36);
    background: rgba(226,161,96,.075); border-radius: 4px; color: #f1c999; font-weight: 750; font-size: .93rem; }
.em-home-modal-description { margin: 0; max-width: 390px; color: #cfc3c4;
    font-size: .92rem; line-height: 1.76; }
.em-home-modal-actions { display: grid; gap: 8px; margin-top: 24px; }
.em-home-modal-primary { min-height: 49px; display: flex; align-items: center; justify-content: center;
    gap: 12px; padding: 12px; border-radius: 6px; color: #fff !important; font-size: .86rem;
    line-height: 1.3; font-weight: 750; text-align: center; text-decoration: none !important;
    background: linear-gradient(100deg, #e14351, #b82239); box-shadow: 0 14px 33px rgba(191,20,42,.25); }
.em-home-modal-primary:hover, .em-home-modal-primary:focus-visible { background: linear-gradient(100deg, #f45360, #cc263e); }
.em-home-modal-secondary { display: flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 43px; border: 1px solid rgba(212,182,176,.2); border-radius: 6px;
    background: transparent; color: #eee0de; font-weight: 650; font-size: .82rem; cursor: pointer; }
.em-home-modal-secondary:hover, .em-home-modal-secondary:focus-visible { color: #fff; background: rgba(255,255,255,.07); }
.em-home-modal-footnote { margin: 16px 0 0; color: #a99595; font-size: .68rem; line-height: 1.5; text-align: center; }
.em-home-modal-open { overflow: hidden !important; }
.em-home-modal button:focus-visible, .em-home-modal a:focus-visible { outline: 2px solid #f7c78e; outline-offset: 3px; }
@keyframes em-home-modal-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ============================================================================
   MODAL / 02 - TABLETS: COMPOSICIÓN EQUILIBRADA
============================================================================ */
@media (max-width: 760px) {
  .em-home-modal-panel { grid-template-columns: 1fr; max-width: 430px; }
  .em-home-modal-visual { min-height: 0; height: clamp(128px, 24dvh, 205px); }
  .em-home-modal-visual .em-home-modal-image { object-position: center 33%; }
  .em-home-modal-visual-tag { top: 14px; left: 20px; }
  .em-home-modal-visual-bottom { bottom: 14px; left: 20px; font-size: .59rem; gap: 8px; }
  .em-home-modal-copy { padding: 20px 24px 22px; }
  .em-home-modal-brand { font-size: .63rem; }
  .em-home-modal-kicker { margin: 14px 0 8px; font-size: .6rem; }
  .em-home-modal-copy h2 { font-size: clamp(2.08rem, 8.5vw, 2.8rem); }
  .em-home-modal-country { font-size: .81rem; margin: 9px 0; }
  .em-home-modal-description { font-size: .84rem; line-height: 1.55; }
  .em-home-modal-actions { margin-top: 15px; }
  .em-home-modal-primary { min-height: 47px; }
  .em-home-modal-footnote { margin-top: 10px; font-size: .65rem; }
}
/* ============================================================================
   MODAL / 03 - MÓVILES BAJOS: CONTENIDO DESPLAZABLE SIN OCULTAR CIERRE
============================================================================ */
@media (max-width: 400px) {
  .em-home-modal { padding: 9px; }
  .em-home-modal-panel { max-height: calc(100dvh - 18px); border-radius: 12px; }
  .em-home-modal-visual { height: clamp(105px, 18dvh, 155px); }
  .em-home-modal-copy { padding: 16px 18px 20px; }
  .em-home-modal-copy h2 { font-size: clamp(2rem, 10vw, 2.35rem); }
  .em-home-modal-description { font-size: .8rem; }
  .em-home-modal-primary { font-size: .81rem; }
  .em-home-modal-x { right: 10px; top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .em-home-modal-panel { animation: none; }
  .em-home-modal-primary { transition: none; }
}
