:root {
    --primary: #2d3436;
    --accent: #10a588;
    --text: #636e72;
    --light: #f9f9f9;
    --border: #e1e8ed;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--light);
    margin: 0;
    padding: 0 0 2rem 0; /* Removido el padding top general para que el header pegue arriba */
}

/* FILA DE ENCABEZADO (HEADER) */
.site-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}
.site-brand {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-logo {
    height: 40px; /* Tamaño ideal y sutil para el logo */
    width: auto;
    display: block;
}
.site-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
    margin: 0;
    text-decoration: none;
}
.site-title span {
    color: var(--accent);
}

.sidebar-toggle-btn {
    grid-column: 1;
    justify-self: start;
}
.header-icon-group {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: var(--primary);
    transition: background 0.2s, color 0.2s;
}
.header-icon-link:hover {
    background: var(--light);
    color: var(--accent);
}
.header-icon-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Pastillas de navegación (footer) */
.nav-pill {
    color: var(--primary);
    text-decoration: none;
    background: #e1e8ed;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
    transition: background 0.2s, color 0.2s;
}
.nav-pill:hover {
    background: var(--accent);
    color: white;
}
.nav-pill-accent {
    color: white;
    background: var(--accent);
}

/* BREADCRUMB (Inicio > Categoría > Título): en content-area/article-main es un
   bloque normal; en product-container (grid de 2 columnas) grid-column:1/-1
   lo hace ocupar todo el ancho en vez de una sola columna. */
.breadcrumb {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text);
    text-align: left;
}
.breadcrumb a {
    color: var(--text);
    text-decoration: underline;
}
.breadcrumb a:hover {
    color: var(--accent);
}
.breadcrumb-sep {
    color: var(--border);
}
.breadcrumb-current {
    color: var(--primary);
    font-weight: bold;
}

/* Contenedor Principal Asimétrico */
.main-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    align-items: start;
    box-sizing: border-box;
}
/* Los items de grid tienen min-width:auto por defecto: la columna de
   contenido se agranda para acomodar el ancho mínimo del contenido (título
   largo, layouts anidados de landing, etc.) en vez de respetar el ancho
   disponible. Rompe en mobile y genera scroll horizontal. */
.main-layout > * {
    min-width: 0;
}

/* COLUMNA IZQUIERDA: STICKY WRAPPER (destacado + menú, siempre visible) */
.sidebar-column {
    position: sticky;
    top: calc(var(--header-height, 72px) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* PANEL DE VENTA DEL DOMINIO */
.sidebar-sale {
   /* background: #E8F5E9; */
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
}
.sidebar-sale .badge {
    background: #e6f8f4;
    /*color: var(--accent);*/
    color: black;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}
.sidebar-sale h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: var(--primary);
}
.sidebar-sale h2 span { color: var(--accent); }
.sidebar-sale-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.sidebar-sale p {
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.sidebar-sale-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    margin: -0.5rem 0 1rem 0;
}
.btn-sale {
    display: block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.btn-sale:hover { background: #000; }

/* PANEL DE MENÚ DE CATEGORÍAS */
.sidebar-menu {
    background: white;
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
}
.sidebar-menu h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    color: var(--primary);
    border-bottom: 2px solid var(--light);
    padding-bottom: 0.5rem;
}
.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu li {
    margin-bottom: 0.5rem;
}
.sidebar-menu li a {
    display: block;
    padding: 6px 5px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.sidebar-menu li a.active, .sidebar-menu li a:hover {
    background: var(--light);
    color: var(--accent);
    font-weight: bold;
}

/* COLUMNA DERECHA: CONTENIDO Y TARJETAS */
.content-area {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
@media (min-width: 901px) {
    .content-area {
        min-height: calc(var(--sidebar-height, 1000px) + 40vh);
    }
}
.content-area h1 {
    font-size: 2rem;
    margin: 0 0 2.5rem 0;
    color: var(--primary);
    text-align: center;
}
.content-area .subtitle {
    color: var(--text);
    margin-bottom: 3rem;
    font-size: 1.05rem;
    display: none;

}

/* Botón para alternar .grid-resources entre modo tarjetas y modo listado */
.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    background: #e1e8ed;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background 0.2s, color 0.2s;
}
.view-toggle-btn:hover {
    background: var(--accent);
    color: white;
}
.view-toggle-icon {
    display: none;
    line-height: 0;
}
.view-toggle-btn[aria-pressed="false"] .view-toggle-icon-list {
    display: block;
}
.view-toggle-btn[aria-pressed="true"] .view-toggle-icon-grid {
    display: block;
}

/* Grilla de Tarjetas */
.grid-resources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
.grid-resources.list-mode {
    gap: 1rem;
}
@media (max-width: 900px) {
    .grid-resources.list-mode {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 901px) {
    .grid-resources.list-mode {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        align-items: stretch;

    }
}
.list-mode .card {
    flex-direction: row;
}
.list-mode .card-image-wrapper {
    width: 140px;
    height: 214px; /* antes 200 */
    flex-shrink: 0;
    padding: 6px;
}
.list-mode .card-content {
    text-align: left;
    padding: 0.8rem 1.2rem;
}
.list-mode .card-content h3,
.list-mode .card-content p {
    text-align: left;
}
.list-mode .btn-link {
    align-self: flex-start;
}

/* Paginación del catálogo */
.paginacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.paginacion-info {
    color: var(--text);
    font-size: 0.85rem;
}

/* Tarjetas */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.card-image-wrapper {
    width: 100%;
    aspect-ratio: 2 / 3;
    background-color: #ffffff; /* Fondo blanco para que combine con la tarjeta */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Margen interno opcional para que el logo no toque los bordes */
    box-sizing: border-box;
}
.card-image-wrapper img {
    width: 100%;
    height: 95%;
    object-fit: cover;
    display: block;
}
.card-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}
.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--primary);
    text-align: center;
}
.card-content p {
    margin: 0 0 1.5rem 0;
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.5;
}
.btn-link {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    text-align: center;
    margin-top: auto;
    transition: background 0.3s;
}
.btn-link:hover { background: #009d7e; }


/* RESPONSIVE */
@media (max-width: 900px) {
    .site-header { padding: 1rem; margin-bottom: 0; }
    .main-layout { grid-template-columns: 1fr; gap: 1.5rem;padding:0; }
    .sidebar-column { position: static; }
    .content-area { padding: 2rem 1rem; }
    .site-title {font-size: 1rem; }
}

/* Botón hamburguesa: vive dentro del header, en el flujo normal */
.sidebar-toggle-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}
.sidebar-toggle-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Escritorio: colapsar = ocultar la columna del sidebar y expandir el contenido */
.main-layout.sidebar-collapsed {
    grid-template-columns: 1fr;
}
.main-layout.sidebar-collapsed .sidebar-column {
    display: none;
}

/* Fondo oscuro detrás del menú mobile (drawer) */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
}
.sidebar-backdrop.visible {
    display: block;
}

/* BARRA DE CATEGORÍAS BAJO EL HEADER: solo mobile, siempre visible sin
   depender de abrir el drawer del sidebar (templates/header_category_bar.php). */
.mobile-category-bar { display: none; }

@media (max-width: 900px) {
    .mobile-category-bar {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0.75rem 1rem;
        background: #fff;
        border-bottom: 1px solid var(--border);
        -webkit-overflow-scrolling: touch;
        position: sticky;
        top: var(--header-height, 72px);
        z-index: 999;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .mobile-category-bar::-webkit-scrollbar {
        display: none;
    }
    .mobile-category-bar .nav-pill {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .mobile-category-bar .nav-pill.active {
        background: var(--accent);
        color: #fff;
    }
}

/* Ocultar menú superior en pantallas chicas (Celulares) */
@media (max-width: 900px) {
    /* El header queda por encima del drawer y su fondo, para que el botón siga visible */
    .site-header {
        position: sticky;
        z-index: 1000;
    }

    /* El destacado ya no es sticky en mobile: fluye normal, arriba del botón de menú */
    .sidebar-column {
        position: static;
    }

    /* El sidebar pasa a ser un panel superpuesto (drawer) que abre debajo del header */
    .sidebar-container {
        position: fixed;
        top: var(--header-height, 72px);
        left: 0;
        height: calc(100vh - var(--header-height, 72px));
        height: calc(100dvh - var(--header-height, 72px));
        width: 85%;
        max-width: 300px;
        margin: 0;
        background: var(--light);
        z-index: 999;
        padding: 1.5rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .sidebar-container.sidebar-open {
        transform: translateX(0);
    }
}


/* FOOTER */
.site-footer {
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
    color: var(--text);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    clear: both;
}
.footer-nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin : 0 auto;
    margin-bottom: 2.5rem;
    max-width: 800px;
}
.footer-nav-links .nav-pill {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    color: var(--text);
    font-weight: normal;
    border-bottom: 1px dashed var(--text);
}
.footer-nav-links .nav-pill:hover,
.footer-nav-links .nav-pill.active {
    background: none;
    border: none;
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.footer-nav-links .nav-pill:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.footer-legal {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
    text-align: justify;
}
.footer-affiliate-notice {
    margin-bottom: 0.8rem;
}
.footer-disclaimer {
    margin: 0;
    color: #5a6268;
    font-size: 0.75rem;
}
.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-right: 10px;
}
.footer-legal-link {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px dashed var(--text);
}
.footer-legal-sep {
    color: #ccc;
}
.row-footer {
    display: flex;
    flex: 0 0 auto;
    min-height: 0;
    margin-top: 2rem;
    justify-content: space-around;
}
.s-l-contenedor {
    min-height: 50px;
}
.s-l-contenido {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.footer-partner-logo {
    height: 50px;
}

/* ARTICULO */

    /* GRILA DERECHA DE DOS COLUMNAS */
        .article-layout {
            display: grid;
            grid-template-columns: 1fr 220px;
            gap: 2.5rem;
            align-items: start;
        }

        /* COLUMNA ARTÍCULO */
        .article-main {
            background: white;
            padding: 3rem 2.5rem;
            border-radius: 12px;
            border: 1px solid var(--border);
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
            text-align: center;
        }
        .article-main .article-image,
        .article-main .article-details,
        .article-main .article-long-description {
            text-align: left;
        }
        .article-meta-badge {
            display: inline-block;
            background: #e6f8f4;
            color: var(--accent);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: bold;
            text-transform: uppercase;
            margin: 0.75rem auto 1rem auto;
            text-align: center;
        }
        .article-main h1 {
            font-size: 2.5rem;
            margin: 0 0 1.5rem 0;
            color: var(--primary);
            line-height: 1.2;
            text-align: center;
        }

        /* Cuando no se muestran banners laterales, expandir el artículo a todo el ancho */
        .article-layout.full-width-article {
            grid-template-columns: 1fr; /* eliminar la columna lateral */
        }
        .article-layout.full-width-article .article-main {
            max-width: none;
        }


        .article-body {
            color: var(--primary);
            font-size: 1.1rem;
            line-height: 1.8;
        }
        .article-body p { margin-bottom: 1.5rem; }
        .article-body h2 { font-size: 1.6rem; margin: 2rem 0 1rem 0; }
        .article-body h3 { font-size: 1.3rem; margin: 1.5rem 0 1rem 0; }

        /* COLUMNA LATERAL (Anti-AdBlock) */
        .article-related-sidebar {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            min-width: 220px;
        }
        .resource-card {
            background: white;
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            transition: transform 0.2s;
            display: block;
        }
        .resource-card:hover { transform: translateY(-2px); }
        .resource-card a {
            display: block;
            text-decoration: none;
            width: 100%;
            height: 100%;
        }
      .article-image {
            background-color: #ffffff;
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            height: 350px;
        }
        .article-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: block;
        }

       /* RESPONSIVE */
        @media (max-width: 900px) {
            .article-layout { grid-template-columns: 1fr; gap: 2rem; }
            .article-related-sidebar {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
                gap: 1.5rem;
                padding: 5px;
            }
        }
        
        @media (max-width: 900px) {
            .article-main { padding: 2rem 1.5rem; }
            .article-main h1 { font-size: 2rem; }
        }




 /* PRODUCTO */       

              /* CONTENEDOR ESTILO WOOCOMMERCE PRODUCTO */
        .product-container {
            background: white;
            padding: 3rem 2.5rem;
            border-radius: 12px;
            border: 1px solid var(--border);
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
            display: grid;
            grid-template-columns: 1fr 1fr; /* Mitad imagen, mitad detalles */
            gap: 1rem;
        }
        .product-container > * {
            min-width: 0;
        }
        /* El HTML de landing (campo landing_html) puede traer sus propios grids/flex
           anidados (ver render_detalle_html) — sin esto, el mismo problema de
           min-width:auto se repite adentro y sigue generando scroll horizontal. */
        .sanitizado * {
            min-width: 0;
        }

        /* Izquierda: Imagen */
        .product-image {
            background-color: #ffffff;
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            height: 480px;
        }
        .product-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: block;
        }

        /* Derecha: Info */
        .product-details {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .product-details h1 {
            font-size: 2.2rem;
            margin: 0 0 1rem 0;
            color: var(--primary);
            line-height: 1.2;
        }
        .product-meta-badge {
            align-self: flex-start;
            background: #e6f8f4;
            color: var(--accent);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: bold;
            text-transform: uppercase;
            margin-bottom: 1.5rem;
        }
        .product-details .description {
            color: var(--text);
            font-size: 1.05rem;
            line-height: 1.7;
            margin: 0 0 2.5rem 0;
        }
        .product-price {
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--primary);
            margin: 0 0 0.25rem 0;
        }
        .product-price-currency {
            font-size: 0.8rem;
            color: var(--text);
            margin: 0 0 1.5rem 0;
        }

        /* Botón de Compra / Redirección de Publicidad */
        .btn-checkout {
            display: inline-block;
            background: var(--accent);
            color: white;
            text-decoration: none;
            padding: 16px 30px;
            border-radius: 6px;
            font-weight: bold;
            font-size: 1.1rem;
            text-align: center;
            transition: background 0.3s;
            box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
        }
        .btn-checkout:hover {
            background: #009d7e;
        }
        .product-checkout-footer {
            grid-column: 1 / -1;
            text-align: center;
        }

        /* NUEVA SECCIÓN: HTML Libre inferior (Estilo descripción larga de WooCommerce) */
        .product-long-description {
            grid-column: 1 / -1; /* Ocupa las dos columnas de la grilla */
            border-top: 1px solid var(--border);
            padding-top: 2.5rem;
            margin-top: 0rem;
        }
        .product-long-description h2 {
            font-size: 1.5rem;
            color: var(--primary);
        }



        /* BANNERS INFERIORES: fila horizontal que ocupa toda la grilla del producto */
        .product-related-footer{
            grid-column: 1 / -1;
            padding: 12px 0;
            display: block;
        }

        .product-related-footer .related-footer-title{
            display: block;
            font-size: 1.25rem;
            margin: 0 0 8px 0;
            color: var(--primary);
        }

        .product-related-footer .related-cards-row{
            display: flex;
            gap: 12px;
            align-items: center;
            justify-content: flex-start;
            overflow-x: auto;
            justify-content: center;

        }

        .product-related-footer .related-cards-row .resource-card{
            flex: 0 0 auto;
            width: 250px;
        }

        .product-related-footer .related-cards-row .resource-image-wrapper img{
            width: 100%;
            height: auto;
            display: block;
           /* object-fit: cover; */
        }

                /* RESPONSIVE */
        @media (max-width: 900px) {
            .product-container { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0.75rem; }
            .product-image { height: unset; }
            .product-details h1 { font-size: 1.8rem; }
            .product-related-footer .related-cards-row {
                flex-direction: column;
                overflow-x: hidden;
            }
            .product-related-footer .related-cards-row .resource-card {
                flex: 0 0 auto;
                width: 100%;

            }

        }

/* PÁGINAS LEGALES (privacidad.php, terminos.php): layout de tarjeta centrada,
   sin sidebar. Reusa las variables de :root de arriba (antes cada vista
   redeclaraba las mismas 5 variables en su propio <style> inline). El margin
   vertical de 3rem reemplaza el padding que antes ponía body.legal-body: ya
   no hay una clase de body distinta por página, así que el espacio lo pone
   el propio contenedor. */
.legal-container {
    max-width: 800px;
    margin: 3rem auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}
.back-link:hover { color: var(--accent); }
.legal-container h1 { font-size: 2rem; color: var(--primary); margin-bottom: 1.5rem; border-bottom: 2px solid var(--light); padding-bottom: 0.5rem; }
.legal-container h2 { font-size: 1.3rem; color: var(--primary); margin-top: 2rem; margin-bottom: 1rem; }
.legal-container p, .legal-container li { color: var(--text); font-size: 0.95rem; }
.legal-container ul { padding-left: 1.5rem; }
.legal-container .date { font-style: italic; color: var(--text); margin-bottom: 2rem; font-size: 0.85rem; }
.legal-container .alert-box { background: #fff3cd; border-left: 4px solid #ffc107; padding: 1rem; margin: 1.5rem 0; border-radius: 4px; }
.legal-container .alert-box p { color: #856404; margin: 0; font-weight: bold; font-size: 0.9rem; }

/* PÁGINA 404 (templates/notfound.php) */
.notfound-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.notfound-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 420px;
    text-align: center;
}
.notfound-codigo {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin: 0 0 1rem;
}
.notfound-card h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 0 1rem;
}
.notfound-card p {
    color: var(--text);
    margin: 0 0 2rem;
}

/* CONTACTANOS (contactanos.php) */
.contact-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 2rem auto;
}
.contact-box h3 {
    margin-top: 0;
    color: var(--primary);
}
.contact-box form {
    display: flex;
    flex-direction: column;
}
.contact-box input, .contact-box textarea {
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.contact-box button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
.contact-box button:hover {
    background-color: #00a86b; /* Darker shade of accent */
}

/* BÚSQUEDA (search.php) */
.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    align-items: center;
}
.search-input {
    flex: 1;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.search-btn {
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-btn-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
}
.search-btn-label {
    line-height: 1;
}
.search-msg {
    color: var(--text);
    grid-column: 1/-1;
    text-align: center;
}
.search-msg-count {
    margin-bottom: 1rem;
}

