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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.header {
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.header-search {
    flex: 1;
    max-width: 360px;
}

.header-search-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.header-search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 0;
}

.header-search-form input:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

.header-search-form button {
    padding: 8px 14px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.header-search-form button:hover {
    background: #0f3460;
}

.header-search-clear {
    font-size: 12px;
    color: #6b7280;
    padding: 8px 10px;
    white-space: nowrap;
}

.header-search-clear:hover {
    color: #1a1a2e;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

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

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: #1a1a2e;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    letter-spacing: 0;
    text-decoration: none;
    display: inline;
    transition: color 0.2s;
}

.nav-dropdown-toggle:hover {
    color: #1a1a2e;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 200;
    padding: 8px 0;
    overflow: hidden;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    transform: rotate(45deg);
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #e8ecf1;
    border-top: 1px solid #e8ecf1;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: #f3f4f6;
    color: #1a1a2e;
}

.cart-link {
    position: relative;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    vertical-align: top;
    margin-left: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    flex: 1;
}

/* ===== CAROUSEL ===== */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a1a2e;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 480px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: rgba(255,255,255,0.15);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
    color: #fff;
    max-width: 700px;
}

.carousel-categoria {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.carousel-titulo {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.carousel-desc {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-precio {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
}

.carousel-acciones {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.carousel-acciones .btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-carrito {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.btn-carrito:hover {
    background: rgba(255,255,255,0.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.3);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    right: 40px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

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

.carousel-dot.active {
    background: #fff;
}

@media (max-width: 768px) {
    .carousel-inner {
        height: 360px;
    }
    .carousel-caption {
        padding: 24px;
    }
    .carousel-titulo {
        font-size: 24px;
    }
    .carousel-precio {
        font-size: 22px;
    }
    .carousel-desc {
        display: none;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ===== HERO (fallback if no destacados) ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 64px 24px;
    text-align: center;
    margin: -32px -24px 40px -24px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FILTERS ===== */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
}

.filters input,
.filters select {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filters input:focus,
.filters select:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

.filters input {
    flex: 1;
    min-width: 200px;
}

.filters select {
    min-width: 150px;
}

.filters .btn {
    padding: 10px 24px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.filters .btn:hover {
    background: #0f3460;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a2e;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #e8ecf1;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f2f5;
    display: block;
}

.card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e0e5ec, #f0f2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #b0b8c4;
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body .card-footer {
    margin-top: auto;
}

.card-categoria {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #0f3460;
    margin-bottom: 6px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a2e;
    line-height: 1.3;
}

.card-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-precio {
    font-size: 22px;
    font-weight: 800;
    color: #0f3460;
}

.card-precio span {
    font-size: 14px;
    font-weight: 400;
}

.card-btn {
    padding: 8px 18px;
    background: #1a1a2e;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.card-btn:hover {
    background: #0f3460;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.product-detail-img {
    width: 100%;
    border-radius: 12px;
    background: #f0f2f5;
    min-height: 350px;
    object-fit: cover;
}

.product-detail-img-placeholder {
    width: 100%;
    min-height: 350px;
    background: linear-gradient(135deg, #e0e5ec, #f0f2f5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #b0b8c4;
}

.product-detail-info h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.product-detail-categoria {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #0f3460;
    background: #eef2ff;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.product-detail-precio {
    font-size: 36px;
    font-weight: 800;
    color: #0f3460;
    margin-bottom: 20px;
}

.product-detail-desc {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 24px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: background 0.2s;
}

.btn-back:hover {
    background: #e5e7eb;
}

/* ===== ADMIN ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 800;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: #1a1a2e;
    color: #fff;
}

.btn-primary:hover {
    background: #0f3460;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* ===== CART PAGE ===== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 800px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    background: #f0f2f5;
    flex-shrink: 0;
}

.cart-item-img-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0e5ec, #f0f2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #b0b8c4;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-nombre {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
    display: block;
}

.cart-item-nombre:hover {
    color: #0f3460;
}

.cart-item-precio {
    font-size: 15px;
    font-weight: 600;
    color: #0f3460;
    margin-bottom: 10px;
}

.cart-item-acciones {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.2s;
}

.cart-item-btn:hover {
    background: #e5e7eb;
}

.cart-item-cantidad {
    font-size: 16px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.cart-item-eliminar {
    font-size: 13px;
    color: #ef4444;
    margin-left: 8px;
    font-weight: 500;
}

.cart-item-eliminar:hover {
    text-decoration: underline;
}

.cart-item-subtotal {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    white-space: nowrap;
}

.cart-actions {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

/* ===== CART RESUMEN ===== */
.cart-resumen {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: sticky;
    top: 100px;
}

.cart-resumen h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.cart-resumen-items {
    margin-bottom: 16px;
}

.cart-resumen-linea {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}

.cart-resumen-linea span:last-child {
    font-weight: 600;
    color: #1a1a2e;
}

.cart-resumen-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    border-top: 2px solid #1a1a2e;
}

.checkout-form {
    margin-top: 24px;
    border-top: 1px solid #e8ecf1;
    padding-top: 24px;
}

.checkout-form h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.checkout-form .form-group {
    margin-bottom: 14px;
}

.checkout-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.checkout-form .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-form .form-group input:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

.btn-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
    background: #25D366;
    color: #fff;
    margin-top: 8px;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.checkout-success {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.checkout-success h2 {
    font-size: 28px;
    font-weight: 800;
    color: #065f46;
    margin-bottom: 12px;
}

.checkout-success p {
    color: #6b7280;
    margin-bottom: 24px;
}

/* ===== ADMIN TABLE ===== */
.admin-table {
    width: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e8ecf1;
}

.admin-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table .acciones {
    display: flex;
    gap: 8px;
}

.admin-table .acciones a {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== FORM ===== */
.form-card {
    background: #fff;
    border-radius: 14px;
    padding: 36px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    max-width: 640px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

.form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    background: #1a1a2e;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    transition: background 0.2s;
}

.form-group input[type="file"]::file-selector-button:hover {
    background: #0f3460;
}

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

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input {
    width: auto;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ===== MESSAGES ===== */
.msg {
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.msg-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.msg-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== FOOTER ===== */
.footer {
    background: #fff;
    border-top: 1px solid #e8ecf1;
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    margin-top: auto;
}

/* ===== BADGE ===== */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-destacado {
    background: #fef3c7;
    color: #92400e;
}

.badge-oferta {
    background: #fee2e2;
    color: #991b1b;
}

.oferta-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

.oferta-badge-lg {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 8px;
    vertical-align: middle;
    margin-left: 8px;
}

.precio-original {
    font-size: 18px;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 8px;
}

.card {
    position: relative;
}

.btn-ofertas-ver {
    padding: 8px 20px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-ofertas-ver:hover {
    background: #fee2e2;
}

/* ===== PROMOCIONES / OFERTAS ===== */
.promo-section {
    margin-bottom: 48px;
}

.promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.promo-header .section-title {
    margin-bottom: 0;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CATEGORIES WITH IMAGES ===== */
.cats-section {
    margin-bottom: 40px;
}

.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cat-card {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf1;
    transition: transform 0.25s, box-shadow 0.25s;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.cat-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #f0f2f5;
}

.cat-card-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e0e5ec, #f0f2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #b0b8c4;
}

.cat-card-name {
    display: block;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    background: #fff;
    border-top: 1px solid #e8ecf1;
}

@media (max-width: 600px) {
    .cats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .cat-card-img,
    .cat-card-placeholder {
        height: 120px;
    }
    .cat-card-name {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* ===== CATEGORY NAV ===== */
.cat-nav {
    margin-bottom: 20px;
}

.cat-nav .section-title {
    margin-bottom: 16px;
}

.cat-nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cat-nav-link {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.cat-nav-link:hover {
    background: #e5e7eb;
}

.cat-nav-link.active {
    background: #1a1a2e;
    color: #fff;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: #9ca3af;
}

.empty-state h3 {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner {
        height: auto;
        flex-wrap: wrap;
        padding: 10px 0;
        gap: 8px;
    }
    .header-search {
        order: 3;
        max-width: 100%;
        flex: 0 0 100%;
    }
    .header-nav {
        gap: 12px;
    }
    .header-nav a,
    .nav-dropdown-toggle {
        font-size: 14px;
    }
    .hero {
        padding: 40px 20px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
    .product-detail {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    .container {
        padding: 20px 16px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .admin-header h1 {
        font-size: 22px;
    }
    .cart-item {
        flex-wrap: wrap;
    }
    .cart-item-subtotal {
        width: 100%;
        text-align: right;
        padding-top: 8px;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .filters {
        flex-direction: column;
    }
    .filters input {
        min-width: auto;
        width: 100%;
    }
    .filters select {
        width: 100%;
    }
}

/* ===== ADMIN SEARCH ===== */
.admin-search {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-search input {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex: 1;
    max-width: 360px;
}

.admin-search input:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

.admin-search .btn {
    padding: 10px 24px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-search .btn:hover {
    background: #0f3460;
}

/* ===== ADMIN TABS ===== */
.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border-radius: 10px;
    transition: background 0.2s;
}

.admin-tab:hover {
    background: #e5e7eb;
}

.admin-tab.active {
    color: #fff;
    background: #1a1a2e;
}

.admin-tab.active:hover {
    background: #0f3460;
}

/* ===== PRODUCT THUMBNAILS ===== */
.product-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e8ecf1;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.7;
}

.product-thumb:hover {
    opacity: 1;
}

.product-thumb.active {
    border-color: #0f3460;
    opacity: 1;
}

/* ===== ADDITIONAL IMAGES GRID ===== */
.imagenes-adicionales-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.imagen-adicional-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.imagen-adicional-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8ecf1;
}

.imagen-adicional-eliminar {
    font-size: 11px;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.imagen-adicional-eliminar input {
    width: auto;
}

/* ===== HTML EDITOR TOOLBAR ===== */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    margin-top: 20px;
}

.editor-toolbar button {
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
    line-height: 1.4;
}

.editor-toolbar button:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.editor-toolbar button:active {
    background: #d1d5db;
}

.toolbar-sep {
    width: 1px;
    background: #e5e7eb;
    margin: 2px 6px;
}

.editor-toolbar + .form-group textarea {
    border-radius: 0 0 10px 10px;
    border-top: none;
}

#htmlPreview h1, #htmlPreview h2, #htmlPreview h3 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #1a1a2e;
}

#htmlPreview h2 { font-size: 22px; font-weight: 700; }
#htmlPreview h3 { font-size: 18px; font-weight: 700; }

#htmlPreview p { margin-bottom: 1em; }

#htmlPreview ul, #htmlPreview ol {
    padding-left: 24px;
    margin-bottom: 1em;
}

#htmlPreview li { margin-bottom: 0.3em; }

#htmlPreview a { color: #0f3460; text-decoration: underline; }

#htmlPreview img { max-width: 100%; height: auto; border-radius: 8px; margin: 1em 0; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }
}

/* ===== PAGE CONTENT ===== */
.page-content {
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1a1a2e;
}

.page-body {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.page-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.page-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.page-body p {
    margin-bottom: 16px;
}

.page-body ul,
.page-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-body li {
    margin-bottom: 6px;
}

.page-body a {
    color: #0f3460;
    text-decoration: underline;
}

.page-body a:hover {
    color: #1a1a2e;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}
