/* ========================================
   TRUTOSA - CSS PRINCIPAL
   Tienda de Productos Naturales
   ======================================== */

/* -------- VARIABLES -------- */
:root {
    --green-dark: #1B5E20;
    --green: #2E7D32;
    --green-light: #43A047;
    --green-pale: #C8E6C9;
    --green-pale-light: #E8F5E9;
    --cream: #FFF8E1;
    --cream-dark: #FFF3E0;
    --text-dark: #1A1A1A;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --white: #FFFFFF;
    --bg-light: #FAFAFA;
    --border: #E0E0E0;
    --border-light: #F0F0F0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* -------- RESET -------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.6;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* -------- TOPBAR -------- */
.topbar {
    background: var(--green-dark);
    color: var(--white);
    font-size: 0.8rem;
    padding: 8px 0;
}

.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.topbar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar svg {
    opacity: 0.8;
}

/* -------- HEADER -------- */
.header {
    background: var(--white);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.mobile-menu-toggle:hover {
    background: var(--green-pale-light);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Overlay hidden by default */
.mobile-nav-overlay {
    display: none;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

@media (max-width: 992px) {
    .header-inner {
        display: flex;
        flex-wrap: wrap;
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--green-dark);
    letter-spacing: 1px;
}

.logo-name-footer{
    font-size: 1.5rem;
    font-weight: 900;
    color: #c0ffce;
    letter-spacing: 1px;
}
.logo-tagline-footer {
    font-size: 0.7rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 992px) {
    .logo-img {
        height: 40px;
    }
}

/* Search */
.header-search {
    flex: 1;
    max-width: 500px;
}

.search-box {
    display: flex;
    background: var(--green-pale-light);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--green);
    background: var(--white);
}

.search-icon {
    padding: 12px 16px;
    color: var(--text-light);
}

.search-box input {
    flex: 1;
    padding: 12px 0;
    font-size: 0.95rem;
}

.search-box button {
    background: var(--green);
    color: var(--white);
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--green-dark);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.action-btn:hover {
    background: var(--green-pale-light);
}

.action-btn svg {
    color: var(--text);
}

.action-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.action-badge {
    position: absolute;
    top: 0;
    right: 8px;
    background: #E53935;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-header-login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-header-login:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background: #effff0;
    border-top: 1px solid var(--green-pale);
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--green);
    background: var(--white);
    border-bottom-color: var(--green);
}

/* Mobile Nav */
.mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 200;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    background: var(--green-dark);
    color: var(--white);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
}

.mobile-nav-content {
    padding: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--green-pale-light);
    color: var(--green);
}

.mobile-nav-link svg {
    color: var(--green);
}

.mobile-nav-section {
    padding: 16px 20px;
    background: var(--bg-light);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-mobile-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--green);
    color: var(--white);
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-mobile-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--green-pale-light);
    color: var(--green);
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* Dropdown */
.nav-dropdown-wrap {
    position: relative;
}

.nav-dropdown-btn {
    cursor: pointer;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 220px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 50;
}

.nav-dropdown-wrap:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text);
    transition: var(--transition);
}

.nav-dropdown a:hover {
    background: var(--green-pale-light);
    color: var(--green);
}

.nav-dropdown svg {
    color: var(--green);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

.dropdown-promo {
    color: #E53935 !important;
    font-weight: 600;
}

.dropdown-promo svg {
    color: #E53935 !important;
}

/* -------- SECTIONS -------- */
.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--green-dark);
    font-weight: 800;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.section .line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* -------- SLIDERS -------- */
.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--text-dark);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px;
    color: var(--white);
}

.slide-info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.slide-info p {
    opacity: 0.9;
    margin-bottom: 16px;
}

.btn-expand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-expand:hover {
    background: var(--green-dark);
    transform: scale(1.05);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 5px;
}

/* -------- PRODUCTS GRID -------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card-body {
    padding: 20px;
}

.tag {
    display: inline-block;
    background: var(--green-pale-light);
    color: var(--green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.product-card-body > p {
    color: var(--text-light);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--green);
}

.price-old {
    font-size: 1rem;
    color: var(--text-lighter);
    text-decoration: line-through;
}

.badge-promo {
    background: #E53935;
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-featured {
    background: var(--green);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-card-footer {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
}

.btn-add-cart, .btn-view {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart {
    background: var(--green);
    color: var(--white);
}

.btn-add-cart:hover {
    background: var(--green-dark);
}

.btn-view {
    background: var(--green-pale-light);
    color: var(--green);
    flex: 0 0 auto;
    width: 44px;
    padding: 12px;
}

.btn-view:hover {
    background: var(--green-pale);
}

/* -------- PROMO BANNER -------- */
.promo-banner {
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    color: var(--white);
    text-align: center;
    padding: 50px 40px;
    margin: 40px auto;
    max-width: 1400px;
    border-radius: var(--radius-lg);
}

.promo-banner h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.promo-banner p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 24px;
}

.btn-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff6c6c;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-promo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* -------- STORE LAYOUT -------- */
.store-layout {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
}

.store-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.store-sidebar h3 {
    font-size: 1rem;
    color: var(--green-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.filter-group h3 {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}

.filter-group label:hover {
    color: var(--green);
}

.filter-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.price-range {
    width: 100%;
    accent-color: var(--green);
    cursor: pointer;
}

.btn-save {
    background: var(--green);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-save:hover {
    background: var(--green-dark);
}

.store-main {
    flex: 1;
    min-width: 0;
}

.store-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.store-toolbar h2 {
    font-size: 1.4rem;
    color: var(--green-dark);
}

.sort-select {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    border-color: var(--green);
}

/* -------- CART -------- */
.cart-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-control button {
    width: 32px;
    height: 32px;
    border: 2px solid var(--green-pale);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.qty-control button:hover {
    background: var(--green-pale-light);
}

.qty-control input {
    border: 2px solid var(--green-pale);
    border-radius: 6px;
    padding: 6px;
    width: 50px;
    text-align: center;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 120px;
}

.cart-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--green-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
    border-bottom: none;
    padding-top: 20px;
}

.btn-checkout {
    width: 100%;
    background: var(--green);
    color: var(--white);
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: var(--green-dark);
}

/* -------- CART - ENHANCEMENTS (sin estilos inline) -------- */
.cart-item-total {
    font-weight: 800;
    color: var(--green);
    font-size: 1.1rem;
    min-width: 90px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 6px;
    flex: 0 0 auto;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #c0392b;
    transform: translateY(-1px);
}

.cart-free-shipping {
    color: var(--green);
    font-weight: 700;
}

/* -------- EMPTY STATE -------- */
.empty-state {
    text-align: center;
    padding: 100px 100px;
    color: var(--text-light);
    transform: translateX(10px);
}
.empty-state svg {
    margin-bottom: 20px;
    color: var(--border);
}

.empty-state p {
    font-size: 1.1rem;
}

/* -------- PAGINATION -------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover, .pagination a.active {
    background: var(--green);
    color: var(--white);
}

/* -------- GALLERY -------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* -------- FOOTER -------- */
.footer {
    background: var(--text-dark);
    color: var(--white);
    margin-top: 80px;
}

.footer-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--green);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-name {
    font-size: 1.3rem;
    font-weight: 800;
    display: block;
}

.footer-logo-tag {
    font-size: 0.7rem;
    color: var(--text-lighter);
}

.footer-brand p {
    color: var(--text-lighter);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--green);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-lighter);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--green-pale);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: var(--text-lighter);
}

.newsletter-form button {
    width: 44px;
    height: 44px;
    background: var(--green);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--green-light);
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-lighter);
    font-size: 0.85rem;
}

.footer-badge svg {
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-pay-icons {
    display: flex;
    gap: 12px;
}

.pay-icon {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* -------- MODAL -------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}

/* -------- GALERÍA MODAL — TRUTOSA -------- */
.ig-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 34px);
    background: rgba(8, 14, 10, .78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

.ig-modal {
    width: min(1180px, 100%);
    height: min(760px, calc(100dvh - 48px));
    max-height: calc(100dvh - 48px);
    min-height: 420px;
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(330px, .88fr);
    background: #fff;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0,0,0,.34);
    overflow: hidden;
}

.ig-modal-media {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(72,105,77,.22), transparent 42%),
        linear-gradient(145deg, #0d120f 0%, #151c17 100%);
}

.ig-media-element,
.ig-modal-media img,
.ig-modal-media video {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}

.ig-media-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(9,15,11,.56);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.ig-media-badge svg {
    width: 15px;
    height: 15px;
}

.ig-modal-side {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);
}

.ig-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid #edf1ed;
}

.ig-modal-heading {
    min-width: 0;
}

.ig-modal-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--green);
    font-size: .68rem;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.ig-modal-header h3 {
    margin: 0;
    color: #26312a;
    font-size: clamp(1.08rem, 1.8vw, 1.34rem);
    line-height: 1.28;
    letter-spacing: -.018em;
    overflow-wrap: anywhere;
}

.ig-modal-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid #e4eae5;
    border-radius: 12px;
    background: #fff;
    color: #526158;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.ig-modal-close svg {
    width: 18px;
    height: 18px;
}

.ig-modal-close:hover {
    transform: translateY(-1px);
    background: #f5f8f5;
    border-color: #d7e1d9;
}

.ig-modal-close:focus-visible {
    outline: 3px solid rgba(45,129,67,.18);
    outline-offset: 2px;
}

.ig-modal-desc {
    margin: 18px 24px 0;
    padding: 14px 15px;
    border-left: 3px solid #7a9b62;
    border-radius: 0 12px 12px 0;
    background: #f4f7f1;
    color: #4e5d53;
    font-size: .9rem;
    line-height: 1.65;
}

.ig-comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 24px 12px;
}

.ig-comments-head > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ig-comments-head strong {
    color: #2d3931;
    font-size: .88rem;
}

.ig-comments-head span:not(.ig-comments-count) {
    color: #879188;
    font-size: .72rem;
}

.ig-comments-count {
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #eef5ef;
    color: #387248;
    font-size: .74rem;
    font-weight: 850;
}

.ig-modal-comments {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 24px 16px;
    scrollbar-width: thin;
    scrollbar-color: #cbd7ce transparent;
}

.ig-comment {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #edf1ed;
}

.ig-comment-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #e9f2e8;
    color: #316a41;
    font-size: .8rem;
    font-weight: 850;
}

.ig-comment-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #566159;
    font-size: .88rem;
    line-height: 1.5;
}

.ig-comment-body strong {
    color: #27332b;
    font-size: .82rem;
}

.ig-comment-body span {
    overflow-wrap: anywhere;
}

.ig-empty-comments {
    flex: 1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 26px 18px;
    border: 1px dashed #dce5dd;
    border-radius: 16px;
    background: #fff;
    color: #657268;
}

.ig-empty-comments-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 11px;
    border-radius: 15px;
    background: #eef5ef;
    color: #3f7a4d;
}

.ig-empty-comments-icon svg {
    width: 23px;
    height: 23px;
}

.ig-empty-comments strong {
    margin-bottom: 5px;
    color: #344139;
    font-size: .9rem;
}

.ig-empty-comments p {
    max-width: 290px;
    margin: 0;
    font-size: .78rem;
    line-height: 1.55;
}

.ig-modal-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 24px 20px;
    border-top: 1px solid #edf1ed;
    background: rgba(255,255,255,.92);
}

.ig-comment-field {
    position: relative;
    min-width: 0;
    flex: 1;
}

.ig-comment-field svg {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #829087;
    pointer-events: none;
}

.ig-modal-input input {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid #dce4de;
    border-radius: 13px;
    padding: 0 13px 0 40px;
    background: #f8faf8;
    color: #26332b;
    font-size: 16px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ig-modal-input input:focus {
    border-color: #7aa184;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(65,127,81,.10);
}

.ig-modal-input button {
    min-height: 46px;
    flex: 0 0 auto;
    border: 1px solid #2e8046;
    border-radius: 13px;
    padding: 0 17px;
    background: #2f8047;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.ig-modal-input button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #276f3d;
}

.ig-modal-input button:disabled {
    opacity: .46;
    cursor: not-allowed;
}

.ig-no-comments {
    color: var(--text-light);
    font-size: .95rem;
}

@media (max-width: 950px) {
    .ig-modal-overlay {
        align-items: flex-start;
        overflow-y: auto;
    }

    .ig-modal {
        height: auto;
        max-height: none;
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(280px, 52dvh) auto;
    }

    .ig-modal-media {
        min-height: 280px;
    }

    .ig-modal-side {
        overflow: visible;
    }

    .ig-modal-comments {
        flex: none;
        max-height: 280px;
    }
}

@media (max-width: 620px) {
    .ig-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .ig-modal {
        width: 100%;
        border-radius: 20px;
        grid-template-rows: minmax(240px, 43dvh) auto;
    }

    .ig-media-badge {
        top: 12px;
        left: 12px;
    }

    .ig-modal-header {
        padding: 18px 18px 14px;
    }

    .ig-modal-desc {
        margin: 14px 18px 0;
    }

    .ig-comments-head {
        padding: 15px 18px 10px;
    }

    .ig-modal-comments {
        padding: 0 18px 14px;
        max-height: 240px;
    }

    .ig-modal-input {
        padding: 13px 18px 18px;
        flex-wrap: wrap;
    }

    .ig-comment-field {
        flex-basis: 100%;
    }

    .ig-modal-input button {
        width: 100%;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--green-pale-light);
}

.modal-info {
    padding: 24px;
    border-top: 1px solid var(--border-light);
}

.modal-info h3 {
    font-size: 1.3rem;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.modal-info p {
    color: var(--text-light);
}

/* -------- UTILITIES -------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }

/* -------- RESPONSIVE -------- */

/* TV / pantallas muy grandes (1600px+) */
@media (min-width: 1600px) {
    .section { max-width: 1600px; padding: 60px 60px; }
    .header-inner { max-width: 1600px; }
    .navbar-inner { max-width: 1600px; }
    .footer-top { max-width: 1600px; }
    .footer-bottom-inner { max-width: 1600px; }
    .store-layout { max-width: 1600px; }
    .cart-layout { max-width: 1400px; }
    .hero-section { max-width: 100%; min-height: 850px; }
    .hero-section h1 { font-size: 4.5rem; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
    .features-grid { max-width: 1600px; }
}

@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-brand {
        grid-column: span 3;
    }
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-nav-overlay {
        display: block;
    }
    .navbar {
        display: none;
    }
    .header-inner {
        display: flex;
        flex-wrap: wrap;
        padding: 10px 15px;
        gap: 10px;
    }
    .logo {
        flex: 0 0 auto;
    }
    .logo-img {
        height: 36px;
    }
    .header-search {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .header-actions {
        margin-left: auto;
        gap: 4px;
    }
    .action-btn {
        padding: 8px;
    }
    .action-label {
        display: none;
    }
    .btn-header-login {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .btn-header-login span {
        display: none;
    }
    .store-layout {
        flex-direction: column;
    }
    .store-sidebar {
        width: 100%;
        position: static;
    }
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 6px 0;
    }
    .topbar-inner {
        padding: 0 15px;
        flex-direction: column;
        gap: 6px;
        font-size: 0.75rem;
    }
    .header-inner {
        padding: 12px 20px;
    }
    .navbar-inner {
        padding: 0 20px;
        overflow-x: auto;
    }
    .section {
        padding: 30px 20px;
    }
    .store-layout, .cart-layout {
        padding: 20px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 16px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .cart-item img { width: 80px; height: 80px; }
    .hero-section h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .topbar span {
        font-size: 0.7rem;
    }
    .logo-text-wrap {
        display: none;
    }
    .header-inner {
        padding: 10px 15px;
    }
    .search-box {
        border-radius: var(--radius-sm);
    }
    .search-box input {
        padding: 10px 0;
        font-size: 0.9rem;
    }
    .search-box button {
        padding: 10px 14px;
    }
    .search-box {
        border-radius: var(--radius);
    }
    .search-box button {
        padding: 12px 16px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-card img { height: 160px; }
    .product-card-body { padding: 12px; }
    .product-card h3 { font-size: 0.95rem; }
    .product-card-footer {
        flex-direction: row;
        padding: 10px 12px;
        gap: 6px;
    }
    .btn-view {
        width: 40px;
        padding: 10px;
    }
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    .cart-item img {
        width: 100%;
        height: 150px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Móvil muy pequeño (hasta 360px) */
@media (max-width: 360px) {
    .products-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 1.5rem; }
    .section { padding: 20px 12px; }
    .header-inner { padding: 8px 12px; }
}

/* -------- AUTH STYLES -------- */
.auth-container {
 min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 30px;
    
    /* Tu gradiente e imagen */
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(250, 238, 131, 0.212) 100%),  url('../assets/img/others/image2.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;  
}

.auth-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.auth-box h2 {
    color: var(--green-dark);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.auth-box > div:first-child p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-light);
}

.auth-tab.active {
    background: var(--green);
    color: var(--white);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-pale-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #E53935;
}

.alert-success {
    background: #E8F5E9;
    color: var(--green-dark);
    border-left: 4px solid var(--green);
}

/* -------- USER DASHBOARD -------- */
.user-layout {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    min-height: calc(100vh - 200px);
}

.user-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.user-avatar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
}

.user-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 16px;
    object-fit: cover;
    border: 4px solid var(--green-pale);
}

.user-avatar h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.user-avatar p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.user-menu {
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-card);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.user-menu a:hover {
    background: var(--green-pale-light);
    color: var(--green);
}

.user-menu a.active {
    background: var(--green);
    color: var(--white);
}

.user-menu a i {
    width: 20px;
}

.user-content {
    flex: 1;
    min-width: 0;
}

.tab-content {
    display: none;
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-card);
}

.tab-content.active {
    display: block;
}

/* Orders */
.order-item {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 16px;
}

.order-item h4 {
    color: var(--text-dark);
    font-size: 1rem;
}

.ticket-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.ticket-status.status-abierto, .ticket-status.status-pendiente {
    background: #FFF3E0;
    color: #E65100;
}

.ticket-status.status-cerrado, .ticket-status.status-completado {
    background: var(--green-pale-light);
    color: var(--green-dark);
}

/* Tickets */
.ticket-item {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 12px;
}

.ticket-item h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 8px;
}

.ticket-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 8px 0;
}

/* Product Modal */
.product-modal {
    padding: 0;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.product-modal-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-modal-info {
    padding: 24px;
}

.product-modal-info h2 {
    font-size: 1.5rem;
    color: var(--green-dark);
    margin: 10px 0;
}

.product-modal-info .stars {
    color: #FFC107;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.price-big {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 16px;
}

.price-big .price-old {
    font-size: 1.1rem;
    margin-left: 10px;
}

.btn-buy {
    width: 100%;
    background: var(--green);
    color: var(--white);
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-buy:hover {
    background: var(--green-dark);
}

.reviews-section {
    border-top: 1px solid var(--border-light);
    padding: 24px;
}

.reviews-section h3, .comments-section h4 {
    color: var(--green-dark);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.review-item {
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.reviewer {
    font-weight: 600;
    margin-bottom: 6px;
}

.reviewer .stars {
    color: #FFC107;
    font-size: 0.85rem;
    margin-left: 8px;
}

.review-form {
    background: var(--green-pale-light);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
}

.star-select {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.star-select span {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.star-select span.active {
    color: #FFC107;
}

.star-select span:hover {
    color: #FFC107;
    transform: scale(1.2);
}

.review-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    resize: vertical;
}

.review-form textarea:focus {
    border-color: var(--green);
}

/* Comments */
.comments-section {
    border-top: 1px solid var(--border-light);
    padding: 24px;
}

.comment-item {
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.comment-user {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.comment-text {
    color: var(--text-light);
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.comment-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
}

.comment-form input:focus {
    border-color: var(--green);
}

.comment-form button {
    background: var(--green);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.comment-form button:hover {
    background: var(--green-dark);
}

/* Responsive Auth & User */
@media (max-width: 992px) {
    .user-layout {
        flex-direction: column;
    }
    .user-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .user-layout {
        padding: 20px;
    }
    .auth-box {
        padding: 30px 24px;
    }
    .product-modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .user-avatar {
        padding: 20px;
    }
    .user-avatar img {
        width: 70px;
        height: 70px;
    }
    .tab-content {
        padding: 20px;
    }
}

/* -------- COOKIE BANNER -------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 20px;
    border-top: 3px solid var(--green);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 300px;
}

.cookie-text svg {
    flex-shrink: 0;
    color: var(--green);
}

.cookie-text p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--green);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.btn-cookie-accept {
    background: var(--green);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-accept:hover {
    background: var(--green-dark);
}

.btn-cookie-reject {
    background: var(--bg-light);
    color: var(--text);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-reject:hover {
    background: var(--border);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-text {
        flex-direction: column;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* -------- HERO SECTION -------- */
.hero-section {
    background: linear-gradient(135deg, rgba(52, 54, 52, 0.9) 0%, rgba(0, 0, 0, 0.212) 100%), 
                url('../assets/img/others/image.png');
    background-size: cover;
    background-position: center;
    padding: 0px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height:770px;
    max-width: 1900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, transparent 60%);
}

.hero-content {
    flex: 1;
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-brand {
    color: #8BC34A;
    font-weight: 900;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--white);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--green-dark);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--white);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--white);
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.hero-visual {
    display: none;
}

/* -------- FEATURES BANNER -------- */
.features-banner {
    background: var(--white);
    padding: 25px 40px;
    border-bottom: 1px solid var(--border-light);
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-item svg {
    color: var(--green);
    flex-shrink: 0;
}

.feature-item h4 {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* -------- PROMO BANNER -------- */
.promo-banner {
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    color: var(--white);
    text-align: center;
    padding: 50px 40px;
    margin: 40px auto;
    max-width: 1400px;
    border-radius: var(--radius-lg);
}

.promo-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.promo-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 24px;
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        width: 200px;
        height: 200px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 50px 15px;
        min-height: auto;
        text-align: center;
    }
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .hero-badge {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    .hero-stats {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    .features-banner {
        padding: 20px 15px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .feature-item {
        justify-content: flex-start;
        text-align: left;
        gap: 12px;
    }
    .section {
        padding: 30px 15px;
    }
    .section-title h2 {
        font-size: 1.5rem;
    }
    .section-title p {
        font-size: 0.95rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .product-card img {
        height: 180px;
    }
    .product-card-body {
        padding: 15px;
    }
    .product-card h3 {
        font-size: 1rem;
    }
    .product-price {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .price-current {
        font-size: 1.2rem;
    }
    .product-card-footer {
        flex-direction: row;
        padding: 12px 15px;
    }
    .btn-add-cart {
        flex: 1;
        padding: 10px;
    }
    .btn-view {
        width: 44px;
        padding: 10px;
    }
    .store-layout, .cart-layout {
        padding: 15px;
    }
    .store-sidebar {
        margin-bottom: 20px;
    }
    .store-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .user-layout {
        padding: 15px;
        flex-direction: column;
    }
    .user-sidebar {
        width: 100%;
    }
    .user-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    .user-menu a {
        flex: 1;
        min-width: calc(50% - 5px);
        padding: 10px;
        font-size: 0.85rem;
        justify-content: center;
    }
    .tab-content {
        padding: 15px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .auth-box {
        padding: 20px;
    }
    .auth-tabs {
        margin-bottom: 15px;
    }
    .auth-tab {
        padding: 10px;
        font-size: 0.9rem;
    }
    .footer-top {
        padding: 30px 15px;
        gap: 25px;
    }
    .footer-col h4 {
        font-size: 1rem;
    }
    .footer-col ul li a {
        font-size: 0.85rem;
    }
    .footer-bottom-inner {
        padding: 15px;
        flex-direction: column;
        gap: 12px;
    }
    .promo-banner {
        padding: 30px 15px;
        margin: 20px 15px;
    }
    .promo-banner h2 {
        font-size: 1.4rem;
    }
    .promo-banner p {
        font-size: 0.95rem;
    }
    .btn-promo {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .slider-wrapper {
        border-radius: 10px;
    }
    .slide img {
        height: 220px;
        object-position: center;
    }
    .slide-info {
        padding: 20px;
    }
    .slide-info h3 {
        font-size: 1.1rem;
    }
    .slide-info p {
        font-size: 0.8rem;
    }
    .slider-btn {
        width: 36px;
        height: 36px;
    }
    .modal-box {
        max-width: 95%;
        margin: 10px;
        border-radius: 10px;
    }
    .product-modal-grid {
        grid-template-columns: 1fr;
    }
    .product-modal-grid img {
        height: 220px;
    }
    .product-modal-info {
        padding: 15px;
    }
    .product-modal-info h2 {
        font-size: 1.2rem;
    }
    .price-big {
        font-size: 1.4rem;
    }
    .reviews-section, .comments-section {
        padding: 15px;
    }
    .comment-form {
        flex-direction: column;
    }
    .comment-form button {
        width: 100%;
    }
    .cookie-banner {
        padding: 15px;
    }
    .cookie-content {
        gap: 15px;
    }
    .cookie-text {
        font-size: 0.85rem;
        min-width: auto;
    }
    .cookie-buttons {
        flex-direction: row;
        width: 100%;
    }
    .btn-cookie-accept, .btn-cookie-reject {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pagination {
        gap: 6px;
    }
    .pagination a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* =========================================================
   TRUTOSA 2026 — REFINAMIENTO PROFESIONAL
   Mantiene la identidad verde existente y mejora jerarquía,
   consistencia, legibilidad, tienda, tarjetas y responsive.
========================================================= */

:root {
    --surface-elevated: #ffffff;
    --surface-soft: #f6f8f6;
    --green-ink: #123d18;
    --focus-ring: 0 0 0 4px rgba(46,125,50,.13);
    --shadow-premium: 0 18px 55px rgba(20,55,25,.10);
}

body { background: #f7f9f7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.header { border-bottom: 1px solid rgba(27,94,32,.08); box-shadow: 0 8px 28px rgba(19,61,24,.07); backdrop-filter: saturate(140%) blur(12px); }
.header-inner { min-height: 76px; }
.logo-img { height: 52px; filter: drop-shadow(0 5px 9px rgba(0,0,0,.08)); }
.logo-name { letter-spacing: .045em; }
.search-box { min-height: 48px; background: #f4f8f4; border: 1px solid #e2ece3; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.search-box:focus-within { border-color: var(--green-light); box-shadow: var(--focus-ring); }
.search-box button { font-weight: 750; padding-inline: 20px; }
.action-btn, .btn-header-login, .nav-link { transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.action-btn:hover, .btn-header-login:hover { transform: translateY(-1px); }
.navbar { border-top: 1px solid #edf2ed; }
.nav-link { border-radius: 9px; }
.nav-link:hover { background: var(--green-pale-light); }

.hero-section { max-width: 1400px; margin: 28px auto 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-premium); min-height: 510px; }
.hero-content { padding-top: 72px; padding-bottom: 72px; }
.hero-content h1 { letter-spacing: -.045em; line-height: 1.02; max-width: 760px; }
.hero-subtitle { max-width: 720px; font-size: 1.05rem; line-height: 1.8; }
.hero-badge { box-shadow: 0 8px 20px rgba(0,0,0,.09); }
.btn-hero-primary, .btn-hero-secondary { min-height: 52px; border-radius: 12px; font-weight: 750; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.hero-stats { border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }

.features-banner { max-width: 1340px; margin: 22px auto 0; border-radius: 18px; border: 1px solid #e7eee7; box-shadow: 0 10px 32px rgba(27,94,32,.055); }
.feature-item { min-height: 72px; }
.feature-item svg { color: var(--green); }

.section { max-width: 1400px; margin-inline: auto; }
.section-title { margin-bottom: 34px; }
.section-title h2 { letter-spacing: -.025em; color: var(--green-ink); }
.section-title .line { width: 56px; height: 4px; border-radius: 99px; }

.products-grid { gap: 22px; }
.product-card { border: 1px solid #e7ece7; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 24px rgba(16,52,21,.055); background: #fff; transform: translateZ(0); }
.product-card:hover { transform: translateY(-5px); border-color: #d3e1d4; box-shadow: 0 18px 42px rgba(16,52,21,.12); }
.product-card > img { background: #f5f7f5; }
.product-card-body { padding: 20px 20px 16px; }
.product-card h3 { color: #173b1b; letter-spacing: -.015em; }
.product-card-body p { line-height: 1.65; }
.tag { border-radius: 999px; font-weight: 700; letter-spacing: .015em; }
.price-current { color: var(--green-dark); font-weight: 850; }
.product-card-footer { border-top: 1px solid #edf1ed; background: #fcfdfc; }
.btn-add-cart { border-radius: 10px; font-weight: 750; }
.btn-view { border-radius: 10px; }

.store-masthead { padding: 34px 40px 10px; }
.store-masthead-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 32px 36px; color: #fff; border-radius: 22px; background: linear-gradient(125deg,#153f1b 0%,#236d2b 58%,#2f8238 100%); box-shadow: 0 18px 44px rgba(23,75,29,.16); position: relative; overflow: hidden; }
.store-masthead-inner::after { content:""; position:absolute; width:260px; height:260px; right:-80px; top:-115px; border:1px solid rgba(255,255,255,.12); border-radius:50%; box-shadow:0 0 0 38px rgba(255,255,255,.035),0 0 0 76px rgba(255,255,255,.025); }
.store-masthead-inner > * { position: relative; z-index: 1; }
.store-eyebrow { display:inline-block; margin-bottom:8px; text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; font-weight:800; color:#c9edce; }
.store-masthead h1 { margin:0 0 8px; max-width:700px; font-size:clamp(1.7rem,3vw,2.55rem); line-height:1.08; letter-spacing:-.035em; }
.store-masthead p { max-width:760px; color:rgba(255,255,255,.78); line-height:1.65; }
.store-trust { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; max-width:360px; }
.store-trust span { white-space:nowrap; display:inline-flex; align-items:center; gap:7px; padding:9px 11px; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.09); border-radius:999px; font-size:.76rem; font-weight:650; backdrop-filter:blur(8px); }

.store-layout { max-width: 1400px; margin: 0 auto; padding-top: 26px; align-items: start; }
.store-sidebar { position: sticky; top: 126px; border: 1px solid #e3eae3; border-radius: 16px; box-shadow: 0 8px 26px rgba(18,57,23,.06); }
.store-sidebar > form > h3 { font-size: 1rem; color: var(--green-dark); }
.filter-group { border-top: 1px solid #edf1ed; padding-top: 18px; }
.filter-group label { border-radius: 8px; padding: 7px 8px; margin-inline: -8px; transition: background .15s ease; }
.filter-group label:hover { background: #f1f7f1; }
.store-main { min-width: 0; }
.store-toolbar { background: #fff; border: 1px solid #e5ebe5; border-radius: 15px; padding: 18px 20px; box-shadow: 0 6px 20px rgba(18,57,23,.045); margin-bottom: 20px; }
.store-toolbar h2 { color: var(--green-ink); letter-spacing: -.02em; }
.sort-select { min-height: 42px; border: 1px solid #dfe7df; border-radius: 10px; background: #fff; padding-inline: 12px; }
.sort-select:focus { border-color: var(--green); box-shadow: var(--focus-ring); }

.cart-item, .cart-summary, .tab-content, .auth-box, .modal-box { border: 1px solid #e5ebe5; box-shadow: 0 12px 35px rgba(18,57,23,.07); }
.cart-summary { position: sticky; top: 126px; }
.btn-checkout, .btn-save { border-radius: 11px; font-weight: 760; box-shadow: 0 7px 18px rgba(46,125,50,.15); }
.pagination a { border: 1px solid #dfe7df; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.pagination a.active { border-color: var(--green); }

.footer { margin-top: 56px; }
.footer-top { max-width: 1400px; margin-inline: auto; }
.footer-col h4 { letter-spacing: .01em; }
.footer-col ul li a { transition: color .18s ease, transform .18s ease; display: inline-block; }
.footer-col ul li a:hover { transform: translateX(3px); }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(67,160,71,.30); outline-offset: 2px; }

@media (max-width: 1100px) {
    .hero-section { margin-inline: 18px; }
    .features-banner { margin-inline: 18px; }
    .store-masthead { padding-inline: 20px; }
    .store-masthead-inner { align-items: flex-start; flex-direction: column; }
    .store-trust { justify-content: flex-start; max-width: none; }
}

@media (max-width: 768px) {
    .header-inner { min-height: 66px; }
    .hero-section { margin: 14px 12px 0; border-radius: 20px; min-height: auto; }
    .hero-content { padding: 44px 24px; }
    .features-banner { margin: 14px 12px 0; border-radius: 14px; }
    .store-masthead { padding: 18px 12px 0; }
    .store-masthead-inner { padding: 24px 20px; border-radius: 17px; }
    .store-masthead p { font-size: .9rem; }
    .store-trust span { font-size: .7rem; }
    .store-layout { padding-inline: 12px; }
    .store-sidebar { position: static; }
    .store-toolbar { padding: 15px; }
    .products-grid { gap: 14px; }
    .product-card { border-radius: 15px; }
}

/* ============================================================================
   TRUTOSA RESPONSIVE PRO 2026
   Ajustes finales: móvil, tablet, laptop, desktop y pantallas grandes
   ========================================================================== */

html { overflow-x: hidden; }
body { min-width: 0; overflow-x: hidden; }
img, video, iframe, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* Desktop / laptop: contenedores fluidos sin estirarse demasiado */
.header-inner,
.navbar-inner,
.section,
.store-layout,
.cart-layout,
.footer-top,
.footer-bottom-inner {
    width: min(100% - 40px, 1400px);
    margin-left: auto;
    margin-right: auto;
}

/* El masthead mantiene respiración en cualquier escritorio */
.store-masthead { padding-inline: max(20px, calc((100vw - 1480px) / 2)); }

/* Evita que textos y grids fuercen overflow */
.header-inner > *,
.store-layout > *,
.cart-layout > *,
.product-card,
.cart-item,
.footer-top > * { min-width: 0; }

/* Touch targets */
.action-btn,
.mobile-nav-link,
.btn-header-login,
.search-box button,
.qty-control button,
.cart-item-remove,
.btn-checkout {
    -webkit-tap-highlight-color: transparent;
}

/* ========================= TABLET / LAPTOP PEQUEÑA ========================= */
@media (max-width: 1100px) {
    .header-inner,
    .navbar-inner,
    .section,
    .store-layout,
    .cart-layout,
    .footer-top,
    .footer-bottom-inner {
        width: min(100% - 32px, 1000px);
    }

    .store-masthead { padding: 26px 16px 6px; }
    .store-masthead-inner { padding: 28px; gap: 24px; }
    .store-trust { max-width: 300px; }

    .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .cart-layout { gap: 20px; }
}

/* ========================= TABLET / MOBILE GRANDE ========================= */
@media (max-width: 992px) {
    .header { position: relative; }

    .header-inner {
        width: 100%;
        padding: 12px 16px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "menu logo actions"
            "search search search";
        align-items: center;
        gap: 10px 12px;
    }

    .mobile-menu-toggle { grid-area: menu; margin: 0; }
    .logo { grid-area: logo; justify-self: start; min-width: 0; }
    .header-actions { grid-area: actions; justify-self: end; margin: 0; }
    .header-search { grid-area: search; width: 100%; margin: 0; }

    .logo-img { width: auto; height: 40px; object-fit: contain; }
    .logo-name { font-size: 1rem; }
    .logo-tagline { font-size: .68rem; }

    .search-box { width: 100%; min-height: 46px; }
    .search-box input { min-width: 0; }

    .mobile-nav {
        width: min(88vw, 360px);
        max-width: 360px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .store-masthead { padding: 20px 16px 4px; }
    .store-masthead-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 24px;
        border-radius: 20px;
    }
    .store-masthead h1 { font-size: clamp(1.7rem, 5vw, 2.25rem); }
    .store-trust { justify-content: flex-start; max-width: none; }

    .store-layout {
        width: 100%;
        padding: 18px 16px 36px;
        gap: 18px;
    }

    .store-sidebar {
        width: 100%;
        position: static;
        padding: 18px;
        border-radius: 16px;
    }
    .store-sidebar form {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px 18px;
        align-items: start;
    }
    .store-sidebar form > h3 { grid-column: 1 / -1; margin-bottom: 0; }
    .store-sidebar .filter-group { margin-bottom: 0; }
    .store-sidebar .btn-save { align-self: end; }

    .store-toolbar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

    .cart-layout {
        width: 100%;
        padding: 18px 16px 36px;
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .cart-summary { position: static; width: 100%; }

    .footer-top {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ========================= MÓVIL ========================= */
@media (max-width: 768px) {
    :root { scroll-padding-top: 12px; }

    .header-inner { padding: 10px 12px; gap: 9px; }
    .logo-img { height: 36px; }
    .logo-text-wrap { display: block; }
    .logo-name { font-size: .92rem; }
    .logo-tagline { display: none; }

    .header-actions { gap: 2px; }
    .action-btn { min-width: 42px; min-height: 42px; padding: 9px; justify-content: center; }
    .btn-header-login { min-height: 42px; padding: 0 12px; }

    .search-box { min-height: 44px; border-radius: 12px; }
    .search-box input { font-size: 16px; } /* evita zoom de iOS */
    .search-box button { min-height: 42px; padding: 0 14px; }

    .mobile-nav-header { position: sticky; top: 0; z-index: 2; background: inherit; }
    .mobile-nav-actions { position: sticky; bottom: 0; background: inherit; }

    .section { width: 100%; padding: 28px 16px; }
    .section-title { margin-bottom: 22px; }
    .section-title h2 { font-size: clamp(1.45rem, 6vw, 2rem); }

    .hero-section {
        width: calc(100% - 24px);
        min-height: auto;
        margin: 12px auto 0;
        border-radius: 20px;
    }
    .hero-content { padding: 48px 22px 36px; }
    .hero-section h1 { font-size: clamp(2rem, 10vw, 3rem); line-height: 1.02; }
    .hero-subtitle { font-size: .95rem; line-height: 1.65; }
    .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-cta a, .hero-cta button { width: 100%; justify-content: center; }
    .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-stat { min-width: 0; }

    .store-masthead { padding: 14px 12px 0; }
    .store-masthead-inner { padding: 22px 18px; border-radius: 18px; }
    .store-masthead h1 { font-size: clamp(1.55rem, 7.5vw, 2rem); }
    .store-masthead p { font-size: .9rem; }
    .store-trust { display: grid; grid-template-columns: 1fr; width: 100%; }
    .store-trust span { justify-content: flex-start; white-space: normal; }

    .store-layout { padding: 16px 12px 32px; }
    .store-sidebar { padding: 16px; }
    .store-sidebar form { grid-template-columns: 1fr; gap: 14px; }

    .filter-group {
        padding-bottom: 14px;
        border-bottom: 1px solid var(--border-light);
    }
    .filter-group:last-of-type { border-bottom: 0; }
    .filter-group label { min-height: 40px; display: flex; align-items: center; gap: 9px; }
    .filter-group input[type="radio"] { width: 18px; height: 18px; }
    .price-range { width: 100%; min-height: 34px; }

    .store-toolbar {
        padding: 14px;
        align-items: stretch;
        flex-direction: column;
        border-radius: 14px;
    }
    .store-toolbar h2 { font-size: 1.1rem; }
    .store-toolbar select,
    .store-toolbar input,
    .store-toolbar button { width: 100%; min-height: 44px; font-size: 16px; }

    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-card { border-radius: 15px; }
    .product-card > img { width: 100%; height: 170px; object-fit: cover; }
    .product-card-body { padding: 13px; }
    .product-card h3 { font-size: .95rem; line-height: 1.25; }
    .product-card-body > p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: .8rem;
    }
    .product-card-footer { padding: 11px 13px; gap: 8px; flex-wrap: wrap; }
    .product-card-footer .price { font-size: 1rem; }

    .pagination { flex-wrap: wrap; gap: 6px; }
    .pagination a { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; }

    /* Carrito en formato tarjeta móvil */
    .cart-layout { padding: 14px 12px 32px; }
    .cart-item {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr) auto;
        grid-template-areas:
            "image info remove"
            "image qty total";
        align-items: center;
        gap: 10px 12px;
        padding: 14px;
        text-align: left;
        border-radius: 16px;
    }
    .cart-item img {
        grid-area: image;
        width: 84px;
        height: 84px;
        border-radius: 12px;
        object-fit: cover;
    }
    .cart-item-info { grid-area: info; }
    .cart-item-info h4 { font-size: .95rem; line-height: 1.25; }
    .qty-control { grid-area: qty; justify-self: start; }
    .qty-control button { width: 36px; height: 36px; }
    .qty-control input { width: 44px; height: 36px; font-size: 16px; }
    .cart-item-total { grid-area: total; justify-self: end; font-size: .9rem; }
    .cart-item-remove { grid-area: remove; align-self: start; width: 38px; height: 38px; }

    .cart-summary { padding: 18px; border-radius: 16px; }
    .summary-row { gap: 14px; align-items: flex-start; }
    .summary-row span:first-child { min-width: 0; overflow-wrap: anywhere; }
    .btn-checkout { width: 100%; min-height: 50px; }

    /* Forms */
    .auth-container { min-height: auto; padding: 48px 14px; }
    .auth-box { padding: 24px 18px; border-radius: 18px; }
    input, select, textarea { max-width: 100%; }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 18px 28px;
    }
    .footer-brand, .footer-col { grid-column: auto; min-width: 0; }
    .footer-brand p { max-width: none; }
    .footer-badge { align-items: flex-start; overflow-wrap: anywhere; }
    .footer-bottom-inner { width: 100%; padding: 18px; text-align: center; }

    /* Modales */
    .modal-overlay { padding: 12px; align-items: flex-end; }
    .modal-box { width: 100%; max-height: 92dvh; overflow-y: auto; border-radius: 18px; }
    .modal-info { padding: 18px; }

    .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; }
    .cookie-content { flex-direction: column; align-items: stretch; gap: 12px; }
    .cookie-buttons { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .cookie-buttons button { min-height: 42px; }
}

/* ========================= TELÉFONO COMPACTO ========================= */
@media (max-width: 520px) {
    .logo-text-wrap { display: none; }
    .header-inner { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .logo { justify-self: center; }
    .logo-img { height: 34px; max-width: 112px; }

    .btn-header-login { width: 42px; padding: 0; font-size: 0; justify-content: center; }
    .btn-header-login svg { margin: 0; }

    .products-grid { grid-template-columns: 1fr; gap: 14px; }
    .product-card > img { height: min(58vw, 240px); }
    .product-card-body { padding: 16px; }
    .product-card h3 { font-size: 1.04rem; }
    .product-card-body > p { font-size: .86rem; -webkit-line-clamp: 3; }
    .product-card-footer { padding: 13px 16px; }

    .hero-stats { grid-template-columns: 1fr 1fr; }

    .cart-item {
        grid-template-columns: 72px minmax(0, 1fr) 38px;
        gap: 9px 10px;
    }
    .cart-item img { width: 72px; height: 72px; }
    .cart-item-total { font-size: .82rem; }

    .gallery-grid { grid-template-columns: 1fr; }
}

/* ========================= TELÉFONO MUY PEQUEÑO ========================= */
@media (max-width: 390px) {
    .header-inner { padding-inline: 9px; }
    .mobile-menu-toggle, .action-btn, .btn-header-login { min-width: 40px; width: 40px; }
    .search-box button { padding-inline: 11px; font-size: .82rem; }

    .hero-content { padding-inline: 17px; }
    .hero-stats { grid-template-columns: 1fr; }

    .store-masthead-inner { padding: 19px 15px; }
    .store-layout, .cart-layout { padding-inline: 9px; }

    .cart-item {
        grid-template-columns: 64px minmax(0, 1fr) 36px;
        padding: 11px;
    }
    .cart-item img { width: 64px; height: 64px; }
    .qty-control button { width: 32px; height: 34px; }
    .qty-control input { width: 38px; height: 34px; }

    .footer-top { padding-inline: 14px; }
}

/* ========================= PANTALLAS GRANDES / 2K ========================= */
@media (min-width: 1600px) {
    body { font-size: 16px; }
    .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .store-masthead-inner { max-width: 1400px; }
}


/* ==========================================================================
   GALERÍA TRUTOSA · MODAL v7 — compacto, humano y responsive
   ========================================================================== */
.ig-modal-overlay{
    padding:18px !important;
    background:rgba(7,13,9,.78) !important;
    overflow:auto !important;
}

.ig-modal{
    width:min(1080px, calc(100vw - 36px)) !important;
    height:min(690px, calc(100dvh - 36px)) !important;
    max-height:calc(100dvh - 36px) !important;
    min-height:420px !important;
    grid-template-columns:minmax(0,1fr) minmax(340px,390px) !important;
    border-radius:22px !important;
    background:#fff !important;
    overflow:hidden !important;
}

.ig-modal-media{
    min-width:0 !important;
    min-height:0 !important;
    background:linear-gradient(145deg,#0c110e,#17201a) !important;
}

.ig-modal-media .ig-media-element,
.ig-modal-media > img,
.ig-modal-media > video{
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    display:block !important;
}

.ig-modal-side{
    min-width:0 !important;
    min-height:0 !important;
    display:grid !important;
    grid-template-rows:auto auto auto minmax(0,1fr) auto !important;
    overflow:hidden !important;
    background:#fff !important;
}

.ig-modal-header{
    padding:22px 22px 17px !important;
    gap:14px !important;
    border-bottom:1px solid #edf1ed !important;
}

.ig-modal-kicker{
    margin-bottom:6px !important;
    font-size:.64rem !important;
}

.ig-modal-header h3{
    font-size:1.08rem !important;
    line-height:1.3 !important;
}

.ig-modal-close{
    width:38px !important;
    height:38px !important;
    flex-basis:38px !important;
    border-radius:12px !important;
}

.ig-modal-desc{
    margin:16px 22px 0 !important;
    padding:12px 13px !important;
    border-left:3px solid #6f986e !important;
    border-radius:0 11px 11px 0 !important;
    background:#f5f8f3 !important;
    font-size:.82rem !important;
    line-height:1.55 !important;
}

.ig-comments-head{
    padding:16px 22px 10px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
}

.ig-comments-head > div{
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
    gap:2px !important;
}

.ig-comments-head strong{
    color:#27332b !important;
    font-size:.86rem !important;
}

.ig-comments-head span:not(.ig-comments-count){
    color:#859087 !important;
    font-size:.7rem !important;
}

.ig-comments-count{
    min-width:29px !important;
    height:29px !important;
    flex:0 0 auto !important;
}

.ig-modal-comments{
    min-height:0 !important;
    overflow-y:auto !important;
    padding:0 22px 14px !important;
    gap:8px !important;
}

.ig-empty-comments{
    min-height:0 !important;
    flex:0 0 auto !important;
    display:grid !important;
    grid-template-columns:42px minmax(0,1fr) !important;
    align-items:center !important;
    justify-content:initial !important;
    gap:12px !important;
    text-align:left !important;
    padding:14px !important;
    border:1px solid #e1e8e2 !important;
    border-radius:14px !important;
    background:#f9fbf9 !important;
}

.ig-empty-comments-icon{
    width:42px !important;
    height:42px !important;
    margin:0 !important;
    display:grid !important;
    place-items:center !important;
    border-radius:13px !important;
    background:#eaf4ec !important;
    color:#377747 !important;
    font-size:1.15rem !important;
    line-height:1 !important;
}

.ig-empty-comments-icon svg{
    display:none !important;
}

.ig-empty-comments-copy{
    min-width:0 !important;
}

.ig-empty-comments strong{
    display:block !important;
    margin:0 0 3px !important;
    color:#344139 !important;
    font-size:.82rem !important;
}

.ig-empty-comments p{
    max-width:none !important;
    margin:0 !important;
    color:#6e7971 !important;
    font-size:.73rem !important;
    line-height:1.45 !important;
}

.ig-modal-input{
    padding:13px 22px 18px !important;
    gap:9px !important;
    background:#fff !important;
}

.ig-modal-input input{
    min-height:44px !important;
    border-radius:12px !important;
}

.ig-modal-input button{
    min-height:44px !important;
    border-radius:12px !important;
    padding:0 15px !important;
}

@media (max-width:900px){
    .ig-modal-overlay{
        padding:12px !important;
        align-items:flex-start !important;
    }

    .ig-modal{
        width:min(720px,100%) !important;
        height:auto !important;
        max-height:none !important;
        min-height:0 !important;
        grid-template-columns:1fr !important;
        grid-template-rows:minmax(260px,48dvh) auto !important;
        border-radius:20px !important;
    }

    .ig-modal-side{
        display:flex !important;
        flex-direction:column !important;
        overflow:visible !important;
    }

    .ig-modal-comments{
        max-height:230px !important;
        flex:none !important;
    }
}

@media (max-width:600px){
    .ig-modal-overlay{
        padding:8px !important;
        align-items:flex-end !important;
    }

    .ig-modal{
        width:100% !important;
        grid-template-rows:minmax(230px,40dvh) auto !important;
        border-radius:18px !important;
    }

    .ig-modal-header{
        padding:16px 16px 13px !important;
    }

    .ig-modal-desc{
        margin:12px 16px 0 !important;
        padding:11px 12px !important;
    }

    .ig-comments-head{
        padding:13px 16px 9px !important;
    }

    .ig-modal-comments{
        padding:0 16px 12px !important;
        max-height:200px !important;
    }

    .ig-empty-comments{
        grid-template-columns:38px minmax(0,1fr) !important;
        gap:10px !important;
        padding:12px !important;
    }

    .ig-empty-comments-icon{
        width:38px !important;
        height:38px !important;
        border-radius:12px !important;
        font-size:1rem !important;
    }

    .ig-modal-input{
        padding:12px 16px 16px !important;
        flex-wrap:wrap !important;
    }

    .ig-comment-field,
    .ig-modal-input button{
        width:100% !important;
        flex-basis:100% !important;
    }
}
