* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Verdana, sans-serif;
    background: #f3f6f9;
    color: #111;
    line-height: 1.6;
    font-size: 18px;
}

a {
    color: #003f7d;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 4px solid #ffbf00;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    background: #000;
    color: #fff;
    padding: 10px;
    z-index: 999;
}

.skip-link:focus {
    left: 10px;
}

.site-header {
    background: #003f7d;
    color: white;
    text-align: center;
    padding: 24px 15px;
}

.logo {
    max-width: 220px;
    width: 80%;
    height: auto;
    background: #fff;
    border-radius: 16px;
    padding: 8px;
}

.site-header h1 {
    font-size: 2.4rem;
    margin: 10px 0;
}

.fecha-hora {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 10px 0;
}

nav {
    margin-top: 16px;
}

nav a {
    display: inline-block;
    background: #fff;
    color: #003f7d;
    padding: 10px 14px;
    margin: 5px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
}

.contenedor {
    max-width: 1150px;
    margin: 20px auto;
    padding: 15px;
}

.contador,
.buscador,
.publicidad,
.formulario,
.articulo-completo,
.panel {
    background: white;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.publicidad img {
    max-width: 100%;
    max-height: 280px;
    height: auto;
    border-radius: 10px;
}

form label {
    display: block;
    font-weight: bold;
    margin-top: 12px;
}

input,
select,
textarea,
button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 5px;
}

button,
.boton {
    display: inline-block;
    background: #003f7d;
    color: white;
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.boton-secundario {
    background: #555;
}

.boton-peligro {
    background: #9b0000;
}

.grid-articulos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.tarjeta {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.tarjeta img,
.articulo-completo img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    border: 1px solid #bbb;
    padding: 10px;
    text-align: left;
}

th {
    background: #003f7d;
    color: white;
}

.site-footer {
    text-align: center;
    background: #111;
    color: white;
    padding: 24px 15px;
    margin-top: 30px;
}

.site-footer a {
    color: white;
}

@media (max-width: 700px) {
    body {
        font-size: 17px;
    }

    .site-header h1 {
        font-size: 2rem;
    }

    nav a {
        display: block;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    th {
        display: none;
    }

    td {
        border-bottom: 1px solid #ccc;
    }
}


.mensaje-ok {
    background: #e7ffe7;
    border-left: 6px solid #0b7a0b;
    padding: 12px;
    font-weight: bold;
}

.mensaje-error {
    background: #ffe7e7;
    border-left: 6px solid #9b0000;
    padding: 12px;
    font-weight: bold;
}


.enlaces-utiles {
    margin-top: 30px;
}

.lista-enlaces {
    display: grid;
    gap: 15px;
}

.tarjeta-enlace {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

.tarjeta-enlace img {
    max-width: 100%;
    height: auto;
}


.formulario-contacto {
    display: grid;
    gap: 10px;
    max-width: 650px;
}

.formulario-contacto input,
.formulario-contacto textarea,
.formulario-contacto select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
}

.menu-final {
    margin-top: 30px;
}


.me-gusta-articulo {
    margin-top: 20px;
    margin-bottom: 20px;
}
