/*
Theme Name: WP Headless WooCommerce Theme
Theme URI: https://example.com/wp-headless-woocommerce-theme
Author: Equipo Headless
Author URI: https://example.com
Description: Tema híbrido ligero para WordPress + WooCommerce. SPA para blog y catálogo, checkout en PHP.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: wp-headless-woocommerce-theme
Tags: blog, commerce, headless, minimal, responsive
*/

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111;
    background: #f8f8f8;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header,
.site-footer {
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    color: #111827;
    text-decoration: none;
}

.site-title:hover {
    text-decoration: none;
}

.site-description {
    margin: 0;
    color: #667085;
    font-size: 0.95rem;
}

.site-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.site-search-form input[type="search"] {
    width: 260px;
    max-width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
}

.site-search-form input[type="search"]:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.site-search-form button {
    padding: 0.6rem 0.9rem;
    border: none;
    border-radius: 10px;
    background: #1d4ed8;
    color: #ffffff;
    cursor: pointer;
}

.site-search-form button:hover {
    background: #2563eb;
}

.site-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

.spa-shell {
    min-height: calc(100vh - 140px);
}

.grid-list {
    display: grid;
    gap: 1rem;
}

.grid-list.cards {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.card p {
    margin: 0 0 1rem;
    color: #475569;
    line-height: 1.6;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.meta {
    font-size: 0.88rem;
    color: #64748b;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #111827;
    border: 1px solid transparent;
}

.nav-links a.is-active,
.nav-links a:hover {
    background: #1e40af;
    color: #fff;
}

.hero {
    padding: 2rem 1.5rem;
    background: linear-gradient(142deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
}

.hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.hero p {
    margin: 0;
    color: #475569;
    max-width: 720px;
}

footer.site-footer {
    margin-top: 3rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-footer-content {
    flex: 1;
    font-size: 0.95rem;
    color: #64748b;
}

.site-footer-content p {
    margin: 0;
}

.footer-navigation {
    flex: 1;
}

.footer-nav-links {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: flex-end;
}

.footer-nav-links a {
    color: #667085;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-nav-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@media (max-width: 720px) {
    .site-main {
        padding: 1rem;
    }

    .hero {
        padding: 1.5rem;
    }

    .site-search-form {
        width: 100%;
    }

    .site-search-form input[type="search"] {
        flex: 1;
        width: 100%;
    }
}
