/* Variables CSS para la paleta de colores medieval */
:root {
    --blood-red: #4A0000;
    --dark-blood: #2B0000;
    --crimson: #8B0000;
    --golden-yellow: #D4AF37;
    --dark-gold: #8B7000;
    --bronze: #CD7F32;
    --black: #0F0F0F;
    --dark-gray: #1F1612;
    --lighter-gray: #3C342A;
    --stone-gray: #4A453E;
    --white: #F5F5DC;
    --parchment: #F5F5DC;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Ocultar todos los cursores por defecto */
}

body {
    font-family: 'Cinzel', 'Times New Roman', serif;
    background: 
        /* Textura de piedra medieval */
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 0, 0, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(220, 20, 60, 0.2) 0%, transparent 50%),
        /* Goteos de sangre en las paredes */
        linear-gradient(90deg, 
            rgba(139, 0, 0, 0.8) 0%, 
            rgba(26, 26, 26, 0.9) 3%, 
            rgba(42, 42, 42, 0.95) 10%,
            rgba(139, 0, 0, 0.3) 15%,
            rgba(26, 26, 26, 0.98) 20%,
            rgba(26, 26, 26, 0.98) 80%,
            rgba(139, 0, 0, 0.3) 85%,
            rgba(42, 42, 42, 0.95) 90%,
            rgba(26, 26, 26, 0.9) 97%,
            rgba(139, 0, 0, 0.8) 100%
        ),
        /* Textura de pared de piedra */
        repeating-linear-gradient(45deg,
            rgba(60, 60, 60, 0.1) 0px,
            rgba(60, 60, 60, 0.1) 2px,
            transparent 2px,
            transparent 4px
        );
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Partículas de sangre medievales */
.blood-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    cursor: none !important;
}

.blood-particles::before,
.blood-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 20px;
    background: linear-gradient(180deg, 
        var(--crimson) 0%, 
        var(--blood-red) 50%, 
        var(--dark-blood) 100%);
    border-radius: 50% 50% 80% 80%;
    animation: bloodDrip 12s infinite linear;
    box-shadow: 
        0 0 3px rgba(139, 0, 0, 0.8),
        inset 0 0 2px rgba(75, 0, 0, 0.9);
}

.blood-particles::before {
    left: 5%;
    animation-delay: 0s;
    box-shadow: 
        150px 0 linear-gradient(180deg, var(--crimson), var(--dark-blood)),
        300px 0 linear-gradient(180deg, var(--blood-red), var(--dark-blood)),
        450px 0 linear-gradient(180deg, var(--crimson), var(--blood-red)),
        600px 0 linear-gradient(180deg, var(--dark-blood), var(--crimson)),
        750px 0 linear-gradient(180deg, var(--blood-red), var(--dark-blood)),
        900px 0 linear-gradient(180deg, var(--crimson), var(--dark-blood));
}

.blood-particles::after {
    left: 15%;
    animation-delay: 6s;
    box-shadow: 
        200px 0 linear-gradient(180deg, var(--blood-red), var(--dark-blood)),
        400px 0 linear-gradient(180deg, var(--crimson), var(--blood-red)),
        600px 0 linear-gradient(180deg, var(--dark-blood), var(--crimson)),
        800px 0 linear-gradient(180deg, var(--blood-red), var(--dark-blood));
}

@keyframes bloodDrip {
    0% { 
        transform: translateY(-100vh) scale(0.8); 
        opacity: 0; 
    }
    5% { 
        opacity: 0.8; 
        transform: translateY(-90vh) scale(1);
    }
    95% { 
        opacity: 0.6; 
        transform: translateY(100vh) scale(1.2);
    }
    100% { 
        transform: translateY(110vh) scale(1.5); 
        opacity: 0; 
    }
}

/* Header medieval */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: 
        linear-gradient(135deg, 
            rgba(15, 15, 15, 0.98) 0%,
            rgba(31, 22, 18, 0.95) 50%,
            rgba(15, 15, 15, 0.98) 100%
        ),
        repeating-linear-gradient(90deg,
            rgba(139, 0, 0, 0.1) 0px,
            rgba(139, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 20px
        );
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 3px solid var(--dark-gold);
    box-shadow: 
        0 2px 10px rgba(139, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.3);
    cursor: none !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Cinzel Decorative', serif;
    background: linear-gradient(45deg, var(--golden-yellow), var(--crimson));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--crimson);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--parchment);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Cinzel', serif;
    cursor: none !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--crimson), var(--golden-yellow));
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--golden-yellow);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--crimson);
    transition: all 0.3s ease;
}

/* Hero Section Medieval */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: 
        /* Vetas de sangre en las paredes */
        radial-gradient(ellipse at top left, rgba(139, 0, 0, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at top right, rgba(75, 0, 0, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at bottom, rgba(139, 0, 0, 0.2) 0%, transparent 50%),
        /* Textura de pared de castillo */
        linear-gradient(135deg, 
            rgba(31, 22, 18, 0.95) 0%,
            rgba(60, 52, 42, 0.8) 25%,
            rgba(31, 22, 18, 0.9) 50%,
            rgba(42, 36, 30, 0.85) 75%,
            rgba(15, 15, 15, 0.98) 100%
        ),
        /* Grietas y manchas de sangre */
        repeating-linear-gradient(45deg,
            transparent 0px,
            transparent 3px,
            rgba(139, 0, 0, 0.1) 3px,
            rgba(139, 0, 0, 0.1) 4px
        ),
        repeating-linear-gradient(-45deg,
            transparent 0px,
            transparent 8px,
            rgba(75, 0, 0, 0.05) 8px,
            rgba(75, 0, 0, 0.05) 9px
        );
    overflow: hidden;
    cursor: none !important;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.word-1, .word-2, .word-3 {
    display: inline-block;
    animation: slideInFromLeft 1s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.word-1 {
    color: var(--crimson);
    animation-delay: 0.2s;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
}

.word-2 {
    color: var(--golden-yellow);
    animation-delay: 0.4s;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.word-3 {
    color: var(--white);
    animation-delay: 0.6s;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotateY(-90deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    line-height: 1.8;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: none !important;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--crimson), var(--blood-red));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--golden-yellow);
    border: 2px solid var(--golden-yellow);
}

.btn-secondary:hover {
    background: var(--golden-yellow);
    color: var(--black);
    transform: translateY(-2px);
}

/* Espadas cruzadas */
.swords-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    z-index: 1;
    opacity: 0.1;
}

.sword {
    position: absolute;
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, var(--golden-yellow), var(--dark-gold));
    top: 50%;
    left: 50%;
    transform-origin: center;
    animation: swordRotate 20s linear infinite;
}

.sword::before {
    content: '';
    position: absolute;
    right: -10px;
    top: -8px;
    width: 20px;
    height: 20px;
    background: var(--crimson);
    border-radius: 50%;
}

.sword-1 {
    transform: translate(-50%, -50%) rotate(45deg);
}

.sword-2 {
    transform: translate(-50%, -50%) rotate(-45deg);
    animation-direction: reverse;
}

@keyframes swordRotate {
    0% { transform: translate(-50%, -50%) rotate(45deg); }
    100% { transform: translate(-50%, -50%) rotate(405deg); }
}

/* Sección de características */
.features {
    padding: 80px 0;
    background: var(--dark-gray);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--crimson), var(--golden-yellow), var(--crimson));
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--golden-yellow), var(--crimson));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Fallback para JavaScript deshabilitado */
.no-js .feature-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.feature-card {
    background: 
        linear-gradient(135deg, 
            rgba(60, 52, 42, 0.9) 0%,
            rgba(42, 36, 30, 0.95) 100%
        );
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    cursor: none !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(212, 175, 55, 0.1),
        inset 0 -1px 0 rgba(139, 0, 0, 0.2);
    opacity: 1; /* Asegurar visibilidad por defecto */
    transform: translateY(0); /* Posición normal por defecto */
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, 
            rgba(139, 0, 0, 0.8) 0%, 
            rgba(212, 175, 55, 0.6) 100%
        );
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--golden-yellow);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.feature-card h3 {
    color: var(--golden-yellow);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--white);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--black);
    border-top: 2px solid var(--crimson);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--golden-yellow);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--crimson);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.5rem 1rem;
    background: var(--crimson);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--golden-yellow);
    color: var(--black) !important;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--lighter-gray);
    color: var(--white);
}

/* Responsive Design */
/* Tablet y pantallas medianas */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Dispositivos móviles */
@media (max-width: 768px) {
    /* Navegación móvil mejorada */
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: 
            linear-gradient(135deg, 
                rgba(15, 15, 15, 0.98) 0%,
                rgba(31, 22, 18, 0.95) 100%
            );
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        cursor: none !important;
        backdrop-filter: blur(10px);
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        width: 80%;
        text-align: center;
        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 8px;
        margin: 0.5rem 0;
        background: rgba(60, 52, 42, 0.3);
    }

    .nav-toggle {
        display: flex;
        cursor: none !important;
        z-index: 1001;
    }
    
    .nav-toggle span {
        width: 28px;
        height: 3px;
    }

    /* Hero section móvil */
    .hero {
        padding: 0 1rem;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 1rem;
        margin-top: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 18px 25px;
        font-size: 1rem;
        letter-spacing: 1px;
    }

    /* Características móvil */
    .features {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        margin: 0.5rem 0;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Footer móvil */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Efectos reducidos para móvil */
    .blood-particles {
        display: none;
    }
    
    .swords-container {
        display: none;
    }
    
    .feature-card::before {
        display: none;
    }
}

/* Dispositivos móviles pequeños */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 16px 20px;
        font-size: 0.9rem;
    }
    
    .nav-container {
        padding: 0.6rem 0.8rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
}

/* Landscape móvil */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 0;
    }
    
    .hero-content {
        margin-top: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn {
        width: auto;
        min-width: 180px;
    }
}

/* Animaciones adicionales */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.feature-card:hover .feature-icon {
    animation: pulse 0.6s ease-in-out;
}

/* Cursor personalizado medieval */
#custom-cursor {
    position: fixed !important;
    width: 24px !important;
    height: 24px !important;
    background: 
        radial-gradient(circle, 
            var(--golden-yellow) 0%, 
            var(--dark-gold) 40%, 
            var(--crimson) 70%, 
            var(--blood-red) 100%
        ) !important;
    border: 2px solid var(--dark-gold) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    mix-blend-mode: difference !important;
    transition: transform 0.1s ease !important;
    box-shadow: 
        0 0 10px rgba(212, 175, 55, 0.6),
        0 0 20px rgba(139, 0, 0, 0.4),
        inset 0 0 5px rgba(255, 215, 0, 0.3) !important;
}

#custom-cursor {
    display: block !important;
    visibility: visible !important;
}

/* Ocultar cursor en todos los elementos */
*, *:hover, *:active, *:focus {
    cursor: none !important;
}

a, button, .nav-link, .btn, .feature-card, .social-link, .nav-toggle {
    cursor: none !important;
}

a:hover, button:hover, .nav-link:hover, .btn:hover, .feature-card:hover, .social-link:hover {
    cursor: none !important;
}

/* Efectos adicionales medievales */
.hero-title, .section-title {
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(212, 175, 55, 0.3) !important;
}

