/* =====================================================
       PAGINA LIBRO
    ===================================================== */

    .libro-page {

        max-width: 1150px;

        margin: 0 auto;

        padding: 25px 5vw 100px;
    }


    /* =====================================================
       CABECERA
    ===================================================== */

    .libro-header {

        text-align: center;

        margin-bottom: 45px;
    }


    .libro-label {

        display: inline-flex;

        align-items: center;

        gap: 14px;

        margin-bottom: 18px;

        font-family:
            Arial,
            Helvetica,
            sans-serif;

        font-size: 0.68rem;

        font-weight: 600;

        letter-spacing: 3px;

        text-transform: uppercase;

        color: #777;
    }


    .libro-label::before,
    .libro-label::after {

        content: "";

        width: 35px;

        height: 1px;

        background: #222;
    }


    .libro-header h1 {

        margin: 0;

        font-family:
            "Cormorant Garamond",
            Georgia,
            serif;

        font-size: 2.2rem;

        font-weight: 500;

        color: #111;
    }


    /* =====================================================
       LIBRO
    ===================================================== */

    .libro-presentacion {
		display: grid;

		grid-template-columns: 48% 52%;

		align-items: start;

		gap: 70px;

		max-width: 1100px;

		margin: 0 auto;
	}


    /* =====================================================
       PORTADA
    ===================================================== */

    .libro-portada {

        position: relative;

        width: 100%;

        max-width: 430px;

        aspect-ratio: 2 / 3;

        margin: 0 auto;

        overflow: hidden;

        background: #222;

        box-shadow:
            15px 18px 40px
            rgba(0, 0, 0, 0.20);
    }


    .libro-portada img {

        position: absolute;

        inset: 0;

        width: 100%;

        height: 100%;

        object-fit: cover;

        filter:
            grayscale(100%)
            contrast(1.08);

        display: block;
    }


    /* Capa ligeramente oscura */

    .libro-portada::after {

        content: "";

        position: absolute;

        inset: 0;

        background:
            linear-gradient(
                to bottom,
                rgba(0,0,0,0.15),
                rgba(0,0,0,0.45)
            );

        pointer-events: none;
    }


    /* =====================================================
       TEXTO SOBRE LA PORTADA
    ===================================================== */

    .libro-portada-texto {

        position: absolute;

        z-index: 2;

        inset: 0;

        padding: 55px 45px;

        display: flex;

        flex-direction: column;

        justify-content: space-between;

        text-align: center;

        color: white;
    }


    .libro-portada-superior {

        font-family:
            Arial,
            Helvetica,
            sans-serif;

        font-size: 0.6rem;

        letter-spacing: 4px;

        text-transform: uppercase;
    }


    .libro-portada-titulo {

        margin: 0;

        font-family:
            "Cormorant Garamond",
            Georgia,
            serif;

        font-size:
            clamp(2.8rem, 5vw, 4.5rem);

        font-weight: 500;

        line-height: 0.88;

        text-transform: uppercase;
    }


    .libro-portada-subtitulo {

        margin-top: 25px;

        font-family:
            "Cormorant Garamond",
            Georgia,
            serif;

        font-size: 1.1rem;

        font-style: italic;

        line-height: 1.3;
    }


    .libro-portada-autor {

        font-family:
            "Cormorant Garamond",
            Georgia,
            serif;

        font-size: 1.3rem;

        letter-spacing: 1px;
    }


    /* =====================================================
       INFORMACION
    ===================================================== */

    .libro-info {

        max-width: 520px;
    }


    .libro-info h2 {

        margin: 0 0 20px;

        font-family:
            "Cormorant Garamond",
            Georgia,
            serif;

        font-size: 2.8rem;

        font-weight: 500;

        line-height: 1;

        color: #111;
    }


    .libro-descripcion {

        margin-bottom: 35px;

        font-family:
            "Cormorant Garamond",
            Georgia,
            serif;

        font-size: 1.4rem;

        line-height: 1.55;

        color: #555;
    }


    .libro-descripcion p {

        margin: 0 0 20px;
    }


    /* =====================================================
       INDICE
    ===================================================== */

    .libro-indice {

        border-top: 1px solid #d5d5d5;

        border-bottom: 1px solid #d5d5d5;

        margin-bottom: 35px;
    }


    .libro-indice summary {

        padding: 20px 5px;

        cursor: pointer;

        list-style: none;

        display: flex;

        justify-content: space-between;

        align-items: center;

        font-family:
            Arial,
            Helvetica,
            sans-serif;

        font-size: 0.68rem;

        font-weight: 600;

        letter-spacing: 2px;

        text-transform: uppercase;

        color: #333;
    }


    .libro-indice summary::-webkit-details-marker {

        display: none;
    }


    .indice-flecha {

        font-size: 1.2rem;

        transition:
            transform 0.3s ease;
    }


    .libro-indice[open]
    .indice-flecha {

        transform: rotate(90deg);
    }


    .indice-contenido {

        padding:
            5px 5px 25px;
    }


    .indice-item {

        display: flex;

        align-items: baseline;

        gap: 15px;

        padding: 10px 0;

        text-decoration: none;

        color: #222;

        font-family:
            "Cormorant Garamond",
            Georgia,
            serif;

        font-size: 1.25rem;

        transition:
            padding 0.25s ease;
    }
	
	.indice-item.indice-destacado {
		font-weight: 700;
		color: #111;
	}


    .indice-item:hover {

        padding-left: 8px;

        color: #666;
    }


    .indice-numero {

        width: 30px;

        font-family:
            Arial,
            Helvetica,
            sans-serif;

        font-size: 0.65rem;

        color: #999;
    }


    /* =====================================================
       BOTON AMAZON
    ===================================================== */

    .libro-compra {

        display: flex;

        flex-direction: column;

        gap: 12px;
    }


    .libro-compra-label {

        font-family:
            Arial,
            Helvetica,
            sans-serif;

        font-size: 0.65rem;

        letter-spacing: 2px;

        text-transform: uppercase;

        color: #888;
    }


    .amazon-button {

        display: inline-flex;

        justify-content: center;

        align-items: center;

        gap: 12px;

        width: fit-content;

        padding:
            14px 25px;

        background: #111;

        color: white;

        text-decoration: none;

        font-family:
            Arial,
            Helvetica,
            sans-serif;

        font-size: 0.7rem;

        font-weight: 600;

        letter-spacing: 1.5px;

        text-transform: uppercase;

        transition:
            background 0.3s ease,
            transform 0.3s ease;
    }


    .amazon-button:hover {

        background: #444;

        transform:
            translateY(-2px);
    }


    .amazon-arrow {

        font-size: 1rem;
    }


    /* =====================================================
       PIE
    ===================================================== */

    .libro-nota {

        max-width: 650px;

        margin: 85px auto 0;

        padding-top: 30px;

        border-top: 1px solid #d5d5d5;

        text-align: center;

        font-family:
            "Cormorant Garamond",
            Georgia,
            serif;

        font-size: 1.4rem;

        font-style: italic;

        line-height: 1.5;

        color: #666;
    }


    /* =====================================================
       RESPONSIVE
    ===================================================== */

    @media (max-width: 850px) {

        .libro-presentacion {

            grid-template-columns: 1fr;

            gap: 55px;
        }


        .libro-portada {

            max-width: 380px;
        }


        .libro-info {

            max-width: 650px;

            margin: 0 auto;
        }

    }


    @media (max-width: 600px) {

        .libro-page {

            padding:
                45px 25px 80px;
        }


        .libro-portada-texto {

            padding:
                40px 30px;
        }


        .libro-portada-titulo {

            font-size: 3rem;
        }


        .libro-info h2 {

            font-size: 2.4rem;
        }


        .libro-descripcion {

            font-size: 1.25rem;
        }

    }
