* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #f1f3f9;
}

/* APP */
.app {
    max-width: 500px;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* HEADER */
.header {
    background: #1e3c72;
    color: white;
    text-align: center;
    padding: 15px;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 15px;
    padding-bottom: 80px;
}

/* CARD */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 15px;
}

/* BOTONES */
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: white;
    margin-top: 10px;
}

.btn-primary { background: #1e3c72; }
.btn-success { background: #25D366; }
.btn-danger { background: #ff4d4d; }
.btn-warning { background: #ff9800; }

/* NAV */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: auto;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.bottom-nav a {
    text-decoration: none;
    color: #555;
    font-size: 12px;
    text-align: center;
}

.bottom-nav a.active {
    color: #1e3c72;
    font-weight: bold;
}

/* INPUT MODERNO */
form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #dcdfe6;
    background: #f9fafc;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

/* HOVER */
form input:hover {
    border-color: #b6c2d2;
    background: #fff;
}

/* FOCUS */
form input:focus {
    border-color: #1e3c72;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.15);
}

/* PLACEHOLDER */
form input::placeholder {
    color: #9aa4b2;
}

/* OPCIONAL: label más prolijo */
form label {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

/* DESKTOP */
@media (min-width: 768px) {
    .app {
        margin-top: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
}

/* BUSCADOR */
.input-busqueda {
    width: 100%;
    padding: 12px;
    margin: 10px 0 15px 0;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f9fafc;
}

/* TABLA */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #1e3c72;
    color: white;
}

th, td {
    padding: 10px;
    text-align: left;
    font-size: 14px;
}

tr {
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #f5f7fb;
}

/* BOTONES EN TABLA */
td .btn {
    padding: 6px 10px;
    font-size: 12px;
    display: inline-block;
    margin-right: 5px;
}

/* PROGRESS BAR */
.barra-fondo {
    width: 100%;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.barra-llena {
    width: 0%;
    height: 12px;
    background: linear-gradient(90deg, #28a745, #4cd964);
    transition: width 0.3s;
}

/* TARJETA */
.tarjeta {
    width: 100%;
    max-width: 350px;
    margin: auto;
    aspect-ratio: 9/16;
    background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* DECORACIONES (ATRÁS) */
.decoracion-top,
.decoracion-bottom {
    position: absolute;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    z-index: 1;
}

.decoracion-top {
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
}

.decoracion-bottom {
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
}

/* CONTENIDO ADELANTE */
.titulo-evento,
.nombre-invitado,
.qr-box,
.mensaje-pie {
    z-index: 2;
}

/* TEXTOS */
.titulo-evento {
    color: white;
    font-size: 22px;
}

.nombre-invitado {
    color: white;
    margin-bottom: 15px;
}

/* QR */
.qr-box {
    background: white;
    padding: 12px;
    border-radius: 10px;
}

/* MENSAJE */
.mensaje-pie {
    color: white;
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
}