/*
Theme Name: Twenty Twenty-Four Child
Theme URI: https://pruebasejc.com.es
Description: Child theme de Twenty Twenty-Four para personalizaciones
Author: EJC
Author URI: https://pruebasejc.com.es
Template: twentytwentyfour
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: twentytwentyfour-child
*/
/* Prueba de que el child theme funciona */
body {
    border-top: 5px solid red;
}

a {
    color: blue !important;
}
/* === PERSONALIZACIONES DE COLORES === */

/* Color primario del sitio */
:root {
    --color-primario: #0073aa;
    --color-secundario: #005177;
    --color-texto: #333;
    --color-fondo: #f4f4f4;
}

/* Enlaces */
a {
    color: var(--color-primario);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secundario);
}

/* Botones */
.wp-block-button__link,
button,
input[type="submit"] {
    background-color: var(--color-primario);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--color-secundario);
}

/* === TIPOGRAFÍA === */

/* Importar fuente de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-texto);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* === LAYOUT Y ESPACIADO === */

/* Contenedor principal más estrecho */
.wp-site-blocks {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: red!important;
}

/* Espaciado entre posts */
article {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

article:last-child {
    border-bottom: none;
}

/* Header más alto */
.site-header {
    padding: 2rem 0;
}

/* Footer con fondo oscuro */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 3rem 0;
    margin-top: 4rem;
}

.site-footer a {
    color: #fff;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    .wp-site-blocks {
        padding: 0 15px;
    }
    
    article {
        margin-bottom: 2rem;
    }
}

/* === MEJORAS VISUALES === */

/* Imágenes responsivas */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Bloques de cita */
blockquote {
    border-left: 4px solid var(--color-primario);
    padding-left: 1.5rem;
    margin-left: 0;
    font-style: italic;
    color: #666;
}

/* Código */
code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
 Save
Ver todo
Verificación: