/* Fuentes Western específicas */
@import url('https://fonts.googleapis.com/css2?family=Rye&family=UnifrakturCook:wght@700&family=Open+Sans:wght@300;400;600;700&display=swap');

/* Estilos tipográficos western */
.western-title {
    font-family: 'UnifrakturCook', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.western-subtitle {
    font-family: 'Rye', cursive;
    letter-spacing: 1px;
}

.wood-sign {
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #8B4513, #A0522D, #8B4513);
    border: 5px solid #5D2906;
    border-radius: 0;
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.5),
        5px 5px 15px rgba(0,0,0,0.4);
    transform: rotate(-1deg);
}

.wood-sign::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px solid #D4AF37;
    pointer-events: none;
}

.western-border {
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #8B4513, #D4AF37, #8B4513) 1;
    border-radius: 4px;
}

.text-gold {
    color: #D4AF37;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.text-leather {
    color: #8B4513;
}

.text-rust {
    color: #B7410E;
}

/* Efectos de texto western */
.text-emboss {
    color: #8B4513;
    text-shadow: 
        1px 1px 0px #F4EBD0,
        2px 2px 0px rgba(0,0,0,0.1);
}

.text-distressed {
    position: relative;
    color: #8B4513;
}

.text-distressed::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #B7410E;
    opacity: 0.3;
    clip-path: polygon(
        0% 0%, 100% 0%, 100% 100%, 0% 100%,
        0% 50%, 2% 52%, 4% 48%, 6% 52%,
        8% 48%, 10% 52%, 12% 48%, 14% 52%,
        16% 48%, 18% 52%, 20% 48%, 22% 52%,
        24% 48%, 26% 52%, 28% 48%, 30% 52%,
        32% 48%, 34% 52%, 36% 48%, 38% 52%,
        40% 48%, 42% 52%, 44% 48%, 46% 52%,
        48% 48%, 50% 52%, 52% 48%, 54% 52%,
        56% 48%, 58% 52%, 60% 48%, 62% 52%,
        64% 48%, 66% 52%, 68% 48%, 70% 52%,
        72% 48%, 74% 52%, 76% 48%, 78% 52%,
        80% 48%, 82% 52%, 84% 48%, 86% 52%,
        88% 48%, 90% 52%, 92% 48%, 94% 52%,
        96% 48%, 98% 52%, 100% 48%
    );
}

/* Iconos western */
.icon-sheriff::before {
    content: '👮';
}

.icon-horse::before {
    content: '🐎';
}

.icon-saloon::before {
    content: '🍻';
}

.icon-cactus::before {
    content: '🌵';
}

.icon-train::before {
    content: '🚂';
}

/* Botones con estilo western */
.btn-western-special {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    border: 3px solid #5D2906;
    color: #F4EBD0;
    position: relative;
    overflow: hidden;
    padding: 1rem 2rem;
    font-family: 'Rye', cursive;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-western-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.2),
        transparent
    );
    transition: left 0.6s;
}

.btn-western-special:hover::before {
    left: 100%;
}

.btn-western-special:hover {
    background: linear-gradient(45deg, #A0522D, #8B4513);
    border-color: #D4AF37;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.4);
}

/* Bordes decorativos */
.border-western-top {
    border-top: 5px solid transparent;
    border-image: linear-gradient(90deg, #8B4513, #D4AF37, #8B4513) 1;
}

.border-western-bottom {
    border-bottom: 5px solid transparent;
    border-image: linear-gradient(90deg, #8B4513, #D4AF37, #8B4513) 1;
}

/* Fondos con textura western */
.bg-wood {
    background-image: 
        linear-gradient(rgba(139, 69, 19, 0.8), rgba(139, 69, 19, 0.8)),
        url('../images/wood-texture.jpg');
    background-size: cover;
}

.bg-leather {
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 69, 19, 0.9), rgba(91, 41, 6, 0.9)),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(91, 41, 6, 0.3) 10px,
            rgba(91, 41, 6, 0.3) 20px
        );
}

.bg-sand {
    background: 
        linear-gradient(135deg, #F4EBD0 0%, #E8D9B5 100%),
        url('../images/sand-texture.png');
    background-blend-mode: overlay;
}

/* Efectos de sombra western */
.shadow-western {
    box-shadow: 
        5px 5px 0px rgba(139, 69, 19, 0.3),
        10px 10px 0px rgba(139, 69, 19, 0.2),
        15px 15px 0px rgba(139, 69, 19, 0.1);
}

.shadow-western-inset {
    box-shadow: 
        inset 3px 3px 5px rgba(0,0,0,0.3),
        inset -3px -3px 5px rgba(212, 175, 55, 0.2);
}

/* Animaciones western */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.flicker {
    animation: flicker 2s infinite;
}

@keyframes ride-in {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.ride-in {
    animation: ride-in 1s ease-out;
}

@keyframes spin-revolver {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin-revolver:hover {
    animation: spin-revolver 0.5s linear;
}