/*
Theme Name: Practica Vial
Theme URI: https://practicavial.com/
Author: Practica Vial
Author URI: https://practicavial.com/
Description: Starter theme de WordPress genérico para practica vial. Incluye cabecera con menú, pestañas de categorías, listado de posts en tarjetas, ficha de post con bloques de CTA, testimonios y "más noticias", y footer a 4 columnas. Pensado como base reutilizable para nuevos proyectos.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sth-starter-theme
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   YOUR STYLES HERE
   ========================================================================== */

/* Contenedor principal de Error 404 */
.sth-contact-cta.sth-container {
    max-width: 600px;
    margin: 60px auto 0;
    padding: 40px 20px;
    background-color: #E5F2DD;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: system-ui, -apple-system, sans-serif;
}

/* Títulos y párrafos */
.sth-contact-cta h2 {
    color: #68A352;
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.sth-contact-cta p {
    color: #333333;
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Formulario de búsqueda */
.sth-search-form {
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 450px;
    margin: 0 auto;
}

.sth-search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #68A352;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sth-search-form input[type="search"]:focus {
    border-color: #538541;
    box-shadow: 0 0 0 3px rgba(104, 163, 82, 0.25);
}

/* Botones principales */
.sth-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #68A352;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.sth-btn:hover {
    background-color: #538541;
    color: #ffffff;
}

.sth-btn:active {
    transform: scale(0.98);
}

/* Accesibilidad */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* Diseño responsivo para pantallas pequeñas */
@media (max-width: 480px) {
    .sth-search-form {
        flex-direction: column;
    }

    .sth-btn {
        width: 100%;
    }
}



/* Contenedor principal de la paginación */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Estilo base de los elementos (números y botones) */
.blog-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    background-color: #E5F2DD; /* Fondo pedido */
    color: #676767;            /* Color texto pedido */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

/* Estado Hover (al pasar el ratón) */
.blog-pagination a.page-numbers:hover {
    background-color: #D3E7C5;
    color: #333333;
}

/* Estado Activo / Elemento Seleccionado */
.blog-pagination .page-numbers.current {
    background-color: #68A352; /* Verde seleccionado */
    color: #FFFFFF;            /* Texto en blanco para contraste */
    font-weight: 700;
}

/* Botones "Anterior" y "Siguiente" */
.blog-pagination .prev.page-numbers,
.blog-pagination .next.page-numbers {
    padding: 0 16px;
}


