/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #363435;
    background-color: #f7f6f4;
    margin-top: 80px;
}

.container {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Header */
.header {
    background: #ffffff;
    color: #363435;
    padding: 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-link:hover {
    opacity: 0.7;
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 200px;
}

/* Header Social Icons */
.header-social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-social a {
    color: #363435;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.header-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.header-login {
    opacity: 0.45;
}

.header-login:hover {
    opacity: 1;
}

/* Sección de búsqueda */
.search-section {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-bottom: none;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2rem;
    background: #FFFFFF;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(54, 52, 53, 0.15);
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.search-input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    font-size: 1.1rem;
    outline: none;
    background: #FFFFFF;
    color: #363435;
}

.search-btn {
    background: #363435;
    color: #FFFFFF;
    border: none;
    padding: 18px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border-radius: 0;
}

.search-btn:hover {
    background: #2a2829;
    transform: translateY(-1px);
}

/* Filtros */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-group label {
    font-weight: 600;
    color: #363435;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.filter-group select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    font-size: 1rem;
    background: #FFFFFF;
    color: #363435;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    border-color: #363435;
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 52, 53, 0.1);
}

.clear-filters {
    background: #363435;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 1rem;
}

.clear-filters:hover {
    background: #2a2829;
    transform: translateY(-1px);
}

/* Layout a pantalla completa */
.search-filters-layout {
    display: grid;
    grid-template-columns: 33% 67%;
    gap: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: calc(100vh - 80px);
}

.filters-sidebar {
    background: #FFFFFF;
    padding: 2rem 2rem 4rem;
    border-radius: 0;
    box-shadow: 2px 0 10px rgba(54, 52, 53, 0.1);
    height: calc(100vh - 80px);
    position: fixed;
    top: 80px;
    left: 0;
    width: 33vw;
    overflow-y: auto;
    z-index: 100;
}

/* Scrollbar personalizado para la sidebar de filtros */
.filters-sidebar::-webkit-scrollbar {
    width: 8px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: #363435;
    border-radius: 0;
    transition: background 0.3s ease;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: #2a2829;
}

/* Para Firefox */
.filters-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #363435 #f1f1f1;
}

.filters-sidebar .search-bar {
    margin-bottom: 2rem;
    width: 100%;
}

.filters-sidebar .filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.filters-sidebar .filter-group {
    width: 100%;
}

.filters-sidebar .filter-group input,
.filters-sidebar .filter-group select {
    width: 100%;
    box-sizing: border-box;
}

.products-main {
    background: #F7F7F7;
    padding: 2rem;
    border-radius: 0;
    margin-left: 33vw;
    width: 67vw;
    min-height: calc(100vh - 80px);
}

/* Sección del catálogo */
.catalog-section {
    padding: 3rem 0;
    background: #F7F7F7;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.catalog-header h2 {
    font-family: 'Playfair Display', serif;
    color: #363435;
    font-size: 2.8rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.5px;
}

.view-options {
    display: flex;
    gap: 0.8rem;
}

.view-btn {
    background: #FFFFFF;
    border: 2px solid #e0e0e0;
    padding: 12px 18px;
    border-radius: 0;
    cursor: pointer;
    color: #363435;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #363435;
    color: #FFFFFF;
    border-color: #363435;
}

/* Grid de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

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

.product-card {
    background: #FFFFFF;
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(54, 52, 53, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: default;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(54, 52, 53, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    background: #F7F7F7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #363435;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #363435;
    opacity: 0.15;
    background: #f2f1ef;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #363435;
    margin: 0;
    line-height: 1.3;
}

.product-brand {
    color: #363435;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

.product-description {
    color: #363435;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    margin-bottom: 1.2rem;
}

.product-specs .spec-item {
    display: block;
    background: #F2F2F2;
    color: #363435;
    padding: 0.6rem 1rem;
    border-radius: 0;
    font-size: 0.95rem;
    margin: 0.4rem 0;
    border-left: 3px solid #363435;
}

.product-specs .spec-item strong {
    color: #363435;
    font-weight: 600;
}

.product-reference {
    background: none;
    color: #363435;
    padding: 0;
    border-radius: 0;
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    font-weight: 300;
    font-style: italic;
    display: inline-block;
    margin: 0;
    align-self: flex-start;
    box-shadow: none;
}

.product-collection {
    background: none;
    color: #363435;
    padding: 0;
    border-radius: 0;
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    font-weight: 300;
    font-style: italic;
    display: inline-block;
    margin: 0;
    opacity: 1;
    align-self: flex-start;
    box-shadow: none;
}

.product-colors {
    font-family: 'Playfair Display', serif;
    font-size: 0.7rem;
    font-weight: 300;
    font-style: italic;
    color: #363435;
    margin: 0.3rem 0;
    opacity: 0.8;
}

.product-header {
    margin-bottom: 1.2rem;
}

.product-header .product-reference,
.product-header .product-collection {
    margin-right: 0.8rem;
}

/* Estilos para el campo de referencia */
.filter-group input[type="text"] {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    font-size: 1rem;
    background: #FFFFFF;
    color: #363435;
    transition: all 0.3s ease;
    width: 100%;
}

.filter-group input[type="text"]:focus {
    border-color: #363435;
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 52, 53, 0.1);
}

.filter-group input[type="text"]::placeholder {
    color: #363435;
    opacity: 0.6;
    font-style: italic;
}

/* Estilos para información de cuidado */
.care-info {
    background: #F2F2F2;
    border-left: 4px solid #363435;
    padding: 0.8rem;
    border-radius: 0;
    font-size: 0.95rem;
    margin-top: 0.8rem;
    color: #363435;
}

.care-row {
    background: #F2F2F2;
    border-left: 4px solid #363435;
    margin-top: 1.2rem;
}

.care-symbols {
    font-family: 'Courier New', monospace;
    background: #F2F2F2;
    padding: 0.8rem;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #363435;
}

.spec-item.care-info {
    display: block;
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: #F2F2F2;
    border-radius: 0;
    border-left: 4px solid #363435;
    color: #363435;
}

/* Estilos para botón de descarga de ficha */
.btn-success {
    background: #363435;
    border: none;
    color: #FFFFFF;
    padding: 14px 28px;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.btn-success:hover {
    background: #2a2829;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(54, 52, 53, 0.3);
}

.btn-success:active {
    transform: translateY(0);
}

.btn-success i {
    font-size: 1.2rem;
}

/* Botón Ver detalles aesthetic */
.btn-details {
    background: #F7F7F7;
    color: #363435;
    border: 2px solid #363435;
    padding: 14px 28px;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(54, 52, 53, 0.1);
}

.btn-details:hover {
    background: #363435;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(54, 52, 53, 0.3);
}

.btn-details:active {
    transform: translateY(-1px);
}

.btn-details i {
    font-size: 1.2rem;
}

/* Nuevo estilo para la ficha del producto basado en el ejemplo */
.modal-product {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0;
    min-height: 600px;
    background: #FFFFFF;
}

.sidebar-collection {
    background: #f2f1ef;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.collection-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #363435;
    transform: rotate(180deg);
    letter-spacing: 2px;
}

.product-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-image-modal {
    width: 100%;
    height: 300px;
    background: #f2f1ef;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(54, 52, 53, 0.1);
    margin-bottom: 2rem;
}

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

.product-image-modal .placeholder-image {
    font-size: 4rem;
    color: #363435;
    opacity: 0.3;
}

.product-header-modal h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    font-style: italic;
    color: #363435;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.product-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #363435;
    margin: 0 0 2rem 0;
    font-style: italic;
}

.product-description {
    margin-bottom: 2rem;
}

.product-description p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #363435;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.specifications-table {
    border-top: 2px solid #363435;
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #363435;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 120px;
}

.spec-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #363435;
    text-align: right;
    flex: 1;
}

/* Mejoras aesthetic para acciones del modal */
.actions {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(54, 52, 53, 0.2);
}

.btn-primary {
    background: #363435;
    color: #FFFFFF;
    border: none;
}

.btn-primary:hover {
    background: #2a2829;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(54, 52, 53, 0.3);
}

.btn-success {
    background: #363435;
    color: #FFFFFF;
    border: none;
}

.btn-success:hover {
    background: #2a2829;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(54, 52, 53, 0.3);
}

@media (max-width: 768px) {

    /* Header mobile: logo izquierda, RRSS derecha */
    .header {
        height: 60px;
    }

    .header .container {
        padding: 0 1rem;
    }

    .logo img {
        height: 32px;
    }

    .header-social {
        gap: 1rem;
    }

    .header-social a {
        font-size: 1rem;
    }

    /* Catálogo header más pequeño */
    .catalog-header {
        flex-direction: row;
        gap: 0.5rem;
        text-align: left;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .catalog-header h2 {
        font-size: 1.4rem;
        letter-spacing: -0.3px;
    }

    /* Layout centrado */
    .search-filters-layout {
        grid-template-columns: 1fr;
        gap: 0;
        width: 100vw;
        margin-left: 0;
    }

    .filters-sidebar {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100vw;
        height: calc(100vh - 60px);
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .filters-sidebar.open {
        left: 0;
    }

    .products-main {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }

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

    .mobile-filter-toggle {
        display: block !important;
        position: fixed;
        top: 68px;
        left: 12px;
        z-index: 1001;
        background: #363435;
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 0;
        cursor: pointer;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .search-section {
        padding-top: 60px;
    }
}

@media (max-width: 768px) {
    .actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-success {
        margin-left: 0;
        margin-top: 10px;
    }

    .modal-content {
        width: 98%;
        margin: 1% auto;
        padding: 2rem;
        max-height: 98vh;
    }

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

    .sidebar-collection {
        display: none;
    }

    .product-content {
        padding: 2rem;
    }

    .product-image-modal {
        height: 250px;
        margin-bottom: 1.5rem;
    }

    .product-header-modal h2 {
        font-size: 2.2rem;
    }

    .spec-label {
        font-size: 0.8rem;
        min-width: 100px;
    }

    .spec-value {
        font-size: 0.9rem;
    }
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Vista de lista */
.products-grid.list-view .product-card {
    display: flex;
    align-items: center;
}

.products-grid.list-view .product-image {
    width: 150px;
    height: 120px;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.products-grid.list-view .product-details {
    flex: 1;
}

.products-grid.list-view .product-actions {
    flex-shrink: 0;
}

.products-grid.list-view .series-card {
    display: flex;
    align-items: center;
}

.products-grid.list-view .series-card .product-image {
    width: 150px;
    height: 120px;
    flex-shrink: 0;
}

.products-grid.list-view .series-card .product-info {
    flex: 1;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    background: white;
    border: 2px solid #e9ecef;
    padding: 0.6rem 1rem;
    border-radius: 0;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.pagination button:hover,
.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(54, 52, 53, 0.5);
    backdrop-filter: blur(12px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #FFFFFF;
    margin: 2% auto;
    padding: 3rem;
    border-radius: 0;
    width: 95%;
    max-width: 1400px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 25px 60px rgba(54, 52, 53, 0.4);
    border: 1px solid #e0e0e0;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: #363435;
    float: right;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.close:hover {
    color: #363435;
    opacity: 1;
    transform: scale(1.1);
}

/* Sección de administración */
.admin-section {
    background: #FFFFFF;
    padding: 3rem 0;
    border-top: 1px solid #e0e0e0;
}

.admin-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.upload-section,
.export-section {
    background: #F2F2F2;
    padding: 2.5rem;
    border-radius: 0;
    border: 2px dashed #e0e0e0;
}

.upload-section h3,
.export-section h3 {
    margin-bottom: 1.5rem;
    color: #363435;
    font-size: 1.4rem;
    font-weight: 600;
}

.upload-btn,
.export-btn {
    background: #363435;
    color: #FFFFFF;
    border: none;
    padding: 1.2rem 1.8rem;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.8rem 0;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
}

.upload-btn:hover,
.export-btn:hover {
    background: #2a2829;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(54, 52, 53, 0.3);
}

#excelFile {
    display: none;
}

/* Loading y mensajes */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #363435;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.no-products h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #363435;
}

.no-products p {
    font-size: 1.1rem;
    color: #363435;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.btn-clear-filters {
    background: #363435;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-filters i {
    font-size: 1rem;
}

.btn-clear-filters:hover {
    background: #2a2829;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(54, 52, 53, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        gap: 0;
    }

    .nav ul {
        gap: 1rem;
    }

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

    .catalog-header {
        flex-direction: row;
        gap: 0.5rem;
        text-align: left;
    }

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

    .products-grid.list-view .product-card {
        flex-direction: column;
    }

    .products-grid.list-view .product-image {
        width: 100%;
        height: 200px;
    }

    .products-grid.list-view .product-info {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-controls {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

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

    .search-bar {
        margin: 0 0 1rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay para animaciones escalonadas */
.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.product-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Estilos específicos para filtros de CasperDOS */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 0;
    border-left: 4px solid #667eea;
}

.spec-label {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.spec-value {
    color: #555;
    font-weight: 500;
    flex: 1;
    text-align: right;
}

.stock-section {
    margin: 1.5rem 0;
    text-align: center;
}

/* Mejoras para filtros múltiples */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.clear-filters {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 1rem;
}

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

    .clear-filters {
        grid-column: 1;
    }
}

/* =============================================
   MODAL DE SOLICITAR INFORMACIÓN
   ============================================= */

.contact-modal-content {
    max-width: 650px;
    padding: 3rem;
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.contact-modal-header i {
    font-size: 2.5rem;
    color: #363435;
    margin-bottom: 1rem;
    display: block;
}

.contact-modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #363435;
    margin: 0 0 0.5rem 0;
}

.contact-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #363435;
    opacity: 0.7;
    font-style: italic;
}

#contactForm .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

#contactForm .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0;
}

#contactForm .form-group:last-child:not(.form-row .form-group) {
    margin-bottom: 1.5rem;
}

#contactForm label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #363435;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#contactForm input,
#contactForm textarea {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    background: #FFFFFF;
    color: #363435;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: #363435;
    box-shadow: 0 0 0 3px rgba(54, 52, 53, 0.1);
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: #aaa;
    font-weight: 300;
}

#contactForm textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: #363435;
    color: #FFFFFF;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background: #2a2829;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(54, 52, 53, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mensaje de éxito */
#contactSuccessMessage {
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.success-container {
    text-align: center;
    animation: successPop 0.5s ease forwards;
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 5rem;
    color: #363435;
    animation: checkPulse 0.6s ease;
}

.success-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #363435;
    margin-bottom: 1rem;
}

.success-container p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #363435;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes checkPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive para el modal de contacto */
@media (max-width: 768px) {
    .contact-modal-content {
        padding: 2rem;
        width: 95%;
        margin: 5% auto;
    }

    #contactForm .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #contactForm .form-group {
        margin-bottom: 1rem;
    }

    .contact-modal-header h2 {
        font-size: 1.5rem;
    }

    .success-icon i {
        font-size: 3.5rem;
    }

    .success-container h2 {
        font-size: 1.5rem;
    }

    .success-container p {
        font-size: 1rem;
    }
}

/* =============================================
   FOOTER MINIMALISTA
   ============================================= */

.footer {
    background: #ffffff;
    border-top: 1px solid #e8e7e5;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 35px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-social a {
    color: #363435;
    font-size: 1.2rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-copy {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #363435;
    opacity: 0.4;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.5rem;
    }

    .footer-social {
        gap: 1.5rem;
    }

    .header-social {
        gap: 1rem;
    }
}

/* =============================================
   REFINAMIENTOS MINIMALISTAS ADICIONALES
   ============================================= */

/* Tarjetas de producto con sombra más sutil */
.product-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #eeedeb;
    transition: all 0.4s ease;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: transparent;
}

/* Filtros con estilo más limpio */
.filters-sidebar {
    background: #ffffff;
    border-right: 1px solid #eeedeb;
}

/* Catálogo header */
.catalog-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: -0.5px;
}

/* =============================================
   GAMAS DE COLORES — Filtro visual
   ============================================= */

.color-gamas {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px 0;
}

.color-gama-row {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.color-gama-row:hover {
    background: #f2f1ef;
    border-color: #ddd;
}

.color-gama-row.active {
    background: #363435;
    border-color: #363435;
}

.color-gama-row.active .gama-label {
    color: #ffffff;
}

.gama-swatch {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.gama-label {
    font-size: 0.72rem;
    color: #666;
    margin-left: 6px;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Swatches en tarjetas de producto */
.card-color-swatches {
    display: flex;
    gap: 3px;
    margin: 6px 0;
    flex-wrap: wrap;
}

.card-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.card-swatch:hover {
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .color-gamas {
        max-height: 200px;
    }

    .gama-swatch {
        width: 14px;
        height: 14px;
    }
}

/* =============================================
   SERIES VIEW — Catálogo público
   ============================================= */

.series-section {
    min-height: calc(100vh - 80px);
    background: #f7f6f4;
}

.series-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.series-header {
    text-align: center;
    margin-bottom: 3rem;
}

.series-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #363435;
    letter-spacing: -0.5px;
}

.series-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #363435;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* Buscador de series */
.series-search {
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.series-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 0 16px;
    transition: border-color 0.3s;
}

.series-search-bar:focus-within {
    border-color: #363435;
    box-shadow: 0 0 0 3px rgba(54,52,53,0.1);
}

.series-search-bar i {
    color: #999;
    font-size: 1rem;
    margin-right: 10px;
}

.series-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #363435;
    background: transparent;
}

.series-search-bar input::placeholder {
    color: #aaa;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

.series-card {
    background: #fff;
    border: 1px solid #eeedeb;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.series-card:hover {
    box-shadow: 0 12px 40px rgba(54,52,53,0.12);
    transform: translateY(-6px);
    border-color: transparent;
}

.series-card-image {
    width: 100%;
    height: 260px;
    background: #f2f1ef;
    position: relative;
    overflow: hidden;
}

.series-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.series-card:hover .series-card-image img {
    transform: scale(1.05);
}

.series-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #363435;
    opacity: 0.15;
}

.series-card-info {
    padding: 1.5rem;
}

.series-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #363435;
    margin: 0 0 0.5rem;
}

.series-card-desc {
    font-size: 0.92rem;
    color: #363435;
    opacity: 0.7;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.series-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.series-variant-count {
    font-size: 0.85rem;
    color: #363435;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.series-card-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: #363435;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.series-card:hover .series-card-btn {
    gap: 10px;
}

/* VARIANTS TOP BAR */
.variants-top-bar {
    background: #fff;
    border-bottom: 1px solid #eeedeb;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: sticky;
    top: 80px;
    z-index: 90;
}

.back-to-series {
    background: none;
    border: 2px solid #e0e0e0;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #363435;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.back-to-series:hover {
    border-color: #363435;
    background: #363435;
    color: #fff;
}

.series-info-bar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #363435;
    line-height: 1.2;
}

.series-info-bar p {
    font-size: 0.82rem;
    color: #363435;
    opacity: 0.6;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .series-container {
        padding: 2rem 1rem;
    }

    .series-header h2 {
        font-size: 1.8rem;
    }

    .series-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .series-card-image {
        height: 200px;
    }

    .variants-top-bar {
        padding: 0.8rem 1rem;
        top: 60px;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .back-to-series {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .series-info-bar h2 {
        font-size: 1.1rem;
    }

    .variants-section .search-section {
        padding-top: 0;
    }
}

/* Gallery */
.product-gallery {
    margin-bottom: 1rem;
}

.gallery-main {
    position: relative;
    width: 100%;
    background: #f2f1ef;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    overflow: hidden;
}

.gallery-image-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: opacity 0.3s;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #363435;
    z-index: 2;
    transition: background 0.2s;
}

.gallery-nav:hover {
    background: #363435;
    color: #fff;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-thumbnails {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    overflow-x: auto;
    padding: 4px 0;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    transition: border-color 0.2s;
}

.gallery-thumb.active {
    border-color: #363435;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}