:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #e63946; /* Engineering highlight */
    --gray-light: #f4f4f4;
    --gray-medium: #888888;
    --blueprint-blue: #1b3a4b;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden; /* Evita scroll horizontal por elementos que desbordan */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.main-content {
    min-height: 70vh;
}

/* Navbar */
.navbar {
    background-color: var(--bg-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-content {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--primary-color);
}

.logo-subtext {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1;
    margin-top: 0.2rem;
    letter-spacing: 4px;
    color: var(--gray-medium);
}

/* Page Headers Standard */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.page-header h1 {
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: black;
}

.page-header .logo-subtext {
    display: block;
    font-size: 0.55rem;
    margin-bottom: -0.2rem;
    margin-top: 0;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
    position: relative; /* Base para el subrayado absoluto */
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -8px; /* Posición fija debajo del texto */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.cart-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-link:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/static/img/grid-pattern.png');
    opacity: 0.2;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-label {
    color: white;
    opacity: 0.8;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 1rem 0;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.hero-cta .btn {
    min-width: 250px; /* Ancho idéntico para ambos botones */
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--gray-medium);
}

/* Global Section Spacing */
.page-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    background-color: white;
    color: black;
    font-family: var(--font-main);
    font-size: 0.8rem;
    text-align: center;
    outline: none;
}

.btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: white;
}

.btn.small {
    padding: 0.4rem 1rem;
    font-size: 0.65rem;
}

.btn-primary, .btn-secondary, .btn-outline {
    background-color: white;
    color: black;
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-secondary:hover, .btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: white;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.pay-btn {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    margin-top: 1rem;
}

.pay-btn-mp {
    background-color: #009ee3;
    color: white;
}

.pay-btn-mp:hover {
    background-color: #007bbd;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

/* Product Card */
.product-card {
    border: 1px solid #eee;
    padding: 1.5rem;
    transition: var(--transition);
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.product-image-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 200px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-image-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 100%;
    min-height: 200px;
    background-color: #f9f9f9;
    color: #ccc;
    text-align: center;
}

.no-image-icon i {
    font-size: 3rem;
    opacity: 0.5;
}

.no-image-text {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
}

.product-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.6rem;
    font-weight: 800;
    color: #bbb;
    text-transform: uppercase;
}

.product-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0.3rem 0;
    min-height: 2.5rem;
    line-height: 1.2;
}

.product-price {
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: auto;
}

.product-card-actions {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.product-card-actions .btn {
    padding: 0.6rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.qty-input-small {
    padding: 0.4rem;
    border: 1px solid #ddd;
    text-align: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.small-text {
    padding: 0.4rem;
    font-size: 0.65rem;
}

/* Note Card */
.note-card {
    background: white;
    border: 1px solid #eee;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.note-card:hover {
    border-color: var(--primary-color);
}

.note-card-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.note-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.note-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 0.5rem;
    color: #bbb;
    display: block;
    margin-bottom: 0.5rem;
}

.note-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.note-card-excerpt {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.note-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.note-card-date {
    font-size: 0.6rem;
    font-weight: 800;
    color: #999;
}

.note-card-link {
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

/* Contact Page Form */
.contact-form-container {
    background: white;
    border: 2px solid var(--primary-color);
    padding: 3rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.font-mono {
    font-family: var(--font-mono);
}

/* Footer */
.footer {
    border-top: 2px solid var(--primary-color);
    background-color: #ffffff;
    padding: 5rem 0 2rem;
    margin-top: 6rem;
}

.grid-footer {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
}

.footer-column .logo {
    margin-bottom: 1.5rem;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 900;
    color: black;
    letter-spacing: -1px;
}

.footer-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
    max-width: 280px;
}

.footer-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.3rem;
}

.footer-header h4 {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links a {
    text-decoration: none;
    color: black;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: black;
    font-size: 1.1rem;
    border: 1px solid #eee;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 0.85rem;
    margin-top: 0.2rem;
    width: 15px;
}

.contact-item span {
    font-size: 0.75rem;
    font-weight: 700;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.65rem;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-link {
    text-decoration: none;
    color: #ccc;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #eee;
    padding: 0.4rem 0.8rem;
    transition: var(--transition);
}

.admin-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: white;
    color: black;
    border: 2px solid var(--primary-color);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.whatsapp-float:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Cart Styles */
#cart-count {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
    position: absolute;
    top: -8px;
    right: -10px;
    font-weight: 800;
    min-width: 18px;
    text-align: center;
    border: 2px solid white;
}

/* Notification System (Toasts) */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.toast.success { border-left-color: #4ade80; }
.toast.error { border-left-color: var(--accent-color); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(10px); }
}

.contact-form-container {
    background: white;
    border: 2px solid var(--primary-color);
    padding: 3rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form-card {
    background: white;
    border: 2px solid var(--primary-color);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    font-size: 0.8rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: black;
    outline: none;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    width: 100%;
}

.contact-info .info-section h3 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.info-label i {
    font-size: 0.75rem;
    color: #888;
}

.info-value {
    font-weight: 800;
    font-size: 1rem;
    color: black;
    text-decoration: none;
    display: block;
}

.info-value.big {
    font-size: 1.3rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.cart-items-list {
    border: 1px solid #eee;
    background: white;
}

/* Individual Cart Item - Estructura Definitiva */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr; /* Imagen fija, resto flexible */
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background: white;
    width: 100%;
    box-sizing: border-box; /* Asegura que el padding no sume al ancho */
}

.cart-item-img {
    width: 80px;
    height: 80px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Evita desbordes */
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción */
}

.cart-item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; 
    flex: 1; /* Ocupa todo el espacio restante */
}

.cart-item-info h4 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
    color: var(--primary-color);
}

.cart-item-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    font-family: var(--font-mono);
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
}

.cart-item-subtotal-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.item-subtotal {
    font-weight: 900;
    font-size: 1rem;
    color: var(--primary-color);
}

/* Desktop: Ajuste para mantener legibilidad */
@media (min-width: 993px) {
    .cart-item {
        grid-template-columns: 120px 1fr; /* Imagen un poco más grande */
        gap: 2.5rem;
        padding: 2rem;
    }
    .cart-item-img { width: 120px; height: 120px; border-radius: 4px; }
    .cart-item-content { gap: 0.5rem; }
}

/* Mobile: Ajustes de contenedores */
@media (max-width: 992px) {
    .cart-layout {
        display: block; /* Evita problemas de Grid */
        width: 100% !important;
    }
    .cart-main, .cart-sidebar {
        width: 100% !important;
        margin-bottom: 2rem;
    }
    .cart-sidebar .summary-card {
        position: static !important;
        padding: 1.2rem;
    }
}

.quantity-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    background: white;
}

.qty-btn {
    padding: 0.3rem 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 800;
    transition: var(--transition);
}

.qty-btn:hover {
    background: #f9f9f9;
}

.item-subtotal {
    font-weight: 900;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: right;
}

.remove-item {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.remove-item:hover {
    color: var(--accent-color);
}

.cart-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar .summary-card {
    background: white;
    border: 2px solid var(--primary-color);
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.3rem;
    font-weight: 800;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.summary-total-row {
    border-top: 2px solid var(--primary-color);
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.total-label {
    font-weight: 800;
    font-size: 0.9rem;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.payment-methods {
    margin-bottom: 2rem;
}

.payment-label {
    font-size: 0.6rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #bbb;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.8rem;
    border: 1px solid #eee;
    background: #fcfcfc;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: #ddd;
}

.option-name {
    font-weight: 800;
    font-size: 0.7rem;
}

.big-padding {
    padding: 1.2rem;
}

.bank-details-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 2px dashed var(--primary-color);
    background: #fcfcfc;
}

.bank-info {
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.bank-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.bank-footer small {
    font-size: 0.6rem;
    color: #888;
}

.security-badge {
    font-size: 0.55rem;
    color: #ccc;
    text-align: center;
    margin-top: 1.5rem;
    text-transform: uppercase;
    font-weight: 800;
}

.empty-cart-view {
    text-align: center;
    padding: 5rem 0;
}

.empty-cart-view h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.empty-cart-view p {
    color: var(--gray-medium);
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

/* Admin Pages General */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.admin-header h1 {
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.btn-header-action {
    font-size: 0.65rem !important;
    padding: 0.4rem 1rem !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px; /* Altura fija para unificar <a> y <button> */
    box-sizing: border-box;
}

.admin-session {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.admin-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    width: 100%;
    clear: both;
}

.admin-nav a {
    text-decoration: none;
    color: black;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--primary-color);
    background: #eee;
    transition: var(--transition);
}

.admin-nav a:hover {
    background: #ddd;
}

.admin-nav a.active {
    color: white;
    background: var(--primary-color);
}

/* Stock Management */
.admin-stock-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.stock-filters-sidebar {
    background: #fcfcfc;
    border: 1px solid #ddd;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.filters-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.group-label {
    font-size: 0.55rem;
    font-weight: 900;
    color: #bbb;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mini-btn-group {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.mini-filter-btn {
    text-decoration: none;
    color: #555;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border: 1px solid #eee;
    background: white;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
}

.mini-filter-btn:hover {
    border-color: var(--primary-color);
}

.mini-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.dimension-inputs {
    display: flex;
    gap: 0.5rem;
}

.dimension-select {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.4rem;
    border: 1px solid #ddd;
    background: white;
}

.btn-reset-filters {
    width: 100%;
    margin-top: 2rem;
    background: #eee;
    border: 1px solid #ccc;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset-filters:hover {
    background: #ddd;
}

/* Stock Table */
.stock-table-container {
    background: white;
    border: 1px solid #eee;
    padding: 1rem;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table td {
    vertical-align: middle;
}

.top-products-table .stock-row td {
    padding: 0.8rem 0.5rem;
    font-size: 0.75rem;
}

.admin-table thead tr {
    text-align: left;
    border-bottom: 2px solid var(--primary-color);
}

.admin-table th {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #999;
    font-weight: 900;
    text-transform: uppercase;
}

/* Mejorar separación en Historial de Ventas */
.sales-table .text-right {
    padding-right: 2.5rem !important;
}

.sales-table .text-center {
    padding-left: 1.5rem;
}

.sales-table .stock-row td:first-child {
    font-size: 0.65rem !important;
    white-space: nowrap;
}

.sales-table .stock-row td:nth-child(3) {
    font-size: 0.8rem !important;
    white-space: nowrap;
}

.sales-table .stock-row td {
    padding: 1.2rem 0.8rem !important;
}

/* Evitar salto de línea en Top Rendimiento */
.top-products-table td:last-child {
    white-space: nowrap !important;
    min-width: 60px;
}

.stock-row {
    border-bottom: 1px solid #f5f5f5;
    transition: var(--transition);
}

.stock-row:hover {
    background-color: #fafafa;
}

.product-cell {
    padding: 1rem;
}

.product-name {
    font-size: 0.85rem;
    display: block;
}

.product-sku {
    color: #999;
    font-size: 0.7rem;
}

.stock-cell {
    padding: 1rem;
    font-size: 1rem;
}

.destacado-cell {
    padding: 1rem;
}

.btn-star {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #ccc;
    transition: var(--transition);
}

.btn-star i.active {
    color: #f1c40f;
}

.adjust-cell {
    padding: 1rem;
}

.stock-adjust-btns {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.btn-adjust {
    padding: 0.4rem 0.8rem;
    background: #eee;
    border: 1px solid #ddd;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-adjust:hover {
    border-color: var(--primary-color);
}

.btn-adjust.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-adjust.primary:hover {
    background: #333;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 900;
}

.primary-text {
    color: var(--primary-color);
}

.text-muted {
    color: #ccc;
}

.text-small {
    font-size: 0.75rem;
}

.session-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: #888;
}

.btn-logout {
    text-decoration: none;
    color: #ff4444;
    font-weight: 900;
    font-size: 0.6rem;
    border: 1px solid #ff4444;
    padding: 0.3rem 0.6rem;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #ff4444;
    color: white;
}

.admin-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.kpi-card {
    background: white;
    border: 1px solid #eee;
    padding: 1.5rem;
    transition: var(--transition);
}

.kpi-link {
    text-decoration: none;
    color: inherit;
}

.kpi-card.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.kpi-card.active .kpi-label {
    color: rgba(255, 255, 255, 0.5);
}

.kpi-card.primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.kpi-card.primary .kpi-label {
    color: rgba(255, 255, 255, 0.5);
}

.kpi-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #bbb;
    font-weight: 900;
    margin-bottom: 0.3rem;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
}

.kpi-card.primary .kpi-value {
    font-size: 1.4rem;
}

.admin-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.admin-main-content {
    background: white;
    border: 1px solid #eee;
    padding: 2rem;
}

.admin-sidebar {
    background: #fcfcfc;
    border: 1px solid #eee;
    padding: 2rem;
}

.section-title-small {
    font-size: 0.65rem;
    font-weight: 900;
    color: black;
    text-transform: uppercase;
}

.table-responsive {
    overflow-x: auto;
}

.status-checkboxes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6rem;
    width: fit-content;
    margin: 0 auto;
}

.status-chk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: white;
    padding: 0.4rem 0.8rem;
    border: 2px solid #eee;
    font-weight: 900;
    text-transform: uppercase;
    transition: var(--transition);
    color: #999;
    width: 125px;
    height: 32px;
    font-size: 0.6rem;
    box-sizing: border-box;
    letter-spacing: 0.5px;
}

.status-chk span {
    flex: 1;
    text-align: right;
}

.status-chk:has(input:disabled) {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f9f9f9;
    border-color: #eee !important;
}

.chk-pago:has(input:checked) {
    background: white;
    border-color: #4ade80 !important;
    color: #2e7d32;
}

.chk-envio:has(input:checked) {
    background: white;
    border-color: #2196f3 !important;
    color: #1976d2;
}

.chk-entrega:has(input:checked) {
    background: white;
    border-color: #9e9e9e !important;
    color: #616161;
}

.completed-separator {
    scroll-margin-top: 150px;
}

.completed-separator td {
    background: #f8f9fa !important;
    color: #888;
    font-size: 0.55rem;
    font-weight: 900;
    text-align: center;
    padding: 0.6rem !important;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
    letter-spacing: 1px;
}

.row-completed {
    opacity: 0.75;
}

.row-completed:hover {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

.jump-link {
    font-size: 0.55rem;
    font-family: var(--font-mono);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 900;
    padding: 0.2rem 0.5rem;
    border: 1px solid #eee;
    border-radius: 3px;
    transition: var(--transition);
}

.jump-link:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

/* Messages */
.messages-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.tab-link {
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 900;
    color: #ccc;
    transition: var(--transition);
}

.tab-link.active {
    color: black;
}

.message-card {
    border: 1px solid #eee;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.message-sender {
    font-size: 0.85rem;
}

.message-time {
    font-size: 0.65rem;
    color: #999;
    font-family: var(--font-mono);
}

.message-content {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 1.5rem;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-whatsapp-header {
    color: #25d366 !important;
    border-color: #25d366 !important;
}

.btn-whatsapp-header:hover {
    background: #25d366 !important;
    color: white !important;
}

.btn-modify-status:hover {
    background: var(--accent-color) !important;
    color: white !important;
}

/* Empty States */
    text-align: center;
    padding: 4rem 0;
    color: #ccc;
    font-weight: 800;
    font-size: 0.8rem;
}

.logo-subtext.accent {
    color: var(--accent-color);
}

/* Specs Section Home */
.specs-section {
    background-color: var(--primary-color);
    color: white;
}

.specs-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-header-compact {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: white;
}

.specs-description {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.spec-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.spec-text {
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.5;
}

.specs-cta-card {
    border: 2px solid white;
    padding: 3rem;
    background: #ffffff;
    color: black;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.card-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Budget Form Specifics */
.admin-quote-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.quote-setup-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.global-adjustment-card {
    background: #333;
    color: white;
    padding: 1rem;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.adjustment-input-group label {
    display: block;
    font-size: 0.55rem;
    font-weight: 900;
    color: #aaa;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.adjustment-input-group input {
    width: 70px;
    padding: 0.4rem;
    border: none;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1rem;
    outline: none;
}

.adjustment-help {
    font-size: 0.65rem;
    color: #ccc;
    line-height: 1.3;
}

.catalog-selector-card {
    background: #fcfcfc;
    border: 1px solid #ddd;
    padding: 1.5rem;
}

.selection-result-card {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--primary-color);
}

.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.selected-name {
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.3rem;
}

.selected-price {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.quantity-input-group label {
    display: block;
    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.qty-input {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid var(--primary-color);
    font-size: 0.9rem;
    font-weight: 800;
}

.extra-options-grid {
    margin-top: 1rem;
    border-top: 1px dashed #eee;
    padding-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.extra-options-grid label {
    display: flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 800;
    cursor: pointer;
    background: #f0f0f0;
    padding: 0.3rem 0.6rem;
    border-radius: 2px;
    transition: var(--transition);
}

.extra-options-grid label:hover {
    background: #e0e0e0;
}

.extra-options-grid input {
    margin-right: 0.3rem;
}

.custom-product-card {
    background: #fff8e1;
    border: 1px solid #ffa000;
    padding: 1.5rem;
}

.accent-text {
    color: #d4a017 !important;
}

.custom-dimensions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.mini-input {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.75rem;
    border: 1px solid #ddd;
}

.custom-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Quote Table & Preview */
.quote-preview-panel {
    background: white;
    border: 2px solid var(--primary-color);
    padding: 2.5rem;
}

.preview-header {
    margin-bottom: 2rem;
}

.client-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--primary-color);
    font-size: 1rem;
}

.quote-row.main {
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.quote-row td {
    padding: 1rem 0.5rem;
    font-size: 0.75rem;
}

.quote-row.extra td {
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    font-size: 0.7rem;
    color: #666;
    border-bottom: 1px solid #f9f9f9;
}

.connector {
    color: #bbb;
}

.btn-delete {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-delete:hover {
    transform: scale(1.2);
}

.quote-total-section {
    border-top: 2px solid var(--primary-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.total-label {
    font-weight: 900;
    font-size: 1rem;
}

.total-amount {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.text-uppercase {
    text-transform: uppercase;
}

/* Page Metadata & Badges */
.page-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.2rem;
}

.header-badge, .views-count, .meta-info {
    font-size: 0.6rem;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
}

.sku-badge {
    font-size: 0.6rem;
    background: #eee;
    padding: 0.15rem 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #555;
}

.product-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

.main-image-container {
    border: 2px solid var(--primary-color);
    background: #f9f9f9;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.thumbnail-item {
    border: 1px solid #ddd;
    aspect-ratio: 1;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.thumbnail-item:hover {
    border-color: black;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder {
    border: 2px solid #eee;
    background: #f9f9f9;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.no-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-image-placeholder p {
    font-size: 0.7rem;
    font-weight: 800;
}

.price-section {
    margin-bottom: 2.5rem;
}

.price-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--gray-medium);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.main-price {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.stock-status {
    font-size: 0.7rem;
    color: #2ecc71;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.specs-card {
    background: #fcfcfc;
    border: 1px solid #eee;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.specs-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.3rem;
    font-weight: 800;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.3rem;
}

.spec-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: #bbb;
}

.spec-value {
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.purchase-actions {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.2rem;
}

.qty-input-big {
    padding: 0.8rem;
    border: 2px solid var(--primary-color);
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    outline: none;
}

.add-to-cart-btn {
    padding: 1rem;
    font-size: 0.85rem;
}

.note-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.note-date {
    font-size: 0.65rem;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
}

.note-rating-summary {
    font-size: 0.65rem;
    font-weight: 800;
    color: #ffc107;
    text-transform: uppercase;
}

.note-article {
    max-width: 900px;
    margin: 0 auto;
}

.note-featured-image {
    width: 100%;
    height: 450px;
    background: #f9f9f9;
    border: 1px solid #eee;
    margin-bottom: 3.5rem;
    overflow: hidden;
}

.note-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.note-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.note-content h2 {
    margin: 2.5rem 0 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.note-content h3 {
    margin: 2rem 0 1rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
}

.note-content p {
    margin-bottom: 1.5rem;
}

.note-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.note-content li {
    margin-bottom: 0.8rem;
}

.note-commitment-card {
    margin-top: 4rem;
    padding: 2.5rem;
    border-left: 5px solid var(--primary-color);
    background: #fcfcfc;
}

.commitment-title {
    font-weight: 900;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

.commitment-text {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.note-rating-card {
    margin-top: 6rem;
    padding: 3.5rem;
    background: white;
    border: 2px solid var(--primary-color);
    text-align: center;
}

.rating-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.star-rating-container {
    font-size: 2rem;
    color: #eee;
    cursor: pointer;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.rating-success-msg {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    color: #2ecc71;
    display: none;
    text-transform: uppercase;
}

.rating-help-text {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
}

.note-footer-actions {
    text-align: center;
    margin-top: 5rem;
}

/* CMS Page Specifics */
.cms-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.cms-card {
    background: white;
    border: 1px solid #eee;
    padding: 2rem;
}

.full-width-cms {
    grid-column: span 2;
}

.theme-selector {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.color-picker {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    background: none;
    padding: 0;
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.payment-config-box {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.payment-config-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.payment-toggle-header {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.toggle-label {
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.toggle-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: black;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .grid-footer {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .cart-layout, .product-detail-layout, .contact-layout, .admin-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .cart-main, .cart-sidebar {
        width: 100% !important;
        min-width: 0;
    }
    .admin-main-content {
        padding: 1rem !important;
        min-width: 0; /* Crucial para que el contenido hijo pueda scrollear */
        overflow: hidden; /* Evita que el borde del div se escape */
    }
    .admin-stock-layout {
        grid-template-columns: 1fr;
    }
    .specs-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .admin-quote-layout {
        grid-template-columns: 1fr;
    }
    .product-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .cms-layout {
        grid-template-columns: 1fr;
    }
    .full-width-cms {
        grid-column: span 1;
    }
    .admin-kpis {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .page-meta {
        width: 100%;
        justify-content: space-between;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .note-meta {
        width: 100%;
        justify-content: space-between;
    }

    .note-featured-image {
        height: 250px;
        margin-bottom: 2rem;
    }

    .note-commitment-card, .note-rating-card {
        padding: 1.5rem;
    }

    .main-price {
        font-size: 2rem;
    }

    .custom-dimensions-grid {
        grid-template-columns: 1fr;
    }

    .extra-options-grid {
        justify-content: flex-start;
    }

    .quote-preview-panel {
        padding: 1.5rem;
    }

    .total-amount {
        font-size: 1.5rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .specs-cta-card {
        padding: 1.5rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stock-filters-sidebar {
        position: static;
        padding: 1rem;
    }

    .admin-table th, .product-cell, .stock-cell, .destacado-cell, .adjust-cell {
        padding: 0.6rem;
    }

    .btn-adjust {
        padding: 0.3rem 0.5rem;
        font-size: 0.6rem;
    }

    .footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 3rem;
    }

    .grid-footer {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: left;
    }

    .footer-column:first-child {
        grid-column: span 2;
        margin-bottom: 1rem;
    }

    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-links, .social-links, .footer-contact-info {
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
        margin-top: 3rem;
        padding-top: 1.5rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 20px;
        left: 20px;
    }

    .page-section {
...
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-subtext {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 2rem;
        border-bottom: 2px solid var(--primary-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin-left: 0;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a.active {
        border-bottom: 1px solid var(--primary-color);
        padding-bottom: 1rem;
    }

    .navbar-actions {
        gap: 1.2rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .hero-cta .btn {
        min-width: 100%;
        margin-left: 0 !important;
    }

    .hero-btns {

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .catalog-header h2 {
        font-size: 1.8rem !important;
    }

    .contact-form-container {
        padding: 1.5rem !important;
    }

    .contact-form-grid, .form-row-2 {
        grid-template-columns: 1fr;
    }

    .sales-table {
        min-width: 800px;
    }

    .admin-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .grid-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .info-value.big {
        font-size: 1.1rem;
    }

    .product-image {
        height: 200px;
    }
    .logo-text {
        font-size: 1.5rem;
    }
}
