/* ============================================
   REFACCIONARIA PITS - Estilos Principales
   ============================================ */

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

:root {
    --primary: #FF5722;
    --primary-dark: #E64A19;
    --secondary: #1E293B;
    --secondary-light: #334155;
    --accent: #FFC107;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #0F172A;
    --text-mid: #475569;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --success: #22C55E;
    --danger: #EF4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}

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

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.nav-logo span {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-cart-btn {
    position: relative;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.nav-cart-btn:hover {
    background: rgba(255,255,255,0.18);
}

.cart-count {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-admin-btn {
    background: transparent;
    color: rgba(255,255,255,0.6);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 1.2rem;
}

.nav-admin-btn:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    color: white;
    font-size: 1.5rem;
    padding: 8px;
}

/* ============ MOBILE MENU ============ */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: var(--secondary);
    z-index: 1002;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
}

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

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    color: white;
    font-size: 1.8rem;
}

.mobile-menu a {
    display: block;
    color: white;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, var(--secondary) 0%, #0F172A 100%);
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,87,34,0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,193,7,0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,193,7,0.1);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border: 1px solid rgba(255,193,7,0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-search-preview {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 460px;
    backdrop-filter: blur(10px);
}

.hero-search-preview h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-search-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}

.hero-search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.hero-search-input:focus {
    border-color: var(--primary);
}

.hero-search-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.hero-search-filters select {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    appearance: none;
}

.hero-search-filters select option {
    background: var(--secondary);
    color: white;
}

.hero-search-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255,87,34,0.4);
}

/* ============ BUTTONS ============ */
.btn {
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(255,87,34,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255,87,34,0.45);
}

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

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(37,211,102,0.45);
}

/* ============ INFO STRIP ============ */
.info-strip {
    background: white;
    padding: 40px 24px;
    border-bottom: 1px solid var(--border);
}

.info-strip-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

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

.info-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(255,87,34,0.1), rgba(255,87,34,0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.info-item p {
    font-size: 0.85rem;
    color: var(--text-mid);
}

/* ============ CATALOG SECTION ============ */
.catalog-section {
    padding: 80px 24px;
    background: var(--bg-light);
}

.catalog-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 6px 18px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Bar */
.search-bar {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input-wrap {
    flex: 2;
    min-width: 200px;
}

.search-input-wrap input {
    width: 100%;
    padding: 14px 18px 14px 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%2394A3B8' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
}

.search-input-wrap input:focus {
    border-color: var(--primary);
}

.search-select-wrap {
    flex: 1;
    min-width: 150px;
}

.search-select-wrap select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s;
}

.search-select-wrap select:focus {
    border-color: var(--primary);
}

.search-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255,87,34,0.4);
}

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

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
}

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

.product-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.product-card-img .no-img {
    font-size: 3rem;
    color: var(--text-light);
}

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

.product-card-sku {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-meta {
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-bottom: 12px;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.product-card-stock {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.product-card-stock.in-stock {
    background: rgba(34,197,94,0.1);
    color: var(--success);
}

.product-card-stock.out-stock {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}

.products-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-mid);
    grid-column: 1 / -1;
}

.products-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

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

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

.pagination button {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-mid);
    transition: all 0.2s;
}

.pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============ PRODUCT MODAL ============ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.product-modal {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--border);
}

.product-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.product-modal-img {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    overflow: hidden;
}

.product-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-img .no-img {
    font-size: 5rem;
    color: var(--text-light);
}

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

.product-modal-sku {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-modal-desc {
    color: var(--text-mid);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

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

.product-detail-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.product-detail-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

.product-modal-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-modal-stock {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.product-modal-stock.in-stock {
    color: var(--success);
}

.product-modal-stock.out-stock {
    color: var(--danger);
}

.product-modal-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.qty-display {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 40px;
    text-align: center;
}

.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255,87,34,0.4);
}

/* ============ CART SIDEBAR ============ */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.cart-overlay.active {
    display: block;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: white;
    z-index: 2001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-close {
    background: var(--bg-light);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.cart-close:hover {
    background: var(--border);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.cart-item-sku {
    font-size: 0.75rem;
    color: var(--text-light);
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.cart-item-qty span {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    color: var(--text-light);
    font-size: 1.2rem;
    padding: 4px;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: var(--danger);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-mid);
}

.cart-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-total span:first-child {
    font-size: 1rem;
    font-weight: 600;
}

.cart-total span:last-child {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.cart-checkout-btn {
    width: 100%;
    padding: 16px;
    background: #25D366;
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}

/* ============ VACANTES SECTION ============ */
.vacantes-section {
    padding: 80px 24px;
    background: white;
}

.vacantes-container {
    max-width: 1280px;
    margin: 0 auto;
}

.vacantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.vacante-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.25s;
}

.vacante-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.vacante-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.vacante-card p {
    color: var(--text-mid);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.vacante-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.vacante-tag {
    background: rgba(255,87,34,0.08);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
}

.vacante-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.vacante-apply-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ============ MAP SECTION ============ */
.map-section {
    padding: 80px 24px;
    background: var(--bg-light);
}

.map-container {
    max-width: 1280px;
    margin: 0 auto;
}

.map-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.map-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.map-info p {
    color: var(--text-mid);
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.7;
}

.map-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.map-info-item .icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============ WHATSAPP CTA ============ */
.whatsapp-cta {
    padding: 80px 24px;
    background: linear-gradient(160deg, var(--secondary), #0F172A);
    text-align: center;
}

.whatsapp-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.whatsapp-cta h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.whatsapp-cta p {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

/* ============ FOOTER ============ */
.footer {
    background: #0F172A;
    color: rgba(255,255,255,0.6);
    padding: 48px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.85rem;
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform 0.3s;
    color: white;
    font-size: 1.8rem;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ============ AUTH MODAL ============ */
.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-modal-overlay.active {
    display: flex;
}

.auth-modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
}

.auth-modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.auth-modal p {
    color: var(--text-mid);
    text-align: center;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.auth-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: var(--primary);
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 8px;
    transition: transform 0.2s;
}

.auth-btn:hover {
    transform: translateY(-2px);
}

.auth-error {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 14px;
    display: none;
}

.auth-error.show {
    display: block;
}

/* ============ ADMIN PANEL ============ */
.admin-panel {
    display: none;
    padding: 100px 24px 60px;
    background: var(--bg-light);
    min-height: 100vh;
}

.admin-panel.active {
    display: block;
}

.admin-container {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

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

.admin-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.admin-btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-1px);
}

.admin-btn-outline {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.admin-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.admin-btn-danger:hover {
    opacity: 0.9;
}

.admin-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.admin-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(255,87,34,0.03);
}

.upload-zone .upload-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.upload-zone p {
    color: var(--text-mid);
    margin-bottom: 8px;
}

.upload-zone .upload-hint {
    font-size: 0.85rem;
    color: var(--text-light);
}

.upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}

.upload-status.success {
    display: block;
    background: rgba(34,197,94,0.1);
    color: var(--success);
}

.upload-status.error {
    display: block;
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.admin-stat .number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.admin-stat .label {
    font-size: 0.85rem;
    color: var(--text-mid);
    font-weight: 500;
}

.admin-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.admin-products-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-mid);
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.admin-products-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.admin-products-table tr:hover td {
    background: var(--bg-light);
}

.admin-delete-btn {
    background: none;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 4px;
    transition: color 0.2s;
}

.admin-delete-btn:hover {
    color: var(--danger);
}

/* ============ LOADING ============ */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ TOAST ============ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--secondary);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-search-preview {
        max-width: 500px;
    }

    .product-modal-content {
        grid-template-columns: 1fr;
    }

    .product-modal-img {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 300px;
    }

    .map-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar-container {
        height: 60px;
    }

    .hero {
        padding: 80px 20px 40px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .search-row {
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .cart-sidebar {
        width: 100%;
    }

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

    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-actions {
        flex-direction: column;
    }

    .admin-btn {
        justify-content: center;
    }

    .admin-products-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .hero-search-filters {
        grid-template-columns: 1fr;
    }

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

    .info-strip-inner {
        grid-template-columns: 1fr;
    }
}
