/* =========================================================
   LAYOUTS.CSS — Event Master
   Variaciones visuales por layout
========================================================= */

/* L1 — Editorial Clásico */
body.layout-l1 .invite-hero {
    padding: 26px 18px 10px;
}

body.layout-l1 .invite-card {
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 34px 28px 28px;
    border: none;
    border-radius: 34px;
    box-shadow: 0 24px 55px rgba(80, 55, 35, 0.16);
    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(255, 255, 255, 0.84) 48%,
            rgba(255, 255, 255, 0.46) 78%,
            rgba(255, 255, 255, 0.18) 100%
        );
    backdrop-filter: blur(8px);
}

body.layout-l1 .event-box {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

body.layout-l1 .event-row {
    padding: 15px 0;
}

body.layout-l1 .event-row + .event-row {
    border-top: 1px solid rgba(120, 90, 70, 0.12);
}

body.layout-l1 .invite-family-card,
body.layout-l1 .invite-additional-message {
    background: transparent;
    box-shadow: none;
    border: none;
}

body.layout-l1 .invite-card {
    width: min(100%, 390px);
    padding: 32px 24px 26px;
}

body.layout-l1 .event-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px 4px 0;
    margin-top: 22px;
}

body.layout-l1 .event-row {
    padding: 16px 0;
}

body.layout-l1 .event-row + .event-row {
    border-top: 1px solid rgba(120, 90, 70, 0.16);
}

body.layout-l1 .invite-card .event-box {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}

body.layout-l1 .invite-card .event-box::before,
body.layout-l1 .invite-card .event-box::after {
    display: none !important;
}

/* =========================================================
   L1 — Overrides finales sobre Template Engine
========================================================= */

body[data-template].layout-l1 .invite-card {
    width: min(100%, 390px) !important;
    padding: 32px 24px 26px !important;
    border: none !important;
    box-shadow: 0 24px 55px rgba(80, 55, 35, 0.12) !important;
    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.90) 0%,
            rgba(255, 255, 255, 0.76) 48%,
            rgba(255, 255, 255, 0.34) 78%,
            rgba(255, 255, 255, 0.06) 100%
        ) !important;
}

body[data-template].layout-l1 .invite-card .event-box {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 8px 4px 0 !important;
}

body[data-template].layout-l1 .event-row {
    padding: 16px 0 !important;
}

/* L1 — Experience Menu */
body[data-template].layout-l1 .bottom-nav.experience-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    background: rgba(255, 250, 247, 0.94) !important;
    border-top: 1px solid rgba(120, 90, 70, 0.12) !important;
    box-shadow: 0 -14px 36px rgba(70, 45, 35, 0.16) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)) !important;
}

body[data-template].layout-l1 .bottom-nav.experience-menu button {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 58px !important;
    padding: 6px 2px !important;
    font-size: 0.62rem !important;
    font-weight: 750 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    color: var(--template-primary, var(--primary)) !important;
    gap: 4px !important;
}

body[data-template].layout-l1 .bottom-nav.experience-menu .em-icon {
    width: 21px !important;
    height: 21px !important;
    margin-bottom: 2px !important;
}

body[data-template].layout-l1 .bottom-nav.experience-menu button + button {
    border-left: 1px solid rgba(120, 90, 70, 0.10) !important;
}

@media (max-width: 768px) {
    body[data-template].layout-l1 .bottom-nav.experience-menu {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        transform: none !important;
    }
}

@media (min-width: 769px) {
    body[data-template].layout-l1 .bottom-nav.experience-menu {
        left: 50% !important;
        width: 430px !important;
        max-width: 430px !important;
        transform: translateX(-50%) !important;
    }
}

/* L1 — Experience Menu ajuste fino */
body[data-template].layout-l1 .bottom-nav.experience-menu button {
    font-size: 0.58rem !important;
    font-weight: 700 !important;
}

body[data-template].layout-l1 .bottom-nav.experience-menu .em-icon {
    width: 19px !important;
    height: 19px !important;
}

body[data-template].layout-l1 .bottom-nav.experience-menu {
    box-shadow: 0 -10px 28px rgba(70, 45, 35, 0.12) !important;
}

/* =========================================================
   L1 — Compactación armónica final
========================================================= */

/* 1. Quitar ornamento superior y subir XV años */
body[data-template].layout-l1 .ornament {
    display: none !important;
}

body[data-template].layout-l1 .invite-card {
    padding-top: 22px !important;
}

body[data-template].layout-l1 .invite-label {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

/* 2. Compactar fecha, ceremonia y recepción */
body[data-template].layout-l1 .event-box {
    margin-top: 16px !important;
    padding-top: 4px !important;
}

body[data-template].layout-l1 .event-row {
    padding: 8px 0 !important;
}

body[data-template].layout-l1 .event-row + .event-row {
    border-top-color: rgba(120, 90, 70, 0.13) !important;
}

/* 3. Acercar padres/padrinos al texto previo */
body[data-template].layout-l1 .invite-short {
    margin-top: 14px !important;
    margin-bottom: 12px !important;
}

body[data-template].layout-l1 .invite-family-block {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

/* 4. Acercar texto adicional e invitado */
body[data-template].layout-l1 .invite-additional-message {
    margin-top: 8px !important;
    margin-bottom: 6px !important;
    padding-top: 6px !important;
}

body[data-template].layout-l1 .invite-card .guest-box {
    margin-top: 8px !important;
}

/* 5. Acercar countdown + RSVP al invitado */
body[data-template].layout-l1 .event-action-card {
    margin-top: 8px !important;
    margin-bottom: 14px !important;
}

/* Ajuste general de respiración */
body[data-template].layout-l1 .invite-hero {
    padding-top: 18px !important;
    padding-bottom: 10px !important;
}

/* L1 — Reducir espacio entre RSVP y menú inferior */
body[data-template].layout-l1 .event-action-card {
    margin-bottom: 4px !important;
}

body[data-template].layout-l1 .invite-hero {
    padding-bottom: 0 !important;
}

body[data-template].layout-l1 .invitation-phone {
    padding-bottom: 98px !important;
}

/* L1 — Cierre inferior compacto entre RSVP y menú */
body[data-template].layout-l1 .event-action-card {
    margin-bottom: 0 !important;
}

body[data-template].layout-l1 .invite-hero {
    padding-bottom: 0 !important;
}

body[data-template].layout-l1 .invite-card {
    margin-bottom: 0 !important;
}

body[data-template].layout-l1 .invitation-phone {
    padding-bottom: 82px !important;
}

body[data-template].layout-l1 .bottom-nav.experience-menu {
    bottom: 0 !important;
}

/* L1 — Refinamiento premium de iconos del menú */
body[data-template].layout-l1 .bottom-nav.experience-menu button {
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    opacity: 0.92 !important;
}

body[data-template].layout-l1 .bottom-nav.experience-menu .em-icon {
    width: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body[data-template].layout-l1 .bottom-nav.experience-menu .em-icon svg {
    width: 21px !important;
    height: 21px !important;
    stroke-width: 1.65 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

body[data-template].layout-l1 .bottom-nav.experience-menu button span {
    font-size: 0.56rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
}

body[data-template].layout-l1 .bottom-nav.experience-menu button:hover {
    opacity: 1 !important;
}
