* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ===== Fondo ===== */
.fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/fondo-inicio1.png');
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.45);
    z-index: -2;
}

/* Velo con gradiente de marca */
.fondo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        rgba(1, 141, 236, 0.35) 0%,
        rgba(0, 0, 0, 0.15) 45%,
        rgba(255, 215, 0, 0.18) 100%);
}

/* ===== Etiquetas promocionales flotantes ===== */
.badge-flotante {
    position: fixed;
    z-index: 0;
    font-weight: 800;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 50px;
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    animation: flotar 5s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
    transform: rotate(-6deg);
}

.badge-flotante.rojo    { background: #ff3b30; top: 12%; left: 8%; animation-delay: 0s; }
.badge-flotante.amarillo{ background: #f5a700; top: 22%; right: 7%; animation-delay: 1.2s; transform: rotate(5deg); }
.badge-flotante.verde   { background: #25D366; bottom: 18%; left: 10%; animation-delay: 2s; transform: rotate(4deg); }
.badge-flotante.azul    { background: #018dec; bottom: 10%; right: 9%; animation-delay: 0.6s; }

@keyframes flotar {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -14px; }
}

/* ===== Tarjeta principal ===== */
.contenedor {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 360px;
    padding: 34px 26px 22px;
    border-radius: 26px;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: aparecer 0.6s ease both;
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo {
    width: 150px;
    margin-bottom: 4px;
}

/* ===== Mensajes ===== */
.titulo {
    margin: 4px 0 2px;
    font-size: 21px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.25;
}

.titulo span {
    color: #018dec;
}

.subtitulo {
    margin: 6px 0 14px;
    font-size: 13.5px;
    color: #555;
    line-height: 1.45;
}

/* ===== Chips de beneficios ===== */
.beneficios {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.chip {
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 50px;
    white-space: nowrap;
}

.chip.descuento { background: #ffe3e0; color: #c81e14; }
.chip.oferta    { background: #fff3cd; color: #8a6d00; }
.chip.local     { background: #ddefff; color: #015fa0; }

/* ===== Formulario ===== */
.label-ciudad {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #d8e6f3;
    border-radius: 12px;
    font-size: 15px;
    background-color: #ffffff;
    color: #222;
    cursor: pointer;
    outline: none;
    transition: border-color 0.25s ease;
}

select:focus {
    border-color: #018dec;
}

button {
    width: 100%;
    margin-top: 12px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #019dfc, #0166c4);
    box-shadow: 0 6px 18px rgba(1, 141, 236, 0.45);
    transition: transform 0.15s ease, box-shadow 0.25s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 24px rgba(1, 141, 236, 0.55);
}

button:active {
    transform: translateY(0);
}

/* ===== Contador de visitas ===== */
.contador {
    margin-top: 16px;
    font-size: 11.5px;
    color: #888;
    letter-spacing: 0.5px;
}

.contador strong {
    color: #018dec;
}

/* ===== Móviles pequeños ===== */
@media (max-height: 640px) {
    .contenedor { padding: 22px 20px 16px; }
    .logo { width: 120px; }
    .titulo { font-size: 18px; }
}
