/*
Theme Name: DejaVu
Theme URI: https://dejavurestaurant.com/
Author: Jordi Morillo
Author URI: mailto:jmdesarrollo82@gmail.com
Description: Tema moderno y oscuro para WordPress con menú superior, sección de oferta en portada, contenido principal, menú legal en el pie y copyright. Incluye plantillas para los tipos de contenido y formatos de entrada.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: dejavu
Tags: dark, responsive, two-menus, custom-logo, accessibility-ready
*/

/* Centrar título de página */
.page .entry-title {
    text-align: center;
}

/* Ancho del contenido en pantallas grandes - consistente en 900px */
@media (min-width: 992px) {
    .container,
    #content {
        width: 900px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
    
    .entry-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    /* Asegurar que todos los elementos respeten el contenedor */
    .entry-content * {
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Limitar anchos de bloques de Gutenberg */
    .entry-content .wp-block-separator,
    .entry-content .wp-block-heading,
    .entry-content .wp-block-paragraph,
    .entry-content .wp-block-list,
    .entry-content .wp-block-spacer {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Forzar que los elementos "wide" no excedan el ancho del contenedor */
    .entry-content .is-style-wide,
    .entry-content .alignwide {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Títulos con jerarquía clara */
    .entry-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        color: #dbad50;
    }
    
    .entry-content h2 {
        font-size: 2rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: #dbad50;
    }
    
    .entry-content h3 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        color: #dbad50;
    }
    
    /* Párrafos con espaciado adecuado */
    .entry-content p {
        margin-bottom: 1.25rem;
        line-height: 1.8;
    }
    
    /* Listas con mejor formato */
    .entry-content ul,
    .entry-content ol {
        margin-left: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .entry-content li {
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }
    
    /* Separadores */
    .entry-content hr {
        margin: 2rem 0;
        border-color: #dbad50;
        opacity: 0.3;
    }
}

/* Responsive en móvil */
@media (max-width: 991px) {
    .container,
    #content {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }
    
    .entry-content {
        width: 100%;
        max-width: 100%;
    }
    
    .entry-content * {
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }
}

/* Logo con ancho y alto proporcional (1023x980px original) */
.custom-logo,
.site-logo img,
.custom-logo-link img {
    width: 120px !important;
    height: 115px !important;
    object-fit: contain;
}

.custom-logo-link {
    display: inline-block;
    width: auto !important;
    max-width: none !important;
}

/* Espacio entre menú y contenido */
#content,
main#content {
    margin-top: 40px;
    padding-top: 20px;
}

/* Espacio adicional en móvil */
@media (max-width: 991px) {
    #content,
    main#content {
        margin-top: 30px;
        padding-top: 15px;
    }
}
