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

body{
    font-family: Arial, sans-serif;
    background: white;
    color: #111;
    padding-top: 0;
}

.btn-volver{

    position: fixed;

    top: 30px;
    left: 30px;

    width: 220px;
    height: 55px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: rgb(39, 45, 79);

    color: white;

    text-decoration: none;

    font-weight: bold;

    border-radius: 10px;

    transition: 0.4s ease;

    z-index: 999;
}

.btn-volver:hover{

    color: orange;

    transform: scale(1.08);
}

/* HERO */

.hero-libro{
    width: 100%;
    /* min-height: 100vh; */

    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 🔥 clave */

    padding: 140px 5% 80px 5%; /* 👈 esto sustituye el “empuje” visual */

    background: white;
    gap: 0px;
}

.hero-texto{
    width: 50%;
    text-align: left;
    padding-top: 20px;
}

.hero-imagen{
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 🔥 importante */
    
}

.hero-texto h1{
    font-size: 60px;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-texto p{
    font-size: 22px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-hero{
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 220px;
    height: 60px;

    background-color: rgb(39, 45, 79);
    color: white;

    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;

    transition: 0.3s ease;
}

.btn-hero:hover{

    color: orange;

    transform: scale(1.08);
}



/* 🔥 CLAVE: lo empuja a la izquierda */
.hero-texto .btn-hero{
    margin-right: auto;
}


/* CONTENEDOR IMAGEN */

.zoom-container{
    position: relative;
    width: 420px;
}

#imagenZoom{
    width: 100%;
    display: block;
    border-radius: 12px;
}

/* LUPA */

#zoomLens{
    position: absolute;
    width: 180px;
    height: 130px;
    border: 2px solid orange;
    background: rgba(255,255,255,0.25);
    display: none;
    pointer-events: none;
    z-index: 5;
}

/* ZOOM RESULT (FUERA) */

#zoomResult{

    position: fixed;

    width: 700px;      /* igual que imagen */
    height: 250px;     /* mitad como pediste */

    border-radius: 12px;

    border: 3px solid rgb(39, 45, 79);

    background-repeat: no-repeat;

    background-color: white;

    display: none;

    box-shadow: 0 10px 25px rgba(0,0,0,0.25);

    z-index: 9999;

    pointer-events: none;
}

.hero-imagen img{
    width: 420px;
}

& #tituloformatos{

        width: 100%;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 50px;
        background-color: white;
        


        & p{
            font-size: 40px;
            font-weight: bold;
            display: inline-block; /* se ajusta al texto */
            
            
        }

        & p::after {
        content: "";
        display: block;
        width: 50%;              /* 🔥 aquí controlas el ancho de la línea */
        height: 2px;             /* grosor de la línea */
        background-color: black; /* color de la línea */
        margin: 2px auto 0;      /* la centra debajo del texto */
        margin-top: 20px;
        
        }
        
}

/* FORMATOS */

.formatos{
    width: 100%;
    height: 850px;
    padding: 100px 5%;
    background: white;
}

.formatos h2{
    text-align: center;
    font-size: 45px;
    margin-bottom: 70px;
}

.contenedor-formatos{
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.formato{
    width: 320px;
    /* background: white; */

    border-radius: 15px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

    transition: 0.3s ease;

    text-align: center;

    padding-bottom: 30px;
}


.formato img{
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.formato h3{
    margin-top: 25px;
    margin-bottom: 15px;

    font-size: 24px;
}

.formato p{
    padding: 0 20px;

    color: #666;
    line-height: 1.5;
}

.flip-libro{

    position: relative;

    width: 100%;
    height: 420px;

    overflow: hidden;

    border-radius: 12px;

    cursor: pointer;
}

.flip-libro img{

    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;

    top: 0;
    left: 0;

    transition: opacity 0.5s ease;
}

/* PORTADA visible */

.flip-libro .portada{
    opacity: 1;
}

/* CONTRAPORTADA oculta */

.flip-libro .contraportada{
    opacity: 0;
}

/* HOVER */

.flip-libro:hover .portada{
    opacity: 0;
}

.flip-libro:hover .contraportada{
    opacity: 1;
}



.btn-amazon{

    width: 85%;
    height: 55px;

    margin: 25px auto 0 auto;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: rgb(39, 45, 79);

    color: white;

    text-decoration: none;

    font-weight: bold;
    font-size: 16px;

    border-radius: 10px;

    transition: 0.4s ease;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-amazon:hover{

    color: orange;

    transform: scale(1.08);
}

/* DESCRIPCIÓN */

& #titulodescricion{

        width: 100%;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 50px;
        background-color: white;
        


        & p{
            font-size: 40px;
            font-weight: bold;
            display: inline-block; /* se ajusta al texto */
            
            
        }

        & p::after {
        content: "";
        display: block;
        width: 50%;              /* 🔥 aquí controlas el ancho de la línea */
        height: 2px;             /* grosor de la línea */
        background-color: black; /* color de la línea */
        margin: 2px auto 0;      /* la centra debajo del texto */
        margin-top: 20px;
        
        }
        
}

.descripcion-libro p strong {
    display: inline-block;
    margin-left: 40px;
    /* Opcional: si quieres que el texto de después no se pegue mucho */
    margin-right: 5px; 
}

.descripcion-libro{
    width: 100%;
    /* padding: 100px 5%; */

    text-align: center;
    height: 660px;
    background: white;
    margin-top: 70px;
}

.descripcion-libro .cierre-final {
    margin-top: 34px; /* Un poco más de espacio arriba para separar */
    font-style: italic; /* La cursiva le da un tono de reflexión/conclusión */
    border-top: 1px solid #eee; /* Una línea muy sutil encima */
    padding-top: 20px;
    /* text-align: center; */ /* Centrarla queda muy bien para un cierre */
    font-weight: 500;
    color: #333; /* Un gris un poco más oscuro para que destaque */
}

.descripcion-libro h2{
    font-size: 40px;
    margin-bottom: 40px;
}

.descripcion-libro p{
    max-width: 1500px;
    text-align: start;

    margin: 20px auto;

    font-size: 20px;
    line-height: 1.8;

    color: #555;
}

/* CTA FINAL */

& #tituloctafinal{

        width: 100%;
        height: 150px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 50px;
        background-color: white;
        


        & p{
            font-size: 40px;
            font-weight: bold;
            display: inline-block; /* se ajusta al texto */
            
            
        }

        & p::after {
        content: "";
        display: block;
        width: 50%;              /* 🔥 aquí controlas el ancho de la línea */
        height: 2px;             /* grosor de la línea */
        background-color: black; /* color de la línea */
        margin: 2px auto 0;      /* la centra debajo del texto */
        margin-top: 20px;
        
        }
        
}

.cta-final{
    margin-top: 30px;
    width: 100%;
    height: 100px;
    /* padding: 100px 5%; */
    background-color: white;
    text-align: center;
}

.cta-final h2{
    font-size: 45px;
    margin-bottom: 40px;
}

.cta-final a{
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 320px;
    height: 70px;

    background-color: rgb(39, 45, 79);
    color: white;

    text-decoration: none;

    font-size: 20px;
    font-weight: bold;

    border-radius: 10px;

    transition: 0.3s ease;
}

.cta-final a:hover{
    color: orange;

    transform: scale(1.08);
}



/* RESPONSIVE */

@media (max-width: 431px) and (orientation: portrait){

    body{
        overflow-x: hidden;
    }

    /* BOTÓN VOLVER */

    .btn-volver{

        width: 160px;
        height: 45px;

        top: 15px;
        left: 15px;

        font-size: 13px;

        border-radius: 8px;
    }

    /* HERO */

    .hero-libro{

        height: auto;

        flex-direction: column;

        padding: 100px 20px 40px 20px;

        text-align: center;
    }

    .hero-texto{

        width: 100%;
    }

    .hero-texto h1{

        font-size: 34px;

        line-height: 1.15;

        margin-bottom: 20px;
    }

    .hero-texto p{

        font-size: 18px;

        line-height: 1.6;

        margin-bottom: 30px;
    }

    .btn-hero{

        width: 200px;
        height: 55px;

        font-size: 15px;
    }

    /* IMAGEN HERO */

    .hero-imagen{

        width: 100%;

        margin-top: 40px;
    }

    .zoom-container{

        pointer-events: none;
    }

    #imagenZoom{

        width: 100%;
    }

    .hero-imagen img{

        width: 100%;
    }

    /* LENS */

    #zoomLens{

        display: none;
    }

    /* ZOOM RESULT */

    #zoomResult{

        display: none;
    }

    /* TITULOS */

    #tituloformatos,
    #titulodescricion,
    #tituloctafinal{

        height: auto;

        padding: 0 20px;

        margin-top: 40px;

        text-align: center;
    }

    #tituloformatos p,
    #titulodescricion p,
    #tituloctafinal p{

        font-size: 28px;

        line-height: 1.3;
    }

    #tituloformatos p::after,
    #titulodescricion p::after,
    #tituloctafinal p::after{

        margin-top: 14px;
    }

    /* FORMATOS */

    .formatos{

        height: auto;

        padding: 50px 20px;
    }

    .formatos h2{

        font-size: 32px;

        margin-bottom: 40px;
    }

    .contenedor-formatos{

        flex-direction: column;

        align-items: center;

        gap: 40px;
    }

    .formato{

        width: 100%;

        max-width: 340px;

        padding-bottom: 25px;
    }

    .flip-libro{

        height: 380px;
    }

    .flip-libro img{

        height: 100%;
    }

    .formato h3{

        font-size: 22px;

        margin-top: 20px;
    }

    .formato p{

        font-size: 16px;

        line-height: 1.6;
    }

    /* BOTONES AMAZON */

    .btn-amazon{

        width: 90%;

        height: 52px;

        font-size: 14px;

        margin-top: 20px;
    }

    /* DESCRIPCIÓN */

    .descripcion-libro{

        height: auto;

        padding: 0 20px 40px 20px;

        margin-top: 40px;
    }

    .descripcion-libro h2{

        font-size: 30px;

        margin-bottom: 25px;
    }

    .descripcion-libro p{

        font-size: 17px;

        line-height: 1.8;

        text-align: left;
    }

    .descripcion-libro p strong{

        margin-left: 0;
    }

    .descripcion-libro .cierre-final{

        margin-top: 30px;

        padding-top: 20px;

        font-size: 17px;
    }

    /* CTA FINAL */

    .cta-final{

        height: auto;

        padding: 20px 20px 60px 20px;
    }

    .cta-final h2{

        font-size: 30px;

        line-height: 1.3;

        margin-bottom: 30px;
    }

    .cta-final a{

        width: 100%;

        max-width: 320px;

        height: 60px;

        font-size: 16px;
    }

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

    .hero-texto{
        width: 100%;
        margin-bottom: 60px;
    }

    .hero-texto h1{
        font-size: 42px;
    }

    .hero-texto p{
        font-size: 20px;
    }

    .hero-imagen{
        width: 100%;
    }

    .hero-imagen img{
        width: 80%;
        max-width: 350px;
    }

    .formatos h2,
    .descripcion-libro h2,
    .cta-final h2{
        font-size: 34px;
    }


}



  
