:root {
    --main-red: #B81C1C;
    --text-white: #FFFFFF;
    --text-black: #000000;
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Montserrat', 'sans-serif';
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    height: 100%;
    background-color: var(--text-black);
    font-family: var(--font-primary);
    color: var(--text-white);
}

.bg-black {
    background-color: var(--text-black);
    color: var(--text-white);
}

/* ===== ENCABEZADO ===== */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
    position: relative;
    background-image: url(images/fuego.svg), url(images/fondorojo.jpg);
    background-size: 652px, cover;
    background-position: bottom, center;
    background-repeat: repeat-x, no-repeat;
}

.header__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.header__logo-img {
    width: 576px;
    max-width: 65vw;
    height: auto;
    display: block;
}

/* ===== CONTENEDOR PRINCIPAL (SECCIÓN BLANCA) ===== */
.main-container {
    margin: 0 auto;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
}

.call-to-action {
    flex: 1; /* Ocupa el doble de espacio que el sidebar */
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
    align-self: stretch;
    height: auto;
}

.call-to-action__title {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    color: #e30614;    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

.call-to-action__dates {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.call-to-action__text {
    font-size: 1rem;
    line-height: 1.6;
    font-family: sans-serif;
    color: var(--text-white);
}

.sidebar {
    flex: 1;
    width: 100%;
    background-color: #7b2cbf;
    box-sizing: border-box;
    align-self: stretch;
    height: auto;
    padding: 2rem 2rem 2rem 4rem;
}

aside{
    background-image: url(images/fuego2.png);
    background-repeat: repeat-y;
    background-position: left bottom;
    background-position-x: -7.5px;
    background-size: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.rules__title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-white);
    text-align: center;
        font-family: "Roboto Condensed", sans-serif;

}
.sidebar-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.rules__button {   
    padding: 0.75rem;
    margin: 1rem 0;
    text-decoration: none;
    color: var(--text-black);
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
    height: 40px;
    display: block;
    text-align: center;
    background-position-x: center;
    background-image: url(images/pleca2.png);
    background-size: 350px;
    background-repeat: no-repeat;

}
.rules__button2 {  
    padding: 5px 27px;
    margin: 1rem auto;
    text-decoration: none;
    color: var(--text-white);
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
    width: auto;
    max-width: none;
    height: auto;
    display: inline-block;
    text-align: center;
    border-radius: 30px;
    background-color: #070707;
    cursor: pointer;

}

.social {
    margin-top: 2rem;
}

.social__icon {
    width: 40px;
    margin-right: 0.5rem;
}

.creature {
    margin-top: 1rem;
}

/* Reemplaza los estilos anteriores de creature__img */
.diablo-container {
    position: absolute;
    width: 60%;
    max-width: 380px;
    height: 100%;
    left: 0;
    bottom: 0px;
    background-image: url(images/diablo.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    user-select: none;
    pointer-events: none;
}

/* ===== SECCIÓN DE CATEGORÍAS ===== */
.categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2rem;
}

.categories-image {
    flex: 1;
    width: 45%;
}

.categories-content {
    flex: 1;
    width: 45%;
    text-align: center;
}

.categories-title-image {
    display: block;
    max-width: 100%;
    width: 420px;
    height: auto;
    margin: 0 0 1.5rem 0;
}

.categories {
    padding: 2rem;
    text-align: center;
}

.categories__title {
    font-family: 'Roboto Condensed';    font-weight: 900;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.categories__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.categories__item {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-white);
}

/* ===== PIE DE PÁGINA ===== */
.footer {
    position: relative; /* Asegura que el contenedor sea relativo para el posicionamiento absoluto */
    overflow: visible; /* Permite que el diablo se muestre fuera de los límites del footer */
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background-color: #1c1819;
}

.footer__logo img {
    width: 100px;
}

.footer__text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 20px;
}

.footer__column {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.edicion-logo {
    max-width: 42%;
    
}

/* ===== DISEÑO RESPONSIVO ===== */
@media (max-width: 768px) {
    .header__logo-img {
        width: 403px;
    }

    .call-to-action__title {
        font-size: 2.5rem;
    }
    .main-content {
        flex-direction: column;
    }
    .edicion-logo {
        max-width: 84%;
        
    }

    .categorias {
        flex-direction: column;
        align-items: center;
    }

    .categories-image,
    .categories-content {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .diablo-container {
        display: none;
    }

    .footer__column {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .footer__column img {
        margin: 0 auto 10px auto !important;
        display: block;
    }
    .footer__column p {
        margin: 0 !important;
    }
}

/* ===== DISEÑO RESPONSIVO ===== */
@media (max-width: 200px) {
    .call-to-action__title {
        line-break: anywhere;
    }
}

/* ===== CONTACT MODAL ===== */
.contact-btn {
    background-color: #7b2cbf;
    border-radius: 30px;
    padding: 5px 27px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    display: inline-block;
}

.contact-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.contact-modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    padding: 30px 20px;
    position: relative;
    margin: auto;
}

.contact-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
}

.contact-form-submit {
    background: red;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 0;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.contact-form-submit:hover {
    background: #b81c1c;
}

#openContactModal{
    font-size: 1.5rem;
}