body {
    font-family: Arial, sans-serif;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
    background-color: #f9f9f9;
}

h1, h2 {
    text-align: center;
    color: #1c1c1c;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    background: #fff; /* limpio y claro */
    padding: 10px;
    border-radius: 12px;
}

.grid a {
    text-decoration: none;
    color: #1c1c1c;
    text-align: center;
    font-size: 14px;
}

.grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.grid img:hover {
    transform: scale(1.03);
}

.back {
    display: block;
    margin-bottom: 15px;
    text-decoration: none;
    color: #3b82f6;
}

.download-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 14px 28px;
    background: linear-gradient(90deg, #0077ff, #7b2cff);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0, 119, 204, 0.3);
}

.download-btn:hover {
    background: linear-gradient(90deg, #005fa3, #5a1fbf);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 119, 204, 0.5);
}

.seo-text {
    margin: 20px auto;
    max-width: 800px;
    text-align: justify;
    font-size: 15px;
    color: #333;
}

.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    background: #e6e0ff;
    color: #3b82f6;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.pagination a:hover {
    background: #d1c8ff;
}

.pagination strong {
    margin: 0 5px;
    padding: 8px 12px;
    background: linear-gradient(90deg, #0077ff, #7b2cff);
    color: white;
    border-radius: 4px;
}

.info-extra {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
    text-align: center;
    line-height: 1.6;
}

/* Colores de estado */
.acceso-inmediato { color: #ffcc00; font-weight: bold; }
.lista-ok { color: #2ecc71; font-weight: bold; }

/* ===== HEADER ===== */
.top-bar {
    position: sticky;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, #0077ff, #7b2cff);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.top-bar img {
    height: 42px;
    margin-right: 20px;
}

/* ===== INPUT SEARCH ===== */
.top-bar input[type="text"] {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 6px 0 0 6px;
    outline: none;
    background: #fff;
    color: #333;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* ===== BOTÓN BUSCAR ===== */
.top-bar button {
    padding: 10px 18px;
    font-size: 16px;
    background: linear-gradient(90deg, #0056ff, #6a00ff); /* fuerte azul-violeta */
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-right: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.top-bar button:hover {
    background: linear-gradient(90deg, #0040cc, #5200cc);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive para móviles */
@media (max-width: 600px) {
    .top-bar .container {
        flex-direction: column;
        align-items: stretch;
    }

    .top-bar img {
        margin: 0 auto 10px;
    }

    .top-bar form {
        flex-direction: row;
        width: 100%;
    }
}

.intro-text {
    max-width: 900px;
    margin: 20px auto;
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.intro-text strong {
    color: #333;
}
.intro-text em {
    color: #0073aa;
    font-style: normal;
}

.site-footer {
    background: #f4f4f4;
    padding: 20px 10px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-top: 30px;
    border-top: 1px solid #ddd;

    /* Ocupa todo el ancho y sobrescribe limitaciones */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.site-footer a {
    color: #333;
    text-decoration: none;
    margin: 0 10px;
}

.site-footer a:hover {
    text-decoration: underline;
}

#terminos-uso h1,
#terminos-uso h2 {
    text-align: left;
}
