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

body {
    height: 100vh;
    color: #BA1F00;
    font-family: 'Fustat', sans-serif;
    background-color: #0D0C0C;
    padding-top: 30px; 
    overflow-x: hidden;
    background-attachment: fixed;
}


html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}


main {
    flex: 1;
}


/* ------------- NAVBAR ------------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg,#202020, #0D0C0C);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 2px solid #BA1F00;
}

.logo img {
    height: 20px;
    margin-right: 10px;
}

.logo a {
    transition: all 0.2s;
}

.logo a:hover {
    filter: brightness(0) invert(1);
}

/* Menú hamburguesa en mobile */
.menu-toggle {
    font-size: 1rem;
    cursor: pointer;
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #BA1F00;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap; 
}
.nav-links .active-link{
    color: #E4DDDB;
}
.nav-links .active-link:hover{
    color: #BA1F00;
}
.nav-links a:hover {
    color: #E4DDDB;
}

/* ------------- MÉTODO ------------- */

/* Estilos generales */
.method-section {
    text-align: center;
    color: #E4DDDB;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative; 
    min-height: 100vh; 
}

.backgroundimage {
    position: absolute; 
    top: 0;
    left: -100px;
    height: 100%;
    object-fit: cover; 
    opacity: 0.1;
    z-index: -1;
}



/* Contenedor superior */
.method-header {
    max-width: 800px;
    width: 90%;
    margin: 0 auto 30px;
    
}

.method-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #BA1F00;
    text-decoration: underline;
    font-family: 'Archivo Black';
    margin-bottom: 20px;
}

.method-description {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}
.numbers{
    width: 100%;
    margin: 0;
    padding: 0;
}
.numbers img{
    width: 100%;
    max-width: 1400px;
}
/* Contenedor de los pasos */
.method-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1500px;

    margin: 0 auto;
    position: relative;
}

/* Estilos de cada paso */
.method-step {
    width: 18%;
    text-align: left ;
    position: relative;
    padding: 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}


.method-number{
    display: none;
}

.method-step h3{
    margin-bottom: 5px;
    text-align: center;
    color: #BA1F00;
}


.method-step:hover {
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0px 10px 20px rgba(255, 69, 0, 0.3); 
}
.method-step .method-number{
    transition: transform 0.6s ease, filter 0.5s ease;
}
.method-step:hover .method-number{
    transform: rotate(360deg);
    filter: brightness(1.5);
}




/* ------------- FOOTER ------------- */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    background: linear-gradient(0deg,#0D0C0C, #202020);
    border-top: 1px solid #BA1F00;
    justify-content: space-between;
    align-items: center;
}
footer img{
    width: 50px;
    height: 45px;
}
footer a {
    color: #BA1F00;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    
    
}
footer div img {
    width: 30px;
    height: 30px;
    margin-left: 10px;
}
footer a {
    transition: all 0.3s;
}

footer a:hover {
    filter: brightness(0) invert(1);
}
.contact{
    text-align: justify;
    display: flex;
    align-items: center;
    flex-direction: column;
}
.contact img{
    position: relative;
    top: 7px;
    margin-right: 10px;
}



@media (max-width: 1000px) {
    nav{
        background: #0D0C0C;
        border-bottom: 1px solid #BA1F00;
    }
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .nav-links {
        position: absolute;
        top: 40px;
        left: 0;
        width: 100%;
        background-color: #0D0C0C;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 20px 0;
        transform: translateY(-100%);
        transition: transform 0.5s ease-in-out;
        opacity: 0;
        pointer-events: none;
        border-bottom: 2px solid #BA1F00;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        margin: 10px 0;
    }
    
    .method-section{
        height: auto;
    }
    .backgroundimage{
        display: none;
    }
    .method-steps {
        flex-direction: column;
        align-items: center;
    }
    .method-number {
        display: block;
        width: 50px;
        height: 50px;
        background-color: #BA1F00;
        color: #E4DDDB;
        font-size: 1.5rem;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin: 0 auto 10px;
    }
    .numbers{
        display: none;
    }
    .method-step {
        width: 90%;
        margin-bottom: 20px;
    }



    footer div{
        display: none;
    }
    footer a{
        font-size: 0.875rem;

    }
    .contact a{
        font-size: 0;
        
    }
    
}