/* ============================================
   RESET Y ESTRUCTURA BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(160deg, #fdf8f0 0%, #f3e9d2 35%, #e8d5b5 70%, #d9c49a 100%);
    position: relative;
    overflow-x: hidden;
}

/* Decoración de fondo */
body::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(180, 150, 100, 0.15);
    border-radius: 50%;
    z-index: 0;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: #1a2b4a;
    color: white;
    padding: 0.8rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo a:hover {
    color: #d4e0ff;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav ul li a {
    color: #f0f4ff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    transition: background 0.2s, color 0.2s;
}

.main-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */
.contenido-principal {
    flex: 1;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1;
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: #0f1a2e;
    color: #cbd5e1;
    padding: 1.5rem 2rem;
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-links a {
    color: #a0b8d9;
    text-decoration: none;
    margin-left: 1.2rem;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}

/* ============================================
   CONTENEDOR PRINCIPAL (tarjeta)
   ============================================ */
.container {
    max-width: 1000px;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    .container {
        padding: 2rem 1.5rem;
        border-radius: 30px;
    }
}

/* ============================================
   PÁGINA INDEX
   ============================================ */
.index-page .header-center {
    text-align: center;
    width: 100%;
}

.index-page .header-center h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.index-page .header-center .subtitle {
    font-size: 1.2rem;
    color: #5e6f8d;
    font-weight: 500;
    border-bottom: 2px solid #e0d5c0;
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.btn-registro,
.btn-login {
    display: inline-block;
    background: #1a3b6b;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(26, 59, 107, 0.3);
    border: none;
    cursor: pointer;
}

.btn-login {
    background: #2a5f8a;
    box-shadow: 0 8px 20px rgba(42, 95, 138, 0.3);
}

.btn-registro:hover {
    background: #12315a;
    transform: translateY(-3px);
}

.btn-login:hover {
    background: #1e4a6e;
    transform: translateY(-3px);
}

.map-wrapper {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-mapa {
    display: inline-block;
    background: #2a5f8a;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(42, 95, 138, 0.3);
    margin-top: 0.5rem;
}

.btn-mapa:hover {
    background: #1e4a6e;
    transform: scale(1.02);
}

.btn-mapa:active {
    transform: scale(0.97);
}

#mapaContainer {
    display: none;
    width: 100%;
    max-width: 700px;
    margin-top: 1rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0d5c0;
}

#mapaContainer iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: none;
}

@media (max-width: 480px) {
    .index-page .header-center h1 {
        font-size: 1.9rem;
    }

    .btn-registro,
    .btn-login {
        font-size: 1rem;
        padding: 0.8rem 1.8rem;
    }

    #mapaContainer iframe {
        height: 200px;
    }
}

/* ============================================
   CONTADOR REGRESIVO
   ============================================ */
.contador {
    margin-bottom: 2rem;
}

.contador-titulo,
.clima-titulo {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.contador-cajas {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.contador-caja {
    background: #1a2b4a;
    color: #ffffff;
    border-radius: 18px;
    padding: 1rem 1.4rem;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 22px rgba(26, 43, 74, 0.35);
}

.contador-numero {
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.contador-etiqueta {
    font-size: 0.75rem;
    color: #b9c8e4;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

@media (max-width: 480px) {
    .contador-caja {
        min-width: 70px;
        padding: 0.8rem 0.9rem;
    }

    .contador-numero {
        font-size: 1.5rem;
    }
}

/* ============================================
   CLIMA EN TEPIC
   ============================================ */
.clima {
    margin-bottom: 2rem;
}

.clima-cards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.clima-card {
    background: #eef5ff;
    border: 1px solid #d6e2f5;
    border-radius: 20px;
    padding: 1.2rem 1.6rem;
    min-width: 220px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(26, 59, 107, 0.12);
}

.clima-card h3 {
    color: #1a3b6b;
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.clima-temp {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 0.3rem;
}

.clima-desc {
    color: #44506a;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.clima-lluvia {
    color: #2a5f8a;
    font-size: 0.8rem;
    font-weight: 500;
}

.clima-carga {
    color: #7e8da8;
    font-size: 0.85rem;
}

.clima-nota {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #7e8da8;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PÁGINA REGISTRO
   ============================================ */
.registro-page {
    background: linear-gradient(145deg, #f5f7fa 0%, #e9edf5 100%);
}

.registro-page .container {
    max-width: 820px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 20, 40, 0.15), 0 8px 16px rgba(0, 0, 0, 0.05);
    padding: 2.5rem 2.8rem;
    text-align: left;
}

@media (max-width: 600px) {
    .registro-page .container {
        padding: 1.5rem 1.2rem;
        border-radius: 24px;
    }
}

.btn-volver {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #1a3b6b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    background: #eef5ff;
    transition: background 0.2s;
}

.btn-volver:hover {
    background: #dce6fa;
}

.registro-page h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a2b4a;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.registro-page .subtitle {
    color: #5e6f8d;
    font-size: 0.95rem;
    border-bottom: 2px solid #eef2f8;
    padding-bottom: 1.2rem;
    margin-bottom: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.registro-page .subtitle span {
    background: #eef5ff;
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #2a4b7a;
    font-weight: 500;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.8rem;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.field-full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #1f2a44;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.form-group label .required {
    color: #c73b3b;
    font-weight: 700;
    margin-left: 2px;
}

.form-group label .hint {
    font-weight: 400;
    font-size: 0.75rem;
    color: #7b8aa3;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #dbe0e9;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fafcff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    color: #1a263b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3a6bb0;
    box-shadow: 0 0 0 4px rgba(58, 107, 176, 0.12);
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0bccf;
    font-size: 0.9rem;
}

.form-group textarea {
    min-height: 70px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 0.5rem 0;
    border: none;
    background: transparent;
}

.form-group input[type="file"]::file-selector-button {
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    border: 1.5px solid #cbd5e1;
    background: #f0f4fe;
    color: #1f2a44;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 0.8rem;
}

.form-group input[type="file"]::file-selector-button:hover {
    background: #dce6fa;
}

.inline-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.2rem;
    padding-top: 0.2rem;
}

.inline-group label {
    font-weight: 400;
    font-size: 0.95rem;
    color: #1f2a44;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.inline-group input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #2a5f8a;
    cursor: pointer;
}

.btn-submit {
    grid-column: 1 / -1;
    margin-top: 1.2rem;
    background: #1a3b6b;
    color: white;
    border: none;
    padding: 1rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.25s, transform 0.1s;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 14px rgba(26, 59, 107, 0.25);
}

.btn-submit:hover {
    background: #12315a;
    transform: scale(1.01);
}

.btn-submit:active {
    transform: scale(0.97);
}

.footer-note {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.8rem;
    color: #7e8da8;
    margin-top: 0.6rem;
    border-top: 1px solid #eaf0f6;
    padding-top: 1.2rem;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f7a9e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

input[type="date"],
input[type="time"] {
    min-height: 48px;
}

input[type="tel"] {
    letter-spacing: 0.5px;
}

/* ============================================
   PÁGINA LOGIN
   ============================================ */
.login-page .container {
    max-width: 450px;
}

.login-container h1 {
    margin-bottom: 1.5rem;
}

.error-mensaje {
    color: #c73b3b;
    background: #ffe6e6;
    padding: 0.8rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.login-container .form-group {
    text-align: left;
}

.login-container .btn-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.login-container p {
    margin-top: 1rem;
}

/* ============================================
   PÁGINA PANEL
   ============================================ */
.panel-page .container {
    max-width: 1400px;
    text-align: left;
}

.panel-container h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.barra-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 1rem 0 0.5rem;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.chip-total {
    background: #eef5ff;
    color: #1a3b6b;
}

.chip-confirmados {
    background: #e3f6ea;
    color: #1e7a41;
}

.chip-pendientes {
    background: #fff3e0;
    color: #b26a00;
}

.acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.btn-excel {
    display: inline-block;
    background: #217346;
    color: #ffffff;
    text-decoration: none;
    padding: 0.55rem 1.4rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.1s;
}

.btn-excel:hover {
    background: #185a36;
    transform: translateY(-2px);
}

.btn-pdf {
    display: inline-block;
    background: #b03a3a;
    color: #ffffff;
    text-decoration: none;
    padding: 0.55rem 1.4rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.1s;
}

.btn-pdf:hover {
    background: #8f2e2e;
    transform: translateY(-2px);
}

.btn-logout {
    display: inline-block;
    background: #b03a3a;
    color: white;
    padding: 0.55rem 1.4rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #8f2e2e;
}

.tabla-scroll {
    overflow-x: auto;
    margin-top: 1rem;
    -webkit-overflow-scrolling: touch;
}

.tabla-registros {
    width: 100%;
    min-width: 1150px;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tabla-registros th {
    background: #1a2b4a;
    color: white;
    padding: 0.7rem 0.6rem;
    text-align: left;
    white-space: nowrap;
}

.tabla-registros td {
    padding: 0.6rem 0.6rem;
    border-bottom: 1px solid #eef2f8;
    white-space: nowrap;
    vertical-align: middle;
}

.tabla-registros tr:hover {
    background: #f8faff;
}

.tabla-registros .fila-confirmada td {
    background: #f2fbf5;
}

.celda-nombre {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-comprobante {
    color: #1a3b6b;
    text-decoration: underline;
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-confirmado {
    background: #e3f6ea;
    color: #1e7a41;
}

.badge-pendiente {
    background: #fff3e0;
    color: #b26a00;
}

.celda-acciones {
    white-space: nowrap;
}

.btn-confirmar,
.btn-quitar {
    display: inline-block;
    border: none;
    border-radius: 20px;
    padding: 0.35rem 0.95rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-confirmar {
    background: #2e9e5b;
    color: #ffffff;
}

.btn-confirmar:hover {
    background: #237a45;
}

.btn-quitar {
    background: #e0e6ee;
    color: #44506a;
}

.btn-quitar:hover {
    background: #ccd5e2;
}

.btn-eliminar {
    display: inline-block;
    border: 1.5px solid #c73b3b;
    color: #c73b3b;
    background: transparent;
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-left: 0.35rem;
}

.btn-eliminar:hover {
    background: #c73b3b;
    color: #ffffff;
}

.sin-registros {
    text-align: center;
    color: #7e8da8;
    padding: 2rem 0;
}

.paginacion {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.paginacion a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    background: #eef5ff;
    border-radius: 30px;
    text-decoration: none;
    color: #1a2b4a;
    font-weight: 500;
    transition: background 0.2s;
}

.paginacion a:hover {
    background: #dce6fa;
}

.paginacion a.activa {
    background: #1a3b6b;
    color: white;
}

/* ============================================
   PÁGINA DE RESULTADO (éxito / error)
   ============================================ */
.resultado-page .container {
    max-width: 560px;
    padding: 3rem 2.5rem;
}

.resultado {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: aparecer 0.5s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resultado-icono {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.resultado-icono svg {
    width: 44px;
    height: 44px;
}

.resultado-exito .resultado-icono {
    background: #2e9e5b;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(46, 158, 91, 0.4);
}

.resultado-error .resultado-icono {
    background: #c73b3b;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(199, 59, 59, 0.4);
}

.resultado h1 {
    font-size: 1.8rem;
    color: #1a2b4a;
    margin-bottom: 0.8rem;
    text-align: center;
}

.resultado p {
    color: #4a5568;
    line-height: 1.6;
    max-width: 420px;
    text-align: center;
    margin-bottom: 1.8rem;
}

.lista-errores {
    list-style: none;
    width: 100%;
    max-width: 440px;
    margin-bottom: 1.8rem;
    text-align: left;
}

.lista-errores li {
    background: #fff5f5;
    border-left: 4px solid #c73b3b;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.6rem;
    color: #7a2e2e;
    font-size: 0.92rem;
}

.btn-resultado {
    display: inline-block;
    background: #1a3b6b;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(26, 59, 107, 0.3);
    cursor: pointer;
}

.btn-resultado:hover {
    background: #12315a;
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE HEADER Y FOOTER
   ============================================ */
@media (max-width: 700px) {
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 0.5rem;
    }
}

/* ============================================
   VISIBILIDAD EN MÓVIL
   ============================================ */
@media (max-width: 600px) {
    .container {
        padding: 2rem 1.2rem;
        border-radius: 26px;
    }

    .index-page .header-center h1 {
        font-size: 1.6rem;
    }

    .index-page .header-center .subtitle {
        font-size: 1rem;
    }

    .description {
        font-size: 0.92rem;
    }

    .contador-cajas {
        gap: 0.5rem;
    }

    .contador-caja {
        min-width: 64px;
        padding: 0.7rem 0.6rem;
        border-radius: 14px;
    }

    .contador-numero {
        font-size: 1.35rem;
    }

    .contador-etiqueta {
        font-size: 0.65rem;
    }

    .clima-card {
        min-width: 0;
        width: 100%;
        max-width: 260px;
        padding: 1rem;
    }

    .clima-temp {
        font-size: 1.5rem;
    }

    .acciones {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-registro,
    .btn-login {
        width: 100%;
        text-align: center;
    }

    .btn-mapa {
        width: 100%;
    }

    /* Panel */
    .barra-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .stats {
        justify-content: center;
    }

    .acciones {
        flex-direction: column;
        gap: 0.5rem;
    }

    .acciones a {
        text-align: center;
        width: 100%;
    }

    .tabla-registros {
        font-size: 0.75rem;
    }

    .btn-confirmar,
    .btn-quitar,
    .btn-eliminar {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }

    .btn-eliminar {
        margin-left: 0.2rem;
    }

    .paginacion a {
        padding: 0.45rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Registro */
    .registro-page .container {
        padding: 1.2rem 0.9rem;
        border-radius: 20px;
    }

    .registro-page h1 {
        font-size: 1.5rem;
    }

    .btn-submit {
        font-size: 1rem;
        padding: 0.9rem 1.4rem;
    }

    /* Resultado */
    .resultado-page .container {
        padding: 2rem 1.2rem;
    }

    .resultado h1 {
        font-size: 1.5rem;
    }

    .resultado-icono {
        width: 72px;
        height: 72px;
    }

    .resultado-icono svg {
        width: 36px;
        height: 36px;
    }

    .btn-resultado {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .contador-cajas {
        gap: 0.35rem;
    }

    .contador-caja {
        min-width: 58px;
        padding: 0.6rem 0.4rem;
    }

    .contador-numero {
        font-size: 1.2rem;
    }

    .contador-etiqueta {
        font-size: 0.6rem;
    }
}