/* Reset y Variables */
* {
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
}

:root {
    --primary-blue: #1E88E5;
    --dark-blue: #1565C0;
    --orange-brown: #D84315;
    --light-orange: #FF6F00;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Arial', 'georgia',Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 220px;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 4rem;
    flex: 1;
    justify-content: center;
    font-family: 'georgia';
}

.nav-link {
    text-decoration: none;
    color: #2B4053;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #73C3D5;
}

.nav-link.active {
    color: #73C3D5;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #73C3D5;
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    min-width: 250px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus-within {
    border-color: #73C3D5;
    box-shadow: 0 0 0 2px rgba(115, 195, 213, 0.2);
}

.search-box i {
    color: #6c757d;
    font-size: 1rem;
}

.search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #73C3D5;
}

.login-btn {
    background-color: var(--orange-brown);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.login-btn:hover {
    background-color: var(--light-orange);
}

/* Logout Button */
.logout-btn {
    background-color: var(--orange-brown);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    position: relative;
}

.logout-btn:hover {
    background-color: var(--light-orange);
}

.logout-btn i {
    font-size: 1rem;
}

.logout-btn .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Notifications Button */
.notifications-btn {
    position: relative;
}

/* Header Icon Buttons */
.header-icon-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.header-icon-btn:hover {
    color: #73C3D5;
}

.header-icon-btn.active {
    color: #e74c3c;
}

.header-icon-btn.active:hover {
    color: #c0392b;
    color: #73C3D5;
    background-color: rgba(115, 195, 213, 0.1);
}

.messages-btn {
    position: relative;
}

.account-btn {
    font-size: 1.6rem;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #D84315;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transform: translate(25%, -25%);
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: relative;
}

.notifications-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 400px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notifications-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.notifications-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: #73C3D5;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mark-all-read-btn:hover {
    background-color: rgba(115, 195, 213, 0.1);
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.notification-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.no-leida {
    background-color: #f0f7ff;
}

.notification-item.no-leida:hover {
    background-color: #e6f3ff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.notification-icon.message {
    background-color: rgba(115, 195, 213, 0.15);
    color: #73C3D5;
}

.notification-icon.product {
    background-color: rgba(255, 140, 66, 0.15);
    color: #FF8C42;
}

.notification-icon.system {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.notification-message {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-time {
    color: #999;
    font-size: 0.75rem;
}

.notification-loading,
.notifications-empty {
    padding: 2rem 1.5rem;
    text-align: center;
    color: #999;
}

.notification-loading i,
.notifications-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.notifications-empty p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .notifications-panel {
        width: 320px;
        right: -50px;
    }
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background-color:#2B4053;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
}

.filters-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filters-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.filters-header i {
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: white;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: white;
    cursor: pointer;
    padding: 0.5rem 0;
}

.filter-header i {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.filter-group.active .filter-header i {
    transform: rotate(180deg);
}

.filter-input {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.filter-option {
    color: #2B4053;
    font-weight: 600;
}

.filter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: rgba(255, 255, 255, 0.15);
}

.apply-filter-btn {
    background-color: var(--orange-brown);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.apply-filter-btn:hover {
    background-color: var(--light-orange);
}

/* Products Section */
.products-section {
    flex: 1;
}

/* Intro Section */
.intro-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #77C5D6;
}

.intro-section.hidden {
    display: none;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-main {
    margin-bottom: 2.5rem;
}

.intro-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1565C0;
    line-height: 1.4;
    margin-bottom: 2rem;
    text-align: left;
}

.intro-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light-orange);
    margin-bottom: 2rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: justify;
}

.highlight-year {
    font-weight: 700;
    color: #CD531B;
}

.intro-quote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #2B4053;
    color: white;
    border-radius: 8px;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    box-shadow: 0 4px 12px rgba(43, 64, 83, 0.3);
    position: relative;
    padding-left: 4rem;
}

.intro-quote::before {
    content: '"';
    font-size: 5rem;
    color: #9E9E9E;
    position: absolute;
    top: 0;
    left: 1rem;
    font-family: Georgia, serif;
    font-style: normal;
    line-height: 1;
}

.intro-cadena {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.cadena-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2B4053;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
}

.cadena-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-orange));
    border-radius: 2px;
}

.cadena-content {
    margin-top: 1.5rem;
}

.cadena-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    text-align: justify;
}

.cadena-text strong {
    color: #CD531B;
    font-weight: 600;
}

.cadena-objective {
    padding: 1.25rem;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid var(--orange-brown);
    border-radius: 6px;
    font-weight: 500;
    color: var(--text-dark);
    margin-top: 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background-color: #2B4053;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color:#2B4053;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 0.75rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.detail-item i {
    color: var(--primary-blue);
    width: 16px;
}

.vendor-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.favorite-btn:hover {
    background-color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.favorite-btn i {
    font-size: 1.2rem;
    color: #666;
    transition: all 0.3s ease;
}

.favorite-btn.active i,
.favorite-btn:hover i {
    color: #D84315;
}

.favorite-btn.active i {
    font-weight: 900;
}

.favorite-btn .fa-heart {
    color: #D84315;
}

.favorite-btn .far.fa-heart {
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .intro-section {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .intro-text {
        font-size: 1.05rem;
    }
    
    .intro-quote {
        font-size: 1.1rem;
        padding: 1.25rem 1.5rem;
    }
    
    .cadena-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .cadena-text {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .intro-section {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .intro-title {
        font-size: 1.8rem;
    }
    
    .intro-subtitle {
        font-size: 1.15rem;
    }
    
    .intro-text {
        font-size: 1.05rem;
    }
    
    .intro-quote {
        font-size: 1.1rem;
        padding: 1.25rem 1.5rem;
        padding-left: 3.5rem;
    }
    
    .intro-quote::before {
        font-size: 4rem;
        left: 0.75rem;
    }
    
    .cadena-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .cadena-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .main-container {
        padding: 0 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-container {
        gap: 1rem;
    }
    
    .logo-text {
        font-size: 0.8rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .login-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .sidebar {
        padding: 1.5rem;
    }
    
    .sidebar-title {
        font-size: 1.5rem;
    }
    
    .intro-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .intro-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .intro-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .intro-text {
        font-size: 1rem;
        text-align: left;
    }
    
    .intro-quote {
        font-size: 1rem;
        padding: 1rem 1.25rem;
        padding-left: 3rem;
    }
    
    .intro-quote::before {
        font-size: 3rem;
        top: 0;
        left: 0.5rem;
    }
    
    .cadena-title {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }
    
    .cadena-text {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .cadena-objective {
        padding: 1rem;
    }
}

/* Footer */
.footer {
    background-color: #2B4053;
    color: white;
    position: relative;
    margin-top: 4rem;
    padding-top: 3rem;
    padding-bottom: 0;
    overflow: hidden;
}

.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    z-index: 1;
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 50%;
    animation: wave-animation 8s ease-in-out infinite;
}

.wave1 {
    top: -50%;
    left: -50%;
    background: rgba(255, 255, 255, 0.06);
    animation-delay: 0s;
}

.wave2 {
    top: -40%;
    left: -30%;
    background: rgba(200, 220, 255, 0.08);
    animation-delay: 2s;
    animation-duration: 10s;
}

.wave3 {
    top: -60%;
    left: -20%;
    background: rgba(180, 200, 255, 0.1);
    animation-delay: 4s;
    animation-duration: 12s;
}

@keyframes wave-animation {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    50% {
        transform: translateX(25%) translateY(-10px) rotate(5deg);
    }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.footer-section {
    flex: 1;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-img {
    filter: brightness(0) invert(1);
    width: 150px;
    height: auto;
    object-fit: contain;
}

.footer-email-text {
    color: #73C3D5;
    font-size: 0.95rem;
    margin: 0;
}

.footer-credits {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 1rem 0 0;
    max-width: 280px;
}

.footer-credits .footer-credits-title {
    font-weight: 600;
    color: #73C3D5;
    margin-bottom: 0.25rem;
}

.footer-credits .footer-credits-sub {
    font-size: 0.8rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.footer-credits .footer-credits-dev {
    font-size: 0.75rem;
    margin-top: 0.35rem;
}

.footer-privacy-link {
    color: var(--light-orange);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-privacy-link:hover {
    color: var(--orange-brown);
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 500;
    color: #73C3D5;
    margin-bottom: 0;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 0;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 350px;
}

.contact-input {
    padding: 0.75rem 1rem;
    background-color: #3A5169;
    border: 1px solid #4A6278;
    border-radius: 4px;
    color: white;
    font-size: 0.95rem;
    width: 100%;
    font-family: inherit;
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-input:focus {
    outline: none;
    border-color: #73C3D5;
    background-color: #455A70;
}

.contact-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.contact-submit {
    padding: 1rem 2rem;
    background-color: var(--orange-brown);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.contact-submit:hover {
    background-color: var(--light-orange);
    transform: translateY(-2px);
}

.footer-bottom {
    width: 100%;
    background-color: var(--orange-brown);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    margin: 0;
}

.footer-copyright {
    color: white;
    font-size: 0.9rem;
    margin: 0;
}

.scroll-top-btn {
    width: 35px;
    height: 35px;
    background-color: #333333;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.scroll-top-btn:hover {
    background-color: #444444;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        gap: 4rem;
    }
    
    .footer-waves-container {
        height: 35%;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 2rem 1rem;
        gap: 2rem;
        flex-direction: column;
    }
    
    .footer-bottom {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .social-icons {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .social-icon {
        font-size: 1.5rem;
    }
    
    .footer-waves-container {
        height: 30%;
    }
}

/* ===== NUEVOS ESTILOS PARA FILTROS MEJORADOS ===== */

.filter-options {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 5px;
    margin-top: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}

.filter-option:hover {
    background: #e9ecef;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    cursor: pointer;
}

.filter-search {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filter-checkboxes {
    max-height: 200px;
    overflow-y: auto;
}

.clear-filter-btn {
    width: 100%;
    padding: 0.75rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
}

.clear-filter-btn:hover {
    background: #5a6268;
}

/* ===== MODAL OVERLAY ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== MODAL DE MENSAJES ===== */

.modal-messages {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-messages-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    color: white;
    border-radius: 10px 10px 0 0;
}

.modal-messages-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-size: 1.2rem;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-messages-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.messages-sidebar {
    width: 300px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.messages-search {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
}

.messages-search i {
    color: #6c757d;
}

.messages-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 0.75rem;
}

.conversation-item:hover {
    background: #e9ecef;
}

.conversation-item.active {
    background: #e3f2fd;
}

.conversation-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.conversation-avatar-initials {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    color: #2B4053;
    margin-bottom: 0.25rem;
}

.conversation-preview {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-badge {
    background: #1E88E5;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.no-messages {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.messages-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.messages-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    gap: 1rem;
}

.messages-empty i {
    font-size: 4rem;
    opacity: 0.3;
}

.messages-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.chat-product-info {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-info-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-info-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-info-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.product-info-details {
    flex: 1;
    min-width: 0;
}

.product-info-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2B4053;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info-specs {
    margin: 0.25rem 0 0 0;
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.product-info-link:hover {
    background: linear-gradient(135deg, #1565C0, #0d47a1);
    transform: scale(1.05);
    color: white;
}

.product-info-link i {
    font-size: 0.75rem;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #2B4053;
}

.chat-user-info i {
    font-size: 1.5rem;
    color: #1E88E5;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8f9fa;
}

.message-bubble {
    max-width: 70%;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.message-bubble.sent {
    align-self: flex-end;
    align-items: flex-end;
}

.message-bubble.received {
    align-self: flex-start;
    align-items: flex-start;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 15px;
    word-wrap: break-word;
}

.message-bubble.sent .message-content {
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    color: white;
    border-bottom-right-radius: 5px;
}

.message-bubble.received .message-content {
    background: white;
    color: #2B4053;
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-time {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.chat-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 0.75rem;
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
}

.chat-input input:focus {
    border-color: #1E88E5;
}

.chat-input button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-input button:hover {
    transform: scale(1.05);
}

/* ===== MODAL DE PERFIL CLIENTE ===== */

.modal-perfil {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    color: white;
    border-radius: 10px 10px 0 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 2rem;
}

.perfil-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.perfil-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.btn-cambiar-foto {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.btn-cambiar-foto:hover {
    background: #e9ecef;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #2B4053;
    font-size: 0.9rem;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #1E88E5;
}

.form-input:readonly {
    background: #f8f9fa;
    cursor: not-allowed;
}

.form-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.form-section h3 {
    color: #2B4053;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* ===== RESPONSIVE MODALES ===== */

@media (max-width: 768px) {
    .modal-messages {
        width: 95%;
        height: 90vh;
    }
    
    .messages-sidebar {
        width: 250px;
    }
    
    .modal-perfil {
        width: 95%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PERFIL DEL CLIENTE (Página Completa) ===== */

.mi-perfil-section {
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.profile-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.edit-profile-page-btn {
    background-color: #73C3D5;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.edit-profile-page-btn:hover {
    background-color: #5AA5B8;
}

/* Banner de Perfil */
.profile-banner {
    background: linear-gradient(135deg, #FF7E5F 0%, #FEB47B 100%);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-banner-content {
    position: relative;
    z-index: 1;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 1rem auto;
    border: 4px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-banner-info {
    flex: 1;
}

.profile-banner-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-banner-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

.profile-info-section {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 2rem;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.profile-info-title {
    font-size: 1.5rem;
    color: #2B4053;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.75rem;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem 2rem;
}

.profile-info-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-info-item {
    margin-bottom: 1rem;
}

.profile-info-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.3rem;
}

.profile-info-value {
    font-size: 1rem;
    color: #333;
    margin: 0;
    padding-left: 0.5rem;
    border-left: 3px solid #73C3D5;
}

/* Formulario de Edición */
.profile-edit-form-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-top: 2rem;
}

.profile-edit-form .form-group {
    margin-bottom: 1.5rem;
}

.profile-edit-form .form-label {
    font-size: 1rem;
    color: #2B4053;
    margin-bottom: 0.5rem;
    display: block;
}

.profile-edit-form .form-input,
.profile-edit-form select.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.profile-image-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.profile-preview-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.upload-image-btn {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.upload-image-btn:hover {
    background-color: #e0e0e0;
}

.profile-edit-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.profile-edit-form .cancel-btn {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-edit-form .cancel-btn:hover {
    background-color: #cccccc;
}

.profile-edit-form .save-btn {
    background-color: #73C3D5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-edit-form .save-btn:hover {
    background-color: #5AA5B8;
}

/* Responsive para perfil del cliente */
@media (max-width: 768px) {
    .profile-banner {
        padding: 1.5rem;
    }

    .profile-banner-name {
        font-size: 1.8rem;
    }

    .profile-info-section {
        padding: 1.5rem;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-edit-form-container {
        padding: 1.5rem;
    }

    .profile-edit-form .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .profile-edit-form .save-btn,
    .profile-edit-form .cancel-btn {
        width: 100%;
        justify-content: center;
    }
}

