/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/*
Theme Name: Astra Child
Template: astra
*/

/* ================================
   TAVLO - ESTILOS FORMULARIO PRODUCTOS
   ================================ */

/* Contenedor del formulario */
.tavlo-formulario-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.tavlo-formulario-container h3 {
    color: #800020;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-family: var(--ast-font-family-heading, inherit);
}

/* Campos del formulario */
.tavlo-campo {
    margin-bottom: 22px;
}

.tavlo-campo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2F2F2F;
}

.tavlo-campo input[type="text"],
.tavlo-campo input[type="number"],
.tavlo-campo select,
.tavlo-campo textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.tavlo-campo input:focus,
.tavlo-campo select:focus,
.tavlo-campo textarea:focus {
    outline: none;
    border-color: #DAA520;
}

.tavlo-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 6px;
    display: block;
}

/* Checkboxes */
.tavlo-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 8px;
}

.tavlo-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

.tavlo-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #800020;
}

/* Botones */
.tavlo-campo-botones {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.tavlo-btn-guardar {
    background: #800020;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s;
}

.tavlo-btn-guardar:hover {
    background: #5c0017;
}

.tavlo-btn-cancelar {
    background: #f5f5f5;
    color: #666;
    padding: 14px 28px;
    border-radius: 20px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s;
}

.tavlo-btn-cancelar:hover {
    background: #e0e0e0;
}

/* Mensajes */
.tavlo-mensaje {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-weight: 500;
}

.tavlo-exito {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tavlo-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Listado de productos */
.tavlo-listado-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 30px;
}

.tavlo-listado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.tavlo-listado-container h3 {
    color: #800020;
    margin: 0;
    font-size: 1.4rem;
    font-family: var(--ast-font-family-heading, inherit);
}

.tavlo-filtro-categoria {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tavlo-filtro-categoria label {
    font-size: 0.9rem;
    color: #666;
}

.tavlo-filtro-categoria select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.tavlo-sin-productos {
    color: #888;
    font-style: italic;
    padding: 20px 0;
}

/* Lista compacta de productos */
.tavlo-productos-lista {
    display: flex;
    flex-direction: column;
}

.tavlo-producto-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.tavlo-producto-item:last-child {
    border-bottom: none;
}

.tavlo-producto-info {
    flex: 1;
}

.tavlo-producto-categoria {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.tavlo-producto-linea-principal {
    margin: 0;
    line-height: 1.4;
}

.tavlo-producto-nombre {
    font-weight: 700;
    color: #800020;
}

.tavlo-producto-desc {
    color: #555;
}

.tavlo-producto-precio {
    font-weight: 700;
    color: #800020;
}

.tavlo-producto-opciones {
    font-style: italic;
    font-size: 0.8rem;
    color: #777;
    margin-top: 2px;
}

.tavlo-producto-acciones {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    flex-shrink: 0;
}

.tavlo-btn-editar,
.tavlo-btn-eliminar {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s;
}

.tavlo-btn-editar {
    background: #DAA520;
    color: #fff;
}

.tavlo-btn-editar:hover {
    background: #b8860b;
    color: #fff;
}

.tavlo-btn-eliminar {
    background: #dc3545;
    color: #fff;
}

.tavlo-btn-eliminar:hover {
    background: #a71d2a;
    color: #fff;
}

/* Responsive formulario */
@media (max-width: 600px) {
    .tavlo-listado-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tavlo-producto-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .tavlo-producto-acciones {
        margin-left: 0;
        width: 100%;
    }
    
    .tavlo-btn-editar,
    .tavlo-btn-eliminar {
        flex: 1;
        text-align: center;
    }
    
    .tavlo-checkboxes {
        flex-direction: column;
        gap: 12px;
    }
}

/* ================================
   TAVLO - MENÚ PÚBLICO
   ================================ */

/* Reset contenedores padre */
.page-template-default .site-content,
.page-template-default .ast-container,
.page-template-default #primary,
.page-template-default .entry-content,
.page-template-default article,
body.page .site-content,
body.page .ast-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.tavlo-menu-publico {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    font-family: inherit;
}

/* Cabecera Hero */
.tavlo-menu-header-hero {
    position: relative;
    width: 100%;
}

.tavlo-hero-imagen {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0;
}

.tavlo-hero-placeholder {
    background: linear-gradient(135deg, #d0d0d0 0%, #e8e8e8 100%);
}

/* Header con logo izquierda y nombre derecha */
.tavlo-header-info {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 20px 20px 20px;
    margin-top: -60px;
    position: relative;
}

/* Logo circular */
.tavlo-logo-container {
    flex-shrink: 0;
}

.tavlo-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    object-fit: cover;
    background: #fff;
}

.tavlo-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #800020;
    background: #F5F6DC;
}

.tavlo-bar-nombre {
    font-family: var(--ast-font-family-heading, inherit);
    font-size: 1.6rem;
    color: #2F2F2F;
    margin: 0;
    padding-bottom: 15px;
}

/* Pestañas */
.tavlo-menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.tavlo-tab {
    padding: 12px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #2F2F2F;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.tavlo-tab:hover {
    background: #e8e8e8;
    color: #2F2F2F;
}

.tavlo-tab-activa {
    background: #2F2F2F;
    color: #fff;
    border-color: #2F2F2F;
}

.tavlo-tab-activa:hover {
    background: #2F2F2F;
    color: #fff;
}

/* Contenido */
.tavlo-menu-contenido {
    padding: 25px 20px;
    min-height: 300px;
    background: #fff;
}

.tavlo-menu-vacio {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px 20px;
}

/* Productos */
.tavlo-menu-productos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tavlo-menu-producto {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tavlo-menu-producto:last-child {
    border-bottom: none;
}

.tavlo-menu-producto-info {
    flex: 1;
}

.tavlo-menu-producto-nombre {
    font-weight: 600;
    color: #2F2F2F;
    font-size: 1.1rem;
    line-height: 1.4;
}

.tavlo-menu-producto-iconos {
    margin-left: 8px;
    font-size: 0.9rem;
}

.tavlo-menu-producto-desc {
    font-size: 0.9rem;
    color: #000;
    margin-top: 5px;
    /*font-style: italic;*/
    line-height: 1.5;
}

.tavlo-menu-producto-precio {
    font-weight: 700;
    color: #2F2F2F;
    font-size: 1.15rem;
    white-space: nowrap;
}

/* Leyenda */
.tavlo-menu-leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #000;
}

/* Ofertas */
/* Intro ofertas */
.tavlo-ofertas-intro {
    text-align: center;
    color: #2F2F2F;
    font-family: var(--ast-font-family-heading, inherit);
    font-size: 1.3rem;
    font-weight: 600;
	margin-top: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.tavlo-ofertas-lista {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tavlo-oferta-card {
    display: flex;
    gap: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.tavlo-oferta-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tavlo-oferta-img {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.tavlo-oferta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tavlo-oferta-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.tavlo-oferta-content h3 {
    margin: 0;
    font-family: var(--ast-font-family-heading, inherit);
    font-size: 1.3rem;
    color: #2F2F2F;
    line-height: 1.3;
}

.tavlo-oferta-content p {
    margin: 0;
    font-size: 1rem;
    color: #000;
    line-height: 1.5;
}

.tavlo-oferta-cta {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: #DAA520;
    border: none;
    border-radius: 6px;
    transition: all 0.3s;
    width: fit-content;
    margin-top: 5px;
}

.tavlo-oferta-cta:hover {
    background: #b8860b;
    color: #fff;
}

/* Footer */
.tavlo-menu-footer {
    text-align: center;
    padding: 25px 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.tavlo-menu-footer a {
    color: #000;
    font-size: 0.9rem;
    text-decoration: none;
}

.tavlo-menu-footer a:hover {
    color: #800020;
}

.tavlo-menu-footer strong {
    color: #800020;
}

/* Error */
.tavlo-menu-error {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

/* ================================
   RESPONSIVE MENÚ PÚBLICO
   ================================ */

@media (max-width: 768px) {
    .tavlo-hero-imagen {
        height: 200px;
    }
    
    .tavlo-header-info {
        margin-top: -50px;
        gap: 15px;
        padding: 0 15px 15px 15px;
    }
    
    .tavlo-logo {
        width: 150px;
        height: 150px;
    }
    
    .tavlo-bar-nombre {
        font-size: 1.4rem;
    }
    
    .tavlo-menu-tabs {
        gap: 8px;
        padding: 15px;
    }
    
    .tavlo-tab {
        padding: 10px 14px;
        font-size: 0.75rem;
    }
    
    .tavlo-menu-contenido {
        padding: 20px 15px;
    }
    
    .tavlo-oferta-img {
        width: 160px;
        height: 120px;
    }
    
    .tavlo-oferta-content h3 {
        font-size: 1.1rem;
    }
    
    .tavlo-oferta-content p {
        font-size: 0.9rem;
    }
    
    .tavlo-oferta-cta {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .tavlo-hero-imagen {
        height: 160px;
    }
    
    .tavlo-header-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -50px;
        gap: 10px;
    }
    
    .tavlo-logo {
        width: 150px;
        height: 150px;
    }
    
    .tavlo-bar-nombre {
        font-size: 1.3rem;
        padding-bottom: 10px;
    }
    
    .tavlo-menu-tabs {
        justify-content: center;
        gap: 6px;
        padding: 12px 10px;
    }
    
    .tavlo-tab {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    
    .tavlo-menu-contenido {
        padding: 15px 12px;
    }
    
    .tavlo-menu-producto {
        flex-direction: column;
        gap: 8px;
    }
    
    .tavlo-menu-producto-precio {
        align-self: flex-start;
    }
    
    .tavlo-oferta-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .tavlo-oferta-img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }
    
    .tavlo-oferta-content {
        gap: 8px;
    }
    
    .tavlo-oferta-content h3 {
        font-size: 1.1rem;
    }
    
    .tavlo-oferta-content p {
        font-size: 0.9rem;
    }
    
    .tavlo-oferta-cta {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
    
    .tavlo-menu-leyenda {
        gap: 10px;
        font-size: 0.9rem;
    }
}

/* ================================
   TAVLO - MI QR
   ================================ */

.tavlo-qr-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

.tavlo-qr-header {
    margin-bottom: 40px;
}

.tavlo-qr-header h2 {
    font-family: var(--ast-font-family-heading, inherit);
    color: #800020;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.tavlo-qr-header p {
    color: #666;
    margin: 0;
}

/* Bloque QR */
.tavlo-qr-code {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: inline-block;
    margin-bottom: 40px;
}

.tavlo-qr-code img {
    display: block;
    width: 280px;
    height: 280px;
}

/* Bloque info bar */
.tavlo-qr-info {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.tavlo-qr-nombre {
    font-family: var(--ast-font-family-heading, inherit);
    font-size: 1.4rem;
    font-weight: 600;
    color: #2F2F2F;
    margin-bottom: 10px;
}

.tavlo-qr-url code {
    background: #f5f5f5;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
    word-break: break-all;
    display: inline-block;
}

/* Bloque botones */
.tavlo-qr-botones {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}

.tavlo-qr-btn {
    display: block;
    padding: 16px 30px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.tavlo-qr-btn-primary {
    background: #800020;
    color: #fff;
}

.tavlo-qr-btn-primary:hover {
    background: #5c0017;
    color: #fff;
}

.tavlo-qr-btn-secondary {
    background: #f5f5f5;
    color: #2F2F2F;
    border: 1px solid #ddd;
}

.tavlo-qr-btn-secondary:hover {
    background: #e8e8e8;
    color: #2F2F2F;
}

/* Bloque instrucciones */
.tavlo-qr-instrucciones {
    padding: 30px 0;
    text-align: left;
    border-top: 1px solid #eee;
}

.tavlo-qr-instrucciones h4 {
    font-family: var(--ast-font-family-heading, inherit);
    color: #800020;
    margin: 0 0 20px 0;
    font-size: 1.1rem;
}

.tavlo-qr-instrucciones ol {
    margin: 0 0 20px 0;
    padding-left: 20px;
    color: #2F2F2F;
    line-height: 2;
}

.tavlo-qr-tip {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

/* Responsive */
@media (max-width: 480px) {
    .tavlo-qr-code img {
        width: 240px;
        height: 240px;
    }
    
    .tavlo-qr-nombre {
        font-size: 1.2rem;
    }
    
    .tavlo-qr-url code {
        font-size: 0.75rem;
    }
}

/* ================================
   TAVLO - UM COLOR GLOBAL (verde)
   ================================ */

/* Botones principales */
.um input[type="submit"].um-button,
.um input.um-button,
.um a.um-button:not(.um-alt) {
    background-color: #006400 !important;
}

.um input[type="submit"].um-button:hover,
.um input.um-button:hover,
.um a.um-button:not(.um-alt):hover {
    background-color: #004d00 !important;
}

/* Links */
.um a.um-link,
.um .um-field-label a,
.um-account-link a {
    color: #006400 !important;
}

.um a.um-link:hover {
    color: #004d00 !important;
}

/* Iconos y acentos */
.um .um-field-icon i,
.um .um-icon {
    color: #006400 !important;
}

/* Bordes activos/focus */
.um .um-field input:focus,
.um .um-field textarea:focus {
    border-color: #006400 !important;
}

/* Border-radius global botones */
.um input.um-button,
.um a.um-button {
    border-radius: 20px !important;
}

.um-profile.um .um-profile-headericon a {
    color: #006400 !important;
}
/* Forzar iconos UM a verde */
.um i[class*="um-faicon"],
.um span.um-account-icon i,
.um-account-side span.um-account-icon i,
i.um-faicon-user,
i.um-faicon-asterisk,
.um i.um-icon {
    color: #006400 !important;
}

/* Páginas legales - estilos tipográficos */
.page-id-3981 h1,
.page-id-3989 h1,
.page-id-3991 h1,
.page-id-3997 h1 {
    font-size: 1.5rem;
}
.page-id-3981 h2,
.page-id-3989 h2,
.page-id-3991 h2,
.page-id-3997 h2 {
    font-size: 1.2rem;
    margin-top: 2rem;
}

.page-id-3981 h3,
.page-id-3989 h3,
.page-id-3991 h3,
.page-id-3997 h3 {
    font-size: 1rem;
    margin-top: 1rem;
}

.page-id-3981 p,
.page-id-3989 p,
.page-id-3991 p,
.page-id-3997 p {
    font-size: .9rem;
}
.page-id-3981 ul,
.page-id-3989 ul,
.page-id-3991 ul,
.page-id-3997 ul {
    font-size: .9rem;
    margin-left: 1.5rem;
}