/* Importar fuente Poppins desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Reset de estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    min-height: 100dvh;
    width: 100%;
    display: grid;
    grid-template-rows: 70px auto 40px;
}

header{
    height: 70px;
    background: url(./fondo_az.jpg);
    background-position: center;
    background-size: cover;
    

    img{
        height: 70px;
    }

    p{
        color: white;
        font-size: 2rem;
        font-weight: 600;
        word-spacing: 5px;
        letter-spacing: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
}

main{
    padding: 10px;

    display: flex;
    align-items: center; 
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

.info-main{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    color:#013654;

    text-align: center;
}

.fases{
    width: 80%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;
    
    .line{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        border: 1px solid #013654;
    }

    .faseIndicator{
        background-color: white;
        border: 3px solid #013654;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3em;
        font-weight: 700;
        color: #013654;
        z-index: 1;

        transition: .3s ease all;

        &.finish{
            background-color: #013654;
            color: white;
        }
    }
}

.fasesContainer{
    width: 90%;
    max-width: 800px;
    min-height: 350px;
    margin-top: 25px;
    padding: 15px;

    .fase{
        display: none;
        height: 100%;
        width: 100%;

        h4, h2{
            text-align: center;
        }

        &.active{
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }
    }
}

.botonera{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    .btnSiguiente{
        background-color: #013654;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 15px;
        font-size: 1.1em;
        cursor: pointer;

        transition: .2s ease all;

        &:hover{
            background-color: #02509e;
        }
    }

    .btnAnterior{
        background-color: transparent;
        color: #013654;
        border: 2px solid #013654;
        padding: 10px 20px;
        border-radius: 15px;
        font-size: 1.1em;
        cursor: pointer;
        margin-right: 20px;
        transition: .2s ease all;


        &:hover{
            background-color: #013654;
            color: white;
        }
    }
}

iframe{
    margin-top: 30px;
    margin-bottom: 30px;
    min-height: 350px;
}

.botonesContainer{
    margin-top: 30px;
    margin-bottom: 30px;
    min-height: 350px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;

    button{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        width: 320px;
        height: 100px;
        font-size: 1.2rem;
        font-weight: 600;
        background-color: white;
        border: none;
        border-radius: 15px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        cursor: pointer;

        i{
            font-size: 1.3em;
        }
    }

    .btnInstrucciones{
        border: 2px solid #bc4749;
        color: white;
        background-color: #bc4749;

        transition: .2s ease all;

        &:hover{
            background-color: white;
            color: #bc4749;
        }
    }

    .btnEditable{
        border: 1px solid #003049;
        color: white;
        transition: .3s ease all;
        background-color: #003049;

        &:hover{
            background-color: white;
            color: #003049;
        }
    }
}

footer{
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background: url(./fondo_az.jpg);
    background-position: center;
    background-size: cover;
}

@media screen and (max-width: 800px) {
    .info-main h1{
        font-size: 1.5rem;
    }
    .info-main h2{
        font-size: 1.2rem;
        text-align: center;
    }

    header p{
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 800px) {
    .info-main h1{
        font-size: 1.2rem;
    }
    .info-main h2{
        font-size: 1rem;
        text-align: center;
    }

    header p{
        font-size: 1rem;
    }
}

@media screen and (max-width: 500px) {
    header img{
        display: none;
    }

    header{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    footer{
        p{
            font-size: .8rem;
        };
    }
}