/* ==================== BASE COMPARTIDA ==================== */

/* --- Roller automático --- */

#rollerAuto {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#rollerAuto .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fadeSlide 20s infinite;
}

#rollerAuto .slide:nth-child(1) { animation-delay: 0s; opacity: 1; }
#rollerAuto .slide:nth-child(2) { animation-delay: 5s; }
#rollerAuto .slide:nth-child(3) { animation-delay: 10s; }
#rollerAuto .slide:nth-child(4) { animation-delay: 15s; }

@keyframes fadeSlide {
    0%   { opacity: 1; }
    20%  { opacity: 1; }
    25%  { opacity: 0; }
    95%  { opacity: 0; }
    100% { opacity: 1; }
}

#rollerAuto .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Card principal --- */

#cardLanding {
    background-color: var(--color-fondo);
    text-align: center;
    margin: 0 auto;
}

#textoLanding {
    line-height: 1.4;
    color: var(--color-gris-texto);
    margin: 0 0 16px 0;
}

#btnCrearPerfil {
    display: inline-block;
    background-color: var(--color-verde);
    color: white;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
}

#btnCrearPerfil:hover {
    opacity: 0.88;
}

/* --- Sección ¿Cómo funciona? --- */

#comoFunciona {
    background-color: white;
    margin: 0 auto;
}

#titComoFunciona {
    color: var(--color-verde);
    margin: 0 0 12px 0;
}

.paso {
    display: flex;
    align-items: flex-start;
}

.numeroPaso {
    border-radius: 50%;
    background-color: var(--color-verde);
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.textoPaso {
    display: flex;
    flex-direction: column;
}

.textoPaso strong {
    color: var(--color-gris-texto);
}

.textoPaso span {
    color: var(--color-gris-texto);
}

.textoPrivado {
    color: var(--color-verde);
}


/* ==================== DESKTOP (body.dk) ==================== */

body.dk #subtitulo {
    white-space: nowrap;
    font-size: 70%;
}

body.dk #rollerAuto {
    height: 320px;
}

body.dk #cardLanding {
    max-width: 600px;
    margin-top: 30px;
    padding: 28px 20px 32px;
    border-radius: 8px;
}

body.dk #textoLanding {
    font-size: 145%;
    margin-bottom: 24px;
}

body.dk #btnCrearPerfil {
    font-size: 110%;
    padding: 14px 36px;
}

body.dk #comoFunciona {
    max-width: 600px;
    margin-top: 16px;
    padding: 22px 32px;
    border-radius: 8px;
}

body.dk #titComoFunciona {
    font-size: 112%;
}

body.dk .paso {
    margin-bottom: 18px;
    gap: 14px;
}

body.dk .numeroPaso {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 105%;
    margin-top: 2px;
}

body.dk .textoPaso {
    gap: 4px;
}

body.dk .textoPaso strong {
    font-size: 100%;
}

body.dk .textoPaso span {
    font-size: 90%;
}


/* ==================== MÓVIL (body.mb) ==================== */

body.mb #trCabecera {
    height: auto;
    min-height: 47px;
    padding-top: 8px;
    padding-bottom: 8px;
}

body.mb #titulo {
    margin-top: 0;
}

body.mb #subtitulo {
    margin-top: 4px;
    min-height: 0;
    line-height: 1.4;
    font-size: 73%;
}

body.mb #rollerAuto {
    height: 160px;
}

body.mb #cardLanding {
    width: 88%;
    padding: 14px 16px 18px;
    margin-top: 8px;
    border-radius: 6px;
}

body.mb #textoLanding {
    font-size: 115%;
    margin-bottom: 14px;
}

body.mb #btnCrearPerfil {
    font-size: 105%;
    padding: 11px 30px;
}

body.mb #comoFunciona {
    width: 88%;
    margin-top: 8px;
    padding: 12px 16px 14px;
    border-radius: 6px;
}

body.mb #titComoFunciona {
    font-size: 100%;
    margin-bottom: 10px;
}

body.mb .paso {
    margin-bottom: 10px;
    gap: 12px;
    align-items: center;
}

body.mb .numeroPaso {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 95%;
}

body.mb .textoPaso {
    gap: 2px;
}

body.mb .textoPaso strong {
    font-size: 95%;
}

body.mb .textoPaso span {
    font-size: 83%;
}


/********** MEDIA QUERIES - MÓVIL **************************************/

@media (max-width: 330px) and (orientation: portrait) {
    body.mb #rollerAuto {
        height: 120px;
    }
    body.mb #cardLanding {
        padding: 10px 14px 14px;
    }
    body.mb #textoLanding {
        font-size: 105%;
    }
    body.mb #comoFunciona {
        padding: 10px 14px;
    }
}
