:root {
    --primary-color: #25324b; /* Gris azulado oscuro */
    --secondary-color: #e9e6e1; /* Beige */
    --accent-color: #bfa14a; /* Dorado */
    --background-color: #f6f7f9; /* Azul grisáceo claro */
    --text-color: #222b38;
    --card-shadow: 0 8px 24px rgba(40, 50, 80, 0.08);
    --gold: #bfa14a;
    --gradient-start: #e9e6e1;
    --gradient-end: #dbe2ef;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--background-color) 0%, #e9e6e1 100%);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 4rem 6rem 4rem;
    background: transparent;
    border-radius: 24px;
    box-shadow: 0 15px 30px rgba(40, 50, 80, 0.10);
    background-image: url('../img/wolf.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: relative;
}

.container::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gradient-end));
    border-radius: 2px;
    margin-bottom: 2rem;
}

h1 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 700;
}

h1::after {
    display: none;
}

.intro-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.language-switcher {
    position: relative;
    z-index: 1000;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.current-lang {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.current-lang:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.arrow-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: var(--gold);
}

.language-switcher.active .arrow-icon {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    list-style: none;
    padding: 5px 0;
    z-index: 1001;
    min-width: 150px;
    text-align: center;
}

.lang-options.hidden {
    display: none;
}

.lang-options li {
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--primary-color);
    transition: background-color 0.2s;
}

.lang-options li:hover {
    background-color: rgba(191,161,74,0.1);
}

/* Remove old .lang-select styles */
.lang-select {
    display: none; /* Hide the original select element */
}

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

.category-card {
    background: rgba(255,255,255,0.55);
    border-radius: 18px;
    padding: 1.7rem 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    border: 1.5px solid rgba(191,161,74,0.10);
    position: relative;
    backdrop-filter: blur(6px);
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), var(--gradient-end));
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 20px 40px rgba(40, 50, 80, 0.13);
    border-color: var(--gold);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.45rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.category-card h2::after {
    content: '▼';
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: var(--gold);
}

.category-card.active h2::after {
    transform: rotate(180deg);
}

.buttons-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.18rem 0;
    justify-content: flex-start;
    align-items: stretch;
    max-height: 0;
    transition: all 0.3s ease;
    width: 100%;
}

.category-card.active .buttons-container {
    max-height: 2000px;
    margin-top: 1.2rem;
}

.sub-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: linear-gradient(135deg, rgba(191,161,74,0.55), rgba(37,50,75,0.55));
    color: var(--primary-color);
    border: 1.5px solid var(--gold);
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(40, 50, 80, 0.07);
    backdrop-filter: blur(2px);
    margin-bottom: 0.08rem;
}

.sub-button:last-child {
    margin-bottom: 0;
}

.sub-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(191,161,74,0.18), transparent);
    transition: 0.5s;
}

.sub-button:hover::before {
    left: 100%;
}

.category-card.active .sub-button {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.sub-button:hover {
    background: linear-gradient(135deg, rgba(191,161,74,0.75), rgba(37,50,75,0.75));
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 18px rgba(40, 50, 80, 0.13);
}

.sub-button-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.grand-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0.3rem 0 0.3rem 1.5rem;
    margin: 0.2rem 0 0.2rem 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    position: static;
    left: unset;
    top: unset;
    z-index: auto;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s, transform 0.25s;
    max-height: 0;
    opacity: 0;
    transform: translateX(-30px);
    overflow: hidden;
    pointer-events: none;
}

.sub-button-wrapper.active .grand-buttons-container {
    max-height: 500px;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.grand-button {
    background: linear-gradient(135deg, rgba(191,161,74,0.10), rgba(37,50,75,0.10));
    color: var(--primary-color);
    border: 1px solid rgba(191, 161, 74, 0.15);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: 100%;
    text-align: left;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    pointer-events: auto;
}

.grand-button:last-child {
    margin-bottom: 0;
}

.grand-button:hover {
    background: linear-gradient(135deg, rgba(191,161,74,0.75), rgba(37,50,75,0.75));
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 18px rgba(40, 50, 80, 0.13);
}

/* 响应式设计断点 */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    .category-card h2 {
        font-size: 1.8rem;
    }
    
    .sub-button {
        padding: 1.2rem 1.8rem;
        font-size: 1.1rem;
    }
    
    .grand-buttons-container {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .grand-button {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 1100px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 2rem;
        max-width: 900px;
    }
    
    .grand-buttons-container {
        padding: 0.7rem;
        gap: 0.6rem;
    }
    
    .grand-button {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 700px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .container {
        padding: 3rem 0.8rem 4rem 0.8rem;
    }
    
    h1 {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }
    
    .category-card {
        padding: 1.5rem 1.2rem;
    }
    
    .category-card h2 {
        font-size: 1.3rem;
    }
    
    .sub-button {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }
    
    .buttons-container {
        gap: 0.15rem 0;
    }
    
    .language-switcher {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 2.5rem 0.5rem 3rem 0.5rem;
        border-radius: 16px;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .category-card {
        padding: 1.2rem 1rem;
    }
    
    .category-card h2 {
        font-size: 1.15rem;
    }
    
    .sub-button {
        font-size: 0.9rem;
        padding: 0.7rem 0.9rem;
    }
    
    .grand-buttons-container {
        gap: 0.15rem;
    }
    
    .grand-button {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    .language-switcher {
        margin-bottom: 1rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .categories-grid {
        gap: 1rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-card h2 {
        font-size: 1.2rem;
    }
    
    .sub-button {
        padding: 0.7rem 1rem;
    }
    
    .grand-buttons-container {
        padding: 0.4rem;
        gap: 0.3rem;
        margin-top: 0.4rem;
    }
    
    .grand-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ffffff;
        --secondary-color: #2c3e50;
        --background-color: #1a1a2e;
        --text-color: #f8f9fa;
        --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    body {
        background: linear-gradient(135deg, var(--background-color) 0%, #16213e 100%);
    }
    
    .container {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .category-card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sub-button {
        background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    }
    
    .sub-button:hover {
        background: linear-gradient(135deg, var(--accent-color), #2c3e50);
    }
    
    .grand-buttons-container {
        background: rgba(44, 62, 80, 0.95);
        border-color: rgba(191, 161, 74, 0.3);
    }
    
    .grand-button {
        background: linear-gradient(135deg, rgba(191,161,74,0.15), rgba(37,50,75,0.15));
        border-color: rgba(191, 161, 74, 0.2);
        color: var(--text-color);
    }
    
    .grand-button:hover {
        background: linear-gradient(135deg, rgba(191,161,74,0.75), rgba(37,50,75,0.75));
        color: var(--gold);
        border-color: var(--gold);
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 6px 18px rgba(40, 50, 80, 0.13);
    }
}

.instagram-button {
    position: fixed;
    bottom: 60px;
    right: 5px;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.instagram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    filter: brightness(1.1);
}

.instagram-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.instagram-text {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.instagram-icon {
    font-size: 1.2rem;
}

@media (max-width: 700px) {
    .instagram-button {
        bottom: 60px;
        right: 5px;
        padding: 0.7rem 1rem;
    }

    .instagram-text {
        font-size: 0.8rem;
    }

    .instagram-icon {
        font-size: 1rem;
    }

    .instagram-content {
        gap: 5px;
    }
}

.whatsapp-button {
    position: fixed;
    right: 5px;
    bottom: 5px;
    z-index: 9999;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #25d366 60%, #128c7e 100%);
    color: #fff;
    border: none;
    border-radius: 2.2em;
    box-shadow: 0 4px 16px rgba(40, 50, 80, 0.18);
    padding: 0.7em 1.5em 0.7em 1.2em;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    outline: none;
}

.whatsapp-button:hover {
    background: linear-gradient(135deg, #128c7e 60%, #25d366 100%);
    box-shadow: 0 8px 24px rgba(40, 50, 80, 0.22);
    transform: translateY(-2px) scale(1.04);
    color: #fff;
    text-decoration: none;
}

.whatsapp-content {
    display: flex;
    align-items: center;
    gap: 0.7em;
}

.whatsapp-text {
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 1px;
    margin-right: 0.3em;
}

.whatsapp-icon {
    font-size: 1.5em;
    margin-left: 0.1em;
}

@media (max-width: 700px) {
    .whatsapp-button {
        right: 5px;
        bottom: 5px;
        padding: 0.6em 1.1em 0.6em 1em;
        font-size: 1rem;
    }
    .whatsapp-text {
        font-size: 1em;
    }
    .whatsapp-icon {
        font-size: 1.2em;
    }
    .whatsapp-content {
        gap: 0.7em;
    }
}

.floating-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    z-index: 99999;
    font-size: 8vw;
    color: rgba(40, 50, 80, 0.25);
    font-weight: 900;
    letter-spacing: 0.2em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    text-align: center;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    animation: watermark-float 8s ease-in-out infinite alternate;
}

@keyframes watermark-float {
    0% {
        transform: translate(-50%, -50%) rotate(-25deg);
        opacity: 0.35;
    }
    50% {
        transform: translate(-40%, -60%) rotate(-20deg);
        opacity: 0.30;
    }
    100% {
        transform: translate(-52%, -48%) rotate(-30deg);
        opacity: 0.35;
    }
}

@media (max-width: 700px) {
    .floating-watermark {
        font-size: 8vw;
        letter-spacing: 0.1em;
    }
} 