/* PANTRO Tyres - Web pública / Tienda - Estilos personalizables */
:root {
    --primary: #DC143C;
    --primary-dark: #b01030;
    --secondary: #1a1a2e;
    --dark: #0f0f23;
    --light: #f8f9fa;
    --text: #212529;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --white: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ----- Header / Nav ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.35rem;
}

.logo-link i { color: var(--primary); font-size: 1.8rem; }

.logo-link span { color: var(--primary); }

.nav-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-main a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.nav-main a:hover {
    background: rgba(220, 20, 60, 0.1);
    color: var(--primary);
}

.nav-main a.cta-nav {
    background: var(--primary);
    color: var(--white);
}

.nav-main a.cta-nav:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-main {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 0.5rem 0;
    }
    .nav-main.open { display: flex; }
    .nav-main a { text-align: center; padding: 0.65rem 1rem; }
    .header-inner { padding: 0.75rem 1rem; }
    .logo-link { font-size: 1.15rem; }
    .logo-link i { font-size: 1.4rem; }
}

/* ----- Hero ----- */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 4rem 1.5rem 5rem;
    text-align: center;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover { background: var(--primary-dark); color: var(--white); }

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.8);
}

.btn-outline-light:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* ----- Secciones ----- */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Grid catálogo */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--border);
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.product-card .medida {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.product-card .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Filtros catálogo */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.catalog-toolbar input,
.catalog-toolbar select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
}

/* ----- Footer ----- */
.site-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
}

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

.footer-inner a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer-inner a:hover { color: var(--primary); }

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== Global Mobile Responsiveness ===== */
@media (max-width: 600px) {
    .section {
        padding: 1.5rem 0.75rem;
    }
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    .hero {
        padding: 2.5rem 1rem 3rem;
    }
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .hero-buttons { gap: 0.75rem; }
    .hero-buttons .btn { padding: 10px 18px; font-size: 0.9rem; width: 100%; justify-content: center; }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .product-card img { height: 130px; padding: 6px; }
    .product-card .card-body { padding: 10px; }
    .product-card h3 { font-size: 0.85rem; }
    .product-card .medida { font-size: 0.85rem; }
    .product-card .meta { font-size: 0.75rem; }
    .site-footer { padding: 1.5rem 1rem; margin-top: 2rem; }
    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; font-size: 0.85rem; }
    .footer-copy { font-size: 0.8rem; }
}

@media (max-width: 380px) {
    .catalog-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .section { padding: 1rem 0.5rem; }
}
