:root{
    --espacio-grande:2rem;
    --espacio-medio:1.5rem;
    --espacio-chico:1rem;
    --ancho-principal:clamp(300px,75vw,1200px);
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    font-size: 1em;
    /* scroll-behavior: smooth; */
     scroll-behavior: auto !important;
}
body{
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
    background-image: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.712)),url(../img/fondo7ch.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;/* 
    backdrop-filter: grayscale(0.2); */
}
img{
    max-width: 100%;
}
.contenedor{
    width:var(--ancho-principal);
    margin:0 auto;
}
.cabecera{
    text-align: center;
    padding: 2em;
    margin-bottom: var(--espacio-chico);
}
.titulo{
    font-size: clamp(2.5rem,5.5vw,5rem);
    margin-bottom: var(--espacio-chico);
}
.cabecera__subtitulo{
    font-size: clamp(1.5rem,4vw,2.5rem);
    /* text-shadow: 1px 1px  2px white, -1px -1px 2px white; */
    margin-bottom: var(--espacio-medio);
}
.titulo,.cabecera__subtitulo{
    font-family: 'Merriweather', serif;
    text-shadow: 0px 1px  1px rgba(255, 255, 255, 0.792);
}
.boton{
    width:10vw;
    background-color: rgba(255, 255, 255, 0.925); 
    padding: 5px;
    border-radius: 5px;
    filter: saturate(1.2);
}
.boton--desplazado{
    position:fixed;
    top:3rem;
    right:1rem;
}
.arriba{
    width:10vw;
    max-width: 50px;
    position: fixed;
    top:50%;
    right:1rem;
    opacity: 0;
    z-index: 3;
}
.arriba--ver{
    opacity: 0.7;
}
.menu{
    background-color: rgba(0, 24, 67, 0.781);
    /* background-image:url(../img/iconos/tornillo.png);
    background-size: 3.5%; 
    background-repeat: no-repeat;
    background-position: center 5px; */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.705);
    backdrop-filter: blur(15px) ;
    margin:0 auto;
    border-radius: 1rem;
    height:0;
    transform: scaleY(0);
    transform-origin: center top;
    transition: all 0.2s;
}
.menu--ver{
    height:auto;
    padding: 2.5em;
    transform: scaleY(1);
    margin-bottom: 3.5rem;
}
.menu__ul{
    list-style: none;
    display:flex;
    flex-wrap: wrap;
    gap:1em;
    justify-content: space-evenly;
}
.menu__item{
   text-align: center;
   margin-bottom: var(--espacio-medio);
   border-radius: 0.5rem;
}
.menu__icono{
    display: block;
    width:clamp(30px, 15vw, 60px);
    margin-bottom: 1rem;
    transition: all 0.5s;
    margin-left: auto;
    margin-right: auto;
}
.menu__link{
    color:rgba(255, 255, 255, 0.801);
    text-decoration: none;
    font-size: clamp(1rem,2.5vw,1.2rem);
    letter-spacing: 0.1em;
    transition: all 0.5s;
    display: block;
    margin-bottom: 0.5rem;
}
.menu__item:hover{
    /* background-color: rgba(255, 255, 255, 0.05); */
    box-shadow: 0 7px 3px -3px rgba(255, 255, 255, 0.595);
}
.menu__item:hover .menu__icono{
    /* transform:scale(1.1); */
    filter:brightness(1.5)
}
.menu__item:hover .menu__link{
    color:white;
   /*  font-weight: bold; */
}
section{
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem 2.5rem;
    margin-bottom:2rem;
    border-radius: 0.5rem;
    box-shadow: 0px 5px 10px black;
}

.subtitulo{
    font-family: 'Merriweather', serif;
    text-align: center;
    font-size: clamp(1.5rem,3vw,3.5rem);
    margin-bottom: 1.5rem;
}
.subtitulo span{
    font-size:0.8em;
}
.subtitulon2{
    font-family: 'Merriweather', serif;
    font-size: clamp(1.5rem,2vw,2.5rem);
    margin-bottom: 1.3rem;
}

.contenido{
    font-size: clamp(1.1rem,2vw,1.35rem);
    margin-bottom: 1em;
}
.contenido--lista{
    list-style: none;
    color:#00163f;
    background-color: rgb(253, 216, 171);
    padding: 2em 1em;
    border-radius: 2rem;
   
    box-shadow: 0 10px 8px -5px;
}
.contenido--lista__item{
    margin-bottom: 1.2rem;
}
.destacado{
    font-weight: bold;
}
.contenido__imagen{
    border-radius: 1rem;
    box-shadow: 0 10px 8px -5px;
    display: block;
    margin: var(--espacio-grande) auto;
}
.contenido__imagen--yo{
    filter:grayscale() contrast(1.2);
}
.assunta{
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position:0 -20px ;
}
.contenido__imagen--dibujo{
    filter:sepia(0.5) contrast(2);
    opacity:0.3;
}
.imagen__canal{
    display: block;
    width:20vw;
    max-width: 200px;
    margin: auto;
    transition: all 0.5s;
}
.imagen__canal--desarrollo{
    filter: drop-shadow(1px 1px 5px);
}
.canal__link{
    display: block;
    text-align: center;
    text-decoration: none;
    color:black;
}
.imagen__canal:hover{
    transform: scale(1.1);
}

.docencia__imagenes{
    display:grid;
    gap:1em;
    grid-template-columns: 2fr 1fr;
    margin-bottom: var(--espacio-grande);
}
.docencia__imagen{
    height:100%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 8px -5px;
}
.acordeon__contenedor{
    margin-bottom: 2rem;
}
.acordeon__contenedor:last-of-type{
    margin-bottom: 0;
}
.acordeon__titulo{
    background-color: rgba(0, 28, 80, 0.781);
    border-radius: 1rem;
    font-size:clamp(1.1rem,3vw,1.5rem);
    padding: 1em 0.8em;
    cursor: pointer;
    transition: all 0.5s;
    position:sticky;
    top:0;
    z-index: 2;
    margin-bottom:0.5rem;
    color:#e8e8e8;
}
.acordeon__contenido{
    font-size: clamp(1.2rem,3vw,1.5rem);
    padding: 1em 0.8em;
    border-radius: 1rem;
}
.acordeon__imagenes{
    display:grid;
    grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
    gap:2rem;
    padding: var(--espacio-medio);
}
.acordeon__imagenes--cursos{
    grid-template-columns: repeat(auto-fill,minmax(100px,1fr));
}
.acordeon__item{
    margin-bottom: 2rem;
}
.acordeon__imagen{
    width:100%;
    height: 100%;
    object-fit: contain;
}
.acordeon__imagen:hover{
    transform: scale(1.05);
}

.acordeon__curso{
    text-align: center;
    text-transform: capitalize;
    font-weight: bold;
    font-size: clamp(1.1rem,2vw,1.3rem);
    margin-top: -var(--espacio-chico);
}
.acordeon__contenedor[open] .acordeon__titulo,.acordeon__contenedor:hover .acordeon__titulo{
    background-color: #b36c29;
    padding-left: 1.3em;
    color:white;
    font-weight: bold;
}
.acordeon__contenedor[open] .acordeon__contenido{
    background-color: rgba(148, 148, 148, 0.769);
}


/* .acordeon__titulo{
    list-style: none;
}
.acordeon__titulo::before{
    content:"+";
    margin-right: 1em;
}
.acordeon__contenedor[open] .acordeon__titulo::before{
    content:"-";
} */

.pizarrones .acordeon__imagen{
    cursor:zoom-in;
    transition: all 0.5s;
    border:2px solid black;
    box-shadow: 0 10px 8px -5px;
    filter:grayscale(0.7)
}
.pizarrones .acordeon__imagen:hover{
    transform: scale(1.1);
    filter:none;
}

.alumnos__videos{
    display:grid;
    grid-template-columns: repeat(auto-fill,minmax(250px, 1fr));
    gap:var(--espacio-medio);
}
.alumnos__marco{
    position:relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 8px -5px;
}
.alumnos__video{
    width:100%;
    height:100%;
    aspect-ratio: 9/11;
    border-radius: 0.5rem;
    filter:sepia(0.5);
    transition: all 0.5s;
}
.alumnos__video:hover{
    filter: none;
}
.alumnos__marco::after{
    content:"";
    position:absolute;
    bottom:0;
    left:70%;
    width:25%;
    height:25%;
    background-image: url(../img/iconos/logo-youtube-texto.png);
    background-repeat: no-repeat;
    background-size: 90%;
    /* transform:translateX(-50%); */
    transition: all 0.5s;
}
.alumnos__marco:hover::after{
    left:50%;
    transform:translateX(-50%);
}
.libro__videos{
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(250px, 1fr));
    gap:var(--espacio-medio);
    justify-content: center;
    align-items: center;
}
.libro__video{
    width:100%;
    aspect-ratio: 16/9;
    border-radius: 0.5rem;
    filter:sepia(0.5);
    transition: all 0.5s;
    box-shadow: 0 10px 8px -5px;
}
.libro__video:hover{
    filter: none;
}

.comprar{
    display:grid;
    column-gap: 2rem;
}
.comprar .subtitulo,.comprar .contenido{
    grid-column: 1/-1;
}
.donde{
    font-family: "singleday";
    font-size: clamp(1.2rem,1.8vw,2rem);
    margin: 2.5rem 0 1.2rem;
    border-bottom: 2px solid #0000008e;
}
.donde__img{
    width:40px;
    height:40px;
    min-width: 50px;
    vertical-align: middle;
    margin-right: 1rem;
    margin-bottom: 1rem;
}
.donde__img--descargar{
    width:30px;
    height:30px;
    min-width: 30px;
    margin: 1rem 0;
    transition: all 0.5s;
}
.donde__img--descargar:hover{
    transform: scale(1.05);
    filter: brightness(1.5);
}

.comprar__imagenes{
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(100px, 300px));
    justify-content: center;
    align-items: center;
    gap:var(--espacio-medio);
    margin-bottom: var(--espacio-medio);
}
.comprar__item{
    cursor: pointer;
}
.comprar__item--nopointer{
    cursor:unset;
}
.comprar__imagen{
    width:100%;
    aspect-ratio: 1.415/1;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 10px 8px -5px black;
    margin-bottom: var(--espacio-chico);
    filter:grayscale(0.5);
    transition:all 0.5s
}
.comprar__imagen--portada{
    object-fit: cover;
    aspect-ratio:12/18;
    box-shadow: 0 10px 8px -5px black;
}
.comprar__datos{
    text-align: center;
    font-weight: bold;
    font-size: clamp(1.1rem,2vw,1.3rem);
    margin-top: 0.5rem;
}
.link--destacado{
    text-decoration: none;
    color:rgb(112, 56, 16);
    transition:all 0.5s;
    font-weight: bold;
}
.destacado--opcionesCompra{
    text-align: center;
    margin-bottom: 2rem;
}
.comprar__item:hover .comprar__imagen{
    filter:none;
}
.link--destacado:hover{
    color:#002a79b2;
}

/* ============================================================
   MEJORAS PARA LA SECCIÓN COMPRAR — (NUEVO BLOQUE AÑADIDO)
   ============================================================ */

/* 👇 Subtítulo centrado y con mejor separación */
.comprar .subtitulo { /* NUEVO */
  margin-bottom: 1.5rem;
  text-align: center;
}

/* 👇 Textos más legibles */
.comprar .contenido { /* NUEVO */
  line-height: 1.55;
}

/* 👇 Encabezados de cada método de compra más visibles */
.comprar .donde { /* NUEVO */
  padding-bottom: 0.5rem;
  color: #002a79;
  border-bottom: 3px solid #002a79;
}

/* 👇 Mejor presentación del botón MP */
.comprar button.mercadopago-button { /* NUEVO */
  width: clamp(180px, 50%, 260px);
  font-size: 1.1rem !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* 👇 Portadas con sombra más suave y estética */
.comprar .comprar__imagen--portada { /* NUEVO */
  border-radius: 1rem;
  filter: drop-shadow(0px 3px 8px rgba(0,0,0,0.3));
}

/* 👇 Texto bajo las portadas con mejor contraste */
.comprar .comprar__datos { /* NUEVO */
  color: #4a2a10;
}

/* 👇 Hover coherente con tu estética */
.comprar .comprar__item:hover .comprar__imagen--portada { /* NUEVO */
  filter: brightness(1.05)
          drop-shadow(0px 5px 12px rgba(0,0,0,0.4));
}

/* 👇 Enlaces más visibles y coherentes con la paleta */
.comprar .link--destacado { /* NUEVO */
  color: #8b4612;
}

.comprar .link--destacado:hover { /* NUEVO */
  color: #002a79;
}

/* Pie 
.pie{
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 1em;
    color:white;
    padding: var(--espacio-grande);
    text-align: center;
}
.redes__imagen{
    width:15vw;
    max-width: 80px;
    margin: 2em 0.5em;
    transition: all 0.5s;
}
.redes__imagen:hover{
    transform: rotate(-10deg);
}
.copy{
    font-family: monospace;
    font-size: clamp(1rem,2vw,1.2rem);
    margin-bottom: 1em;
}*/
/* ============================================================
   FOOTER EDITORIAL — estilo autor/libro profesional
============================================================ */

.pie {
  text-align: center;
  padding: 4rem 1rem;
  background: #151515; /* oscuro editorial */
  color: #e8e8e8;
  font-family: "Georgia", serif;
  border-top: 2px solid #444;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

/* Texto principal */
.pie .contenido {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: #e8e8e8;
}

/* Contenedor de redes */
.pie .redes {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 1.5rem 0 2rem;
}

/* Iconos individuales */
.pie .redes__imagen {
  width: 42px;
  height: auto;
  filter: grayscale(80%) opacity(0.8); /* estética editorial */
  transition: filter .25s ease, transform .25s ease;
  cursor: pointer;
}

/* Hover */
.pie .redes__imagen:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* Copyright */
.pie .copy {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #aaa;
  letter-spacing: 1px;
  font-family: "Georgia", serif;
}

/* Modal */
.modal{
    position: fixed;
    background-color: rgba(0, 0, 0, 0.8);
    top:0;
    left:0;
    bottom:0;
    right:0;
    z-index: 20;
    transform:scale(0);
    transition: all 0.5s;
}
.modal--ver{
    transform:scale(1) rotate(2turn);
}
.modal__imagen{
    width:80%;
    max-width: 900px;
    position:absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    outline: 4px solid white;
}
.modal__cerrar{
    position:absolute;
    top:2rem;
    right:2rem;
    color:white;
    font-size: 2rem;
    text-decoration: none;
}
/* form gracias */
.form-libro{
    display:block;
    width:100%;
    min-height: 120vh;
    margin: 1rem auto;
    border:none;
}
.gracias--img{
    width:20vw;
}
/* mercadopago */
button.mercadopago-button {
  /* Tus atributos CSS */
  display:block;
  font-size:1.2rem;
  font-weight: bold;
  line-height: 1.5;
  background-color: #002a79;
  color: white;
  border-radius: 0.5rem;
  padding: 0.5em 0.6em;
  margin: 1rem auto;
}
button.mercadopago-button:hover {
  /* Tus atributos CSS */
  background-color: #0b9fe1;
  text-decoration: underline;

}


.mp{
    width:40px;
    vertical-align: middle;
}

/* gregados chatgpt */
.libro .subtitulo { /* NUEVO */
  margin-top: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* 👇 Mejora la lectura del texto */
.libro .contenido { /* NUEVO */
  line-height: 1.6;
  color: #00121f;
}

/* 👇 Beneficios más destacados y cálidos */
.contenido--lista { /* NUEVO */
  background-color: rgba(255, 233, 207, 0.9);
  border-left: 6px solid #c27a42;
  box-shadow: 0px 6px 12px -3px rgba(0,0,0,0.3);
}

/* 👇 Imagen del libro con tamaño óptimo y margen respirado */
.libro .contenido__imagen--libro { /* NUEVO */
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: clamp(220px, 40vw, 300px);
}

/* NUEVA SECCION LIBRO */
/* Frase destacada del libro */
.frase-destacada {
  text-align: center;
  font-style: italic;
  margin: 2rem auto;
  max-width: 700px;
  line-height: 1.6;
}

/* Pequeño menú interno solo para libro.php */
/* ============================================================
   MENÚ SECUNDARIO LIBRO — MOBILE FIRST
============================================================ */

.menu-secundario-libro {
    width: 100%;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.menu-secundario-libro li {
    margin: 0;
}

.menu-secundario-libro a,.mercadoBoton--menu button.mercadopago-button {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;

    text-align: left;
    font-size: 1.05rem;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    border: 1px solid #ddd;

    background: #fafafa;
    border-radius: 10px;

    transition: background 0.2s ease, transform 0.2s ease;
}

.menu-secundario-libro a:hover {
    background: #f0f0f0;
    transform: translateX(3px);
}
.mercadoBoton--menu button.mercadopago-button{
    border: none;
    padding: 0.5em 0.6em;
    background: #f0f0f0;
}
button.mercadopago-button:hover{
    background-color: #0b9fe1;
}

/* Resumen inicial del libro */
.libro__resumen {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  line-height: 1.7;
}

 /* --- CONTENEDOR GENERAL --- */
.fragmentos__contenedor {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* --- TARJETAS EDITORIALES --- */
.fragmentos__item {
    background: #ffffff;
    border: 1px solid #e4e1da; /* borde editorial sutil */
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    display:flex;
    flex-direction: column;
    align-items: center;
}

.fragmentos__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

/* --- COMILLAS GRANDES, DECORATIVAS --- */
.fragmentos__item::before {
    content: "“";
    position: absolute;
    top: -5px;
    left: 12px;
    font-family: Georgia, serif;
    font-size: 4.5rem;
    color: #d8d2c8;
    opacity: 0.35;
    pointer-events: none;
}

.fragmentos__item * {
    position: relative;
    z-index: 1;
}

/* --- ELIMINAR FONDOS PREVIOS --- */
.item1, .item2, .item3, .item4, .item5, .item6, .item7 {
    background: #fff;
}

/* --- TÍTULO DEL CAPÍTULO --- */
.fragmentos__titulo {
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #222;
}

/* --- TEXTO DEL FRAGMENTO --- */
.fragmentos__contenido {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.6;
    color: #444;
    padding: 1rem 1.2rem;
    border-left: 4px solid #c2b59b; /* estilo editorial */
    background: #faf9f7;
    border-radius: 0.4rem;
    margin-bottom: 1.6rem;
}

/* --- CITA DEL LIBRO / AUTOR --- */
.fragmentos__libro {
    display: block;
    font-size: 0.85rem;
    text-align: center;
    color: #555;
    font-style: italic;
    margin-top: auto;
    opacity: 0.9;
}


@media (min-width:1024px){
    .boton{
        display:none;
    }
    .menu{
        height:auto;
        padding: 2.5em;
        transform: scaleY(1);
        /* max-width: 1000px; */
        width:var(--ancho-principal);
        margin-bottom: 3.5rem;
    }
    .menu__ul{
        gap:2em;
    }
    .menu__item{
        margin-bottom: 0;
    }
   
    .menu--expandir{
        position: fixed;
        top:50%;
        left:1rem;
        padding: 1em;
        z-index: 2;
        max-width: 150px;
        transform: translateY(-50%);
    }
    .menu--expandir .menu__ul{
        flex-direction: column;
        gap:1em;
    }
    .menu--expandir .menu__item{
        margin-bottom: 2rem;
    }
    .menu--expandir .menu__item:first-child{
        margin-top: 1rem;
    }
    .menu--ocultar{
        left:-100%;
    }
    .menu--expandir .menu__icono{
        width:45px;
    }
    .menu--expandir .menu__link{
        font-size: 1rem;
    }
    .menu--expandir-temp {
    visibility: hidden !important;
    position: absolute !important;
    left: 0;
    top: 0;
}
    .contenido__imagen{
        float: right;
        width:40%;
        max-width: 450px;
        margin-left: 1em;
        margin-top: 0;
        clear: both;
    }
    .contenido__imagen--libro{
        float:none;
        position:relative;
        left:50%;
        transform: translateX(-100%);
        -webkit-box-reflect: right 5px linear-gradient(90deg,transparent, rgba(0, 0, 0, 0.363));
        width:500px;
    }
    .comprar{
        grid-template-columns: repeat(auto-fill,minmax(400px, 1fr));
    
    }
    .redes__imagen{
        width:15vw;
        max-width: 80px;
        margin: 2em 1.5em;
        transition: all 0.5s;
    }
    
    .menu-secundario-libro {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

        max-width: 900px;  /* <--- controla el ancho del menú */
        margin: 3rem auto; /* <--- centrado */
        padding: 0.5rem 1rem;

        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #e6e6e6;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .menu-secundario-libro a {
        padding: 0.6rem 1rem;
        border-radius: 8px;
        border: none;
        background: transparent;
        text-align: center;
        transform: none;
    }

    .menu-secundario-libro a:hover {
        background: #f5f5f5;
        transform: none;
    }
    .fragmentos__contenedor{
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
     .pie {
    padding: 2.5rem 1rem; /* antes: probablemente 4rem+ */
  }

   .pie .contenido {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
  }

  .pie .redes__imagen {
    width: 48px;
  }

  .pie .copy {
    font-size: 0.9rem;
  }
}
