/* EMMA Pool Party RSVP — tema sirenas / fiesta de alberca */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Pacifico&display=swap');

:root {
    --pink-bg-1: #ffe1ee;
    --pink-bg-2: #ffc9e0;
    --pink-bg-3: #ffd6ea;
    --aqua-1: #6fd6d0;
    --aqua-2: #3fb6c9;
    --gold: #ffd27a;
    --ink: #5a3350;
    --ink-soft: #8a5f7d;
    --white: #ffffff;
    --shadow-pink: rgba(214, 51, 132, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Verdana, Tahoma, sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 15% 10%, var(--pink-bg-3), transparent 55%),
                radial-gradient(circle at 85% 20%, var(--pink-bg-2), transparent 50%),
                linear-gradient(180deg, var(--pink-bg-1) 0%, var(--pink-bg-2) 60%, var(--pink-bg-3) 100%);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Glitter: destellos suaves distribuidos sobre el fondo */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 214, 122, 0.8) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 1px, transparent 1.5px);
    background-size: 90px 90px, 130px 130px, 60px 60px;
    background-position: 0 0, 40px 60px, 20px 90px;
    animation: glitterTwinkle 4s ease-in-out infinite alternate;
}

@keyframes glitterTwinkle {
    from { opacity: 0.35; }
    to { opacity: 0.85; }
}

.bubble-field {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bubble {
    position: absolute;
    bottom: -60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.15) 70%, transparent 75%);
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.6);
    animation-name: floatUp;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes floatUp {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.9; }
    100% { transform: translateY(-115vh) translateX(20px) scale(1.15); opacity: 0; }
}

.swimming-fish {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    opacity: 0;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(90, 51, 80, 0.15));
}

.swimming-fish.ltr {
    left: -60px;
    animation-name: swimLTR;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.swimming-fish.rtl {
    right: -60px;
    animation-name: swimRTL;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes swimLTR {
    0% {
        transform: translate3d(0, 0, 0) scaleX(-1) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.75;
    }
    50% {
        transform: translate3d(50vw, -15px, 0) scaleX(-1) rotate(-3deg);
    }
    90% {
        opacity: 0.75;
    }
    100% {
        transform: translate3d(110vw, 0, 0) scaleX(-1) rotate(0deg);
        opacity: 0;
    }
}

@keyframes swimRTL {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.75;
    }
    50% {
        transform: translate3d(-50vw, -20px, 0) rotate(-3deg);
    }
    90% {
        opacity: 0.75;
    }
    100% {
        transform: translate3d(-110vw, 0, 0) rotate(0deg);
        opacity: 0;
    }
}

.wave-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    line-height: 0;
    z-index: 0;
    pointer-events: none;
    color: var(--aqua-1);
    opacity: 0.55;
}

.wave-wrap svg {
    width: 100%;
    height: 90px;
    display: block;
}

.deco {
    position: absolute;
    width: 46px;
    height: 46px;
    color: var(--gold);
    opacity: 0.85;
    animation: decoFloat 6s ease-in-out infinite;
    z-index: 1;
}

.deco.shell {
    color: var(--aqua-2);
}

.deco.purple { color: #b48ce0; }
.deco.pink { color: #ff7fb0; }
.deco.small { width: 26px; height: 26px; }

@keyframes decoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(6deg); }
}

.droplet {
    position: absolute;
    width: 22px;
    height: auto;
    color: var(--aqua-2);
    opacity: 0.85;
    animation: decoFloat 5s ease-in-out infinite;
    z-index: 1;
}

.droplet.left { top: 6px; left: 14px; transform: rotate(-12deg); }
.droplet.right { top: 2px; right: 18px; color: #ff7fb0; transform: rotate(10deg); }

.pearl-shell {
    display: block;
    width: 76px;
    margin: 0 auto 0.4rem;
    filter: drop-shadow(0 6px 8px rgba(214, 51, 132, 0.2));
}

.page {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.1rem 4rem;
}

.card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, #fffbfd, #fff1f8);
    border-radius: 42px;
    padding: 2.3rem 1.5rem 2rem;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #f9cbe1, 0 24px 48px var(--shadow-pink);
    position: relative;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: cardIn 0.8s cubic-bezier(.2, .8, .3, 1) forwards 0.15s;
}

.card::before {
    content: '';
    position: absolute;
    inset: 11px;
    border: 2px dashed rgba(255, 196, 110, 0.55);
    border-radius: 32px;
    pointer-events: none;
    z-index: 0;
}

.card > *:not(.deco):not(.mermaid-tail) {
    position: relative;
    z-index: 1;
}

@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}

.card .deco.tl { top: -18px; left: -14px; }
.card .deco.tr { top: -20px; right: -16px; }
.card .deco.bl { bottom: 8px; left: -14px; width: 30px; height: 30px; }
.card .deco.bl2 { bottom: 46px; left: 4px; width: 20px; height: 20px; }
.card .deco.tl2 { top: 46px; left: -8px; width: 24px; height: 24px; }
.card .deco.mid-left { top: 40%; left: -8px; width: 34px; height: 34px; }

.mermaid-tail {
    position: absolute;
    width: 118px;
    height: auto;
    bottom: -26px;
    right: -10px;
    opacity: 0.95;
    transform: rotate(6deg);
    z-index: 0;
    animation: decoFloat 7s ease-in-out infinite;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aqua-2);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.headline-lead {
    font-family: 'Baloo 2', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #e8579f;
    margin: 0;
}

h1.headline-glitter {
    font-family: 'Baloo 2', 'Segoe UI', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 2.35rem;
    line-height: 1.05;
    margin: 0.1rem 0 0.6rem;
}

h1.headline-glitter .glitter-pink,
h1.headline-glitter .glitter-aqua {
    display: block;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.95) 1px, transparent 2px),
        radial-gradient(circle at 55% 75%, rgba(255, 255, 255, 0.85) 1px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.9) 1px, transparent 2px);
    background-size: 30px 30px, 24px 24px, 28px 28px;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

h1.headline-glitter .glitter-pink {
    background-image:
        radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.95) 1px, transparent 2px),
        radial-gradient(circle at 55% 75%, rgba(255, 255, 255, 0.85) 1px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.9) 1px, transparent 2px),
        linear-gradient(120deg, #ff3f8f 0%, #ff7fb5 60%, #ff9dc8 100%);
    background-size: 30px 30px, 24px 24px, 28px 28px, 100% 100%;
}

h1.headline-glitter .glitter-aqua {
    background-image:
        radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.95) 1px, transparent 2px),
        radial-gradient(circle at 55% 75%, rgba(255, 255, 255, 0.85) 1px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.9) 1px, transparent 2px),
        linear-gradient(120deg, #2fb0c9 0%, #6fd6d0 60%, #8fe3da 100%);
    background-size: 30px 30px, 24px 24px, 28px 28px, 100% 100%;
}

h1.title {
    font-size: 1.65rem;
    margin: 0 0 0.35rem;
    line-height: 1.25;
    background: linear-gradient(90deg, #e8579f, #ff8fb8 40%, #ffb26b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.crown-icon {
    width: 44px;
    height: 34px;
    margin-bottom: -4px;
    filter: drop-shadow(0 3px 3px rgba(201, 138, 31, 0.25));
}

.emma-name {
    font-family: 'Pacifico', cursive;
    font-size: 2.3rem;
    line-height: 1;
    margin: 0.3rem 0 0.7rem;
    background: linear-gradient(90deg, #ff4f95, #ff8fbd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ribbon {
    display: inline-block;
    background: linear-gradient(135deg, #ff8fbd, #ff5fa0);
    color: #fff;
    font-family: 'Baloo 2', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.55rem 1.5rem;
    margin: 0 0 1rem;
    clip-path: polygon(3% 50%, 9% 0, 91% 0, 97% 50%, 91% 100%, 9% 100%);
    box-shadow: 0 8px 16px rgba(255, 95, 160, 0.3);
}

.ribbon.ribbon-aqua {
    background: linear-gradient(135deg, var(--aqua-1), var(--aqua-2));
    box-shadow: 0 8px 16px rgba(63, 182, 201, 0.3);
}

.ribbon-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff7e8;
    color: #e8579f;
    font-weight: 800;
    margin: 0 0.15rem;
    box-shadow: inset 0 0 0 2px #ffd27a;
}

.subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.9rem;
    color: var(--ink);
}

.greeting {
    font-size: 1rem;
    color: var(--ink-soft);
    margin-bottom: 0.6rem;
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin: 0.9rem 0 1rem;
}

.meta-pill {
    background: linear-gradient(135deg, #fff0f6, #ffe4f0);
    border: 1px solid #ffd3e6;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

.info-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.1rem;
    margin: 0.6rem 0 1.2rem;
}

.info-divider {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0.5;
    margin-top: -1.2rem;
}

.info-divider span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.info-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9fc4, #ff5fa0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 8px 16px rgba(255, 95, 160, 0.35);
}

.info-label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    text-transform: uppercase;
    margin: 0;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
}

.message {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin: 0.7rem 0 1.1rem;
    line-height: 1.5;
}

.closing-line {
    font-size: 0.92rem;
    font-weight: 700;
    color: #e8579f;
    margin: 0.3rem 0 1rem;
    line-height: 1.4;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1.3rem;
    text-align: left;
    display: grid;
    gap: 0.5rem;
}

.checklist li {
    background: #fef6fa;
    border-radius: 14px;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.checklist-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.9rem 0 1.2rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 86px;
}

.badge-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2.5px solid #ffd27a;
    box-shadow: 0 4px 10px rgba(255, 178, 107, 0.25), inset 0 0 0 3px #fff7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #fff7fb;
    position: relative;
}

.badge-circle::after {
    content: '\2b50';
    position: absolute;
    bottom: -6px;
    right: -4px;
    font-size: 0.85rem;
}

.badge-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.6rem;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

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

.btn.is-pressed,
.btn:active {
    transform: scale(0.96);
}

.btn-confirm {
    background: linear-gradient(135deg, var(--aqua-1), var(--aqua-2));
    color: #fff;
    box-shadow: 0 10px 20px rgba(63, 182, 201, 0.35);
}

.btn-decline {
    background: #fff;
    color: var(--ink-soft);
    border: 2px solid #f3c9dd;
}

.btn-maps {
    background: linear-gradient(135deg, var(--gold), #ffb56b);
    color: #5a3350;
    box-shadow: 0 10px 20px rgba(255, 178, 107, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.status-badge.pending { background: #fff3d6; color: #9a6d00; }
.status-badge.confirmed { background: #d9f6ee; color: #12786a; }
.status-badge.declined { background: #fde3ec; color: #b23763; }

.result-message {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.address-box {
    background: #f3fbfa;
    border: 1px dashed #b9e6df;
    border-radius: 16px;
    padding: 0.9rem;
    margin: 0.9rem 0 1.1rem;
    font-size: 0.92rem;
}

.address-box .info-label {
    color: var(--aqua-2);
    margin-bottom: 0.3rem;
}

.is-hidden {
    display: none !important;
}

.error-note {
    background: #fde3ec;
    color: #a13358;
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

footer.credits {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--ink-soft);
    padding-bottom: 1.2rem;
    opacity: 0.8;
}

/* ---------- Panel administrativo ---------- */

.admin-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 980px;
    min-width: 0;
    margin: 0 auto;
    padding: 1.6rem 1.1rem 3rem;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.admin-header h1 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--ink);
}

.admin-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 30px var(--shadow-pink);
    padding: 1.3rem;
    margin-bottom: 1.3rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.3rem;
}

.stat-tile {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 10px 20px var(--shadow-pink);
}

.stat-tile .num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--aqua-2);
    display: block;
}

.stat-tile .label {
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.form-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .form-grid.cols-2 {
        grid-template-columns: 1fr 1fr;
    }
}

label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
    display: block;
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
select {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    border: 1px solid #f0cfe0;
    font-size: 0.92rem;
    background: #fffafc;
}

input:focus,
select:focus {
    outline: 2px solid var(--aqua-1);
}

.table-wrap {
    overflow-x: auto;
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid #f5e3ee;
    white-space: nowrap;
}

.admin-table th {
    color: var(--ink-soft);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pill {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.pill.pending { background: #fff3d6; color: #9a6d00; }
.pill.confirmed { background: #d9f6ee; color: #12786a; }
.pill.declined { background: #fde3ec; color: #b23763; }

.row-actions {
    display: flex;
    gap: 0.4rem;
}

.row-actions .btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
}

.login-wrap {
    max-width: 360px;
    margin: 3rem auto;
}

@media (max-width: 480px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
