* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main,
footer {
    padding: 20px;
}

main {
    padding-top: 0;
}

main:before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -48%;
    z-index: -1;
    width: 17%;
    height: 35%;
    background-image: url(/assets/images/main/monigote-colgando.webp);
    /* background-position: -24%; */
    background-size: contain;
    background-repeat: no-repeat;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: large;
    background: linear-gradient(to bottom, #ffffff 0px, #ffffff 400px, lightcyan);
}

header {
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

.header-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.principal-logo {
    max-width: 350px;
    display: block;
    margin: 0 auto;
    margin-top: 50px;
}

.social-icons {
    position: absolute;
    top: -8px;
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.youtube-logo {
    height: 19px !important;
}

.social-icon {
    display: inline-block;
    margin: 0 5px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.social-icon svg {
    vertical-align: middle;
}

.icon-svg {
    height: 24px;
    transition: transform 0.3s;
    -webkit-filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, .1));
    filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, .1));
}

.icon-svg:hover {
    transform: scale(1.1);
}


.intro {
    text-align: center;
    padding-bottom: 20px;
    padding-top: 5px;
}

.intro h1 {
    margin-bottom: 0.5rem;
    letter-spacing: -.025em;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 2.5rem;
    color: rgb(17 24 39);
    transition: color 0.3s ease-in-out;
}

.inspirate-diviertete-libros {
    display: flex;
    flex-direction: column;
    /* Si quieres que estén en columnas, o usa row para filas */
    align-items: center;
    /* Centra las secciones horizontalmente */
}


/* Por defecto, ambas secciones */
#inspirate-section,
#diviertete-section,
#libros-section {
    position: relative;
    width: 100%;
    padding: 0 5px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2%;
}

#libros-section {
    max-width: 800px;
}

#diviertete-section {
    max-width: 1000px;
}

/* Flexbox para centrar los botones */
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    height: 70px;
}

.styled-btn {
    padding: 12px 24px;
    font-size: x-large;
    font-weight: bold;
    color: darkblue;
    background: linear-gradient(135deg, #ffffff, #30afeb);
    border: none;
    border-radius: 25px;
    /* Bordes redondeados */
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.8s ease, transform 0.5s ease, color 0.1s ease;
    align-content: center;
    text-align: center;
}

.styled-btn:not(.active):hover {
    background: linear-gradient(135deg, #30afeb, #ffffff);
    /* Inversión del degradado */
    transform: scale(1.05) rotate(-3deg);
    /* Leve aumento de tamaño */
}

.styled-btn.active {
    background: linear-gradient(135deg, #30afeb, #fff);
    color: #fff;
    cursor: default;
    transform: scale(1.05) rotate(-3deg);
}

#diviertete-section,
#libros-section {
    position: absolute;
}

#diviertete-section.visible,
#libros-section.visible {
    position: relative;
}

/* Ocultar secciones inicialmente */
.inspirate,
.diviertete,
.libros {
    visibility: hidden;
    opacity: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Centra secciones en la página */
    padding: 0 20px;
    margin-top: 2%;
}

.inspirate.visible,
.diviertete.visible,
.libros.visible {
    visibility: visible;
    display: block;
    opacity: 1;
}

.inspirate.no-visible,
.diviertete.no-visible,
.libros.no-visible {
    visibility: unset;
    display: none;
    opacity: 0;
}

.diviertete {
    margin-bottom: unset;
}

.inspirate.visible,
.diviertete.visible,
.libros.visible {
    margin-bottom: 120px;
}

/* Grids para ambas secciones */
.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columnas por defecto */
    grid-template-rows: repeat(auto-fill, minmax(200px, auto));
    /* Asegura que las filas se ajusten según el contenido */
}

.grid-diviertete {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    /* Ajusta el espacio entre los elementos según sea necesario */
}

.grid-libros {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    /* Ajusta el espacio entre los elementos según sea necesario */
}

.introTexto2 {
    display: none;
}

@media (max-width: 1500px) {
    main:before {
        display: none;
    }
}

/* Ajustes para pantallas medianas (hasta 1024px) */
@media (max-width: 1024px) {

    .grid,
    .grid-diviertete {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columnas en pantallas medianas */
    }

    .inspirate,
    .diviertete,
    .libros {
        margin-top: 15px;
    }
}

@media (max-width: 900px) {
    .social-icons {
        margin: 24px 0;
        right: 50%;
        left: 50%;
        height: 13px;
        gap: 20px;
    }
}

/* Ajustes para pantallas pequeñas (hasta 640px) */
@media (max-width: 640px) {

    .grid,
    .grid-diviertete {
        grid-template-columns: 1fr;
        /* 1 columna en pantallas pequeñas */
    }

    .diviertete,
    .contacto {
        margin-top: 20%;
    }

    .button-container {
        max-width: none;
    }

    .intro {
        padding-top: 0;
    }
}


@media (max-width: 520px) {
    .principal-logo {
        max-width: 250px;
    }

    .intro h1 {
        font-size: 1.6rem
    }

    .principal-logo {
        margin-top: 45px;
    }
    .introTexto {
        display: none;
    }

    .introTexto2 {
        display: block;
    }
}

@media (max-width: 410px) {
    .icon-svg {
        height: 18px;
    }

    .intro h1 {
        font-size: 1.5rem
    }

    .youtube-logo {
        height: 15px !important;
    }

    .principal-logo {
        max-width: 210px;
    }

}


/* Estilo general de la tarjeta */
.card {
    position: relative;
    /*background: white;*/
    border-radius: 8px;
    overflow: hidden;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* Contenedor para la imagen y el icono de candado */
.card-image-container {
    position: relative;
}

/* Imagen en escala de grises */
.card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    image-rendering: auto;
}

/* Icono de candado superpuesto */
.card-lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    /* Tamaño del icono */
    color: #fff;
    /* Color del icono */
    padding: 10px;
    border-radius: 35%;
    display: none;
    /* Ocultar por defecto */
    background-color: #5c5b5b75;
}

/* Estilo cuando el recurso está bloqueado */
.card.blocked {
    color: #333;
    /* Color del texto del título cuando está bloqueado */
    cursor: default;
    /* Cambia el cursor para indicar que no es clicable */
    pointer-events: none;
    /* Desactiva todos los eventos del mouse */
    background-color: rgb(243 244 246);
    /* Fondo gris claro para indicar bloqueo */
}

.card.blocked .card-lock-icon {
    display: flex;
    /* Mostrar el icono del candado cuando está bloqueado */
}

/* Estilo adicional para la imagen bloqueada */
.card.blocked .card-image {
    filter: grayscale(100%);
    /* Asegúrate de que la imagen se mantenga en escala de grises */
}

/* Escalado de la imagen al hacer hover (cuando no está bloqueada) */
.card:not(.blocked):hover .card-image {
    transform: scale(1.05);
}

/* Estilo para la imagen cuando está bloqueada */
.card.blocked .card-image-container:hover .card-image {
    filter: grayscale(100%);
    /* Asegúrate de que la imagen se mantenga en escala de grises */
}

/* Estilo para la tarjeta cuando no está bloqueada (general) */
.card:not(.blocked) {
    cursor: pointer;
}

.card-link {
    display: block;
    position: relative;
    transition: transform 0.3s ease-in-out;
}

.card-content {
    padding: 1rem;
    padding-top: 0.8rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: -.025em;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 2.5rem;
    color: rgb(17 24 39);
    transition: color 0.3s ease-in-out;
}

.card-title-link {
    color: #000;
    text-decoration: none;
    transition: color 0.1s ease-in-out;
}

.card-title:hover {
    color: #007bff;
}

.card-title-link:hover {
    color: #007bff;
}

.card-description {
    margin: 0.5rem 0;
    color: #333;
    font-weight: 300;
}

.card-tags {
    list-style: none;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: medium;
}

.tag {
    display: inline-block;
    background-color: rgb(243 244 246);
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: smaller;
    font-weight: 300;
    text-decoration: none;
    /* Sin subrayado por defecto */
    transition: background-color 0.3s, color 0.3s;
}

.tag:hover,
.tag:focus {
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    /* Sin subrayado en hover */
    cursor: pointer;
    /* Apunta al cursor de enlace */
}

.tag:active {
    background-color: #d0d0d0;
    /* Cambio de color al hacer clic */
    color: #111;
}

.quienes-somos {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.quisom {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.8);
    /* Fondo blanco con opacidad */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='40' width='100%'><circle r='10' cx='20' cy='13' fill='rgba(136, 136, 136, 0.3)' /><line x1='90' x2='90' y1='0' y2='40' stroke='rgba(255, 0, 0, 0.4)' /><line x1='0' x2='100%' y1='28' y2='28' stroke='rgba(0, 0, 255, 0.3)' /></svg>");
    background-repeat: repeat-y;
    position: relative;
    padding-left: 73px;
    /* Espacio para la columna de anillas */
}

.text-area {
    font-size: 20px;
    line-height: 30px;
    padding: 0 0 0 26px;
    width: 100%;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    /* Fondo blanco con opacidad del 30% */
    border: none;
    /* Quitar el borde */
    outline: none;
    /* Quitar el outline */
}

.text-area h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.text-area p {
    font-size: 1.2rem;
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}

.text-area strong {
    color: #007bff;
}

.text-area:focus {
    border: none;
    /* Asegúrate de que no haya borde al enfocarse */
    box-shadow: none;
    /* Quitar la sombra de enfoque si la hay */
}

/* Media Query para ajustar el tamaño de las anillas en dispositivos móviles */
@media (max-width: 768px) {
    .quisom {
        padding-left: 40px;
        /* Reducir el padding en pantallas más pequeñas */
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='30' width='100%'><circle r='10' cx='10' cy='13' fill='rgba(136, 136, 136, 0.25)' /><line x1='60' x2='60' y1='0' y2='30' stroke='rgba(255, 0, 0, 0.25)' /><line x1='0' x2='100%' y1='28' y2='28' stroke='rgba(0, 0, 255, 0.25)' /></svg>");
    }
}


/* Estilo para la sección de contacto */
.contacto {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    transform: rotate(-3deg);
}

.post-it {
    width: 250px;
    height: 240px;
    position: relative;
    background: #ffa;
    overflow: hidden;
    margin: 30px auto;
    padding: 20px;
    border-radius: 0 0 0 30px/45px;
    box-shadow:
        inset 0 -15px 10px rgba(0, 0, 0, 0.1),
        /* Sombra interna superior más suave */
        0 2px 3px rgba(0, 0, 0, 0.1),
        /* Sombra interna inferior más suave */
        0 3px 4px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.7em;
    border: none;
    /* Quitar el borde */
    outline: none;
    /* Quitar el outline */
}

.post-it:before {
    content: "";
    display: block;
    position: absolute;
    width: 20px;
    height: 25px;
    background: #ffa;
    box-shadow:
        3px -2px 10px rgba(0, 0, 0, 0.2),
        inset 15px -15px 15px rgba(0, 0, 0, 0.3);
    left: 0;
    bottom: 0;
    z-index: 2;
    transform: skewX(25deg);
}

.post-it:after {
    content: "";
    display: block;
    position: absolute;
    width: 75%;
    height: 20px;
    border-top: 3px solid darkblue;
    border-radius: 50%;
    bottom: 0px;
    left: 10%;
}

/* Estilo del título */
.post-it h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: bold;
    margin-top: 10px;
}

/* Estilo del párrafo */
.post-it p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.contact-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    /* Espacio entre enlaces */
}

.contact-links {
    margin: 0;
}

footer {
    text-align: center;
    padding: 10px;
    background: #fff;
    color: #333;
    background: lightcyan;
}

footer p{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: medium;
}

.youtube-logo-bottom {
    height: 19px;
}

.contacto {
    font-size: medium;
}

@media (max-width: 1380px) {
    main:before {
        height: 37%;
    }
}

@media (max-width: 640px) {
    .styled-btn {
        font-size: 1rem;
    }

    body {
        font-size: medium;
    }

    .quisom {
        text-align: center;
    }

    .quienes-somos {
        padding: 3px;
    }

    main:before {
        width: 45%;
        height: 26%;
    }
    .youtube-logo-bottom {
        height: 16px;
    }
}

.monigote-contact {
    height: 50px;
}

.sese {
    visibility: hidden;
    position: absolute;
}