/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #faf8f5;
    color: #3d3632;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background-color: #f5ebe0;
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #5c4f47;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: #8b6f5c;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.nav-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown:hover .nav-arrow,
.nav-dropdown.open .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    padding: 0.5rem 0;
    z-index: 200;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent #fff;
}

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

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #5c4f47;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
    background-color: #f5ebe0;
    color: #c23a3a;
}

.logo {
    position: static;
    transform: none;
}

.logo img {
    height: 110px;
    width: auto;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #5c4f47;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Main Content */
.main-content {
    padding: 2.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Categories Section */
.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.category-card a {
    display: block;
}

.card-image {
    aspect-ratio: 3/4;
    overflow: hidden;
}

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

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

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    transition: transform 0.25s ease;
    outline: none !important;
    border: none;
    background: transparent;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus,
.whatsapp-float:focus-visible,
.whatsapp-float:active {
    outline: none !important;
    border: none;
    background: transparent;
    box-shadow: none;
    transform: scale(1.1);
}

.whatsapp-float svg {
    display: block;
}

.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.label-main {
    display: inline;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c23a3a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label-sub {
    display: inline;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c23a3a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background-color: #f5ebe0;
    padding: 3rem 2rem 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #3d3632;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d4c4b5;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5c4f47;
    font-size: 0.9rem;
}

.footer-section ul li svg {
    flex-shrink: 0;
    color: #8b6f5c;
}

.footer-section ul li a {
    color: #5c4f47;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #8b6f5c;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #e8ddd0;
    border-radius: 50%;
    color: #5c4f47;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #8b6f5c;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #d4c4b5;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #7a6b62;
}

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #5c4f47;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.popup-close:hover {
    background-color: #f5ebe0;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.popup-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #3d3632;
}

.popup-title p {
    font-size: 1rem;
    color: #7a6b62;
}

.popup-category {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #3d3632;
}

.popup-divider {
    height: 3px;
    background: linear-gradient(to right, #c23a3a, #e07a7a);
    margin-bottom: 1.5rem;
}

/* Size Table */
.size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.size-table th,
.size-table td {
    padding: 0.875rem 0.75rem;
    text-align: center;
    border: 1px solid #e5e0db;
}

.size-table th {
    background-color: #f5f0eb;
    font-weight: 600;
    color: #3d3632;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-table th.highlight,
.size-table td.highlight {
    background-color: #c95a5a;
    color: #fff;
    font-weight: 600;
}

.size-table tbody tr:nth-child(even) {
    background-color: #faf8f5;
}

.size-table tbody tr:hover {
    background-color: #f5ebe0;
}

.size-table tbody tr:hover td.highlight {
    background-color: #b84a4a;
}

/* Responsive Design */
@media (max-width: 992px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section ul li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
        position: relative;
    }

    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #f5ebe0;
        padding: 0.5rem 1.25rem 1.25rem;
        gap: 0;
        border-top: 1px solid #e0d5c8;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > li {
        padding: 0.8rem 0;
        border-bottom: 1px solid #e0d5c8;
    }

    .nav-links > li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background-color: #ede3d8;
        border-radius: 6px;
        padding: 0.25rem 0;
        margin-top: 0.5rem;
        min-width: unset;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown-menu li a {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .logo img {
        height: 65px;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .category-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .card-image {
        aspect-ratio: 3/4;
    }

    .category-card:nth-child(1) .card-image img {
        object-position: center bottom;
    }

    .category-card:nth-child(2) .card-image img {
        object-position: center top;
    }

    .label-main {
        font-size: 1.25rem;
    }

    .popup-content {
        padding: 1.5rem;
    }

    .popup-title h2 {
        font-size: 1.5rem;
    }

    .popup-category {
        font-size: 1.5rem;
    }

    .size-table {
        font-size: 0.8rem;
    }

    .size-table th,
    .size-table td {
        padding: 0.625rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 0.5rem;
    }

    .nav-links {
        gap: 2rem;
    }

    .size-table th,
    .size-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
}
