
/* Add smooth scrolling at the top */
html {
    scroll-behavior: smooth;
}

/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle, #1a1a1a, #000);
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

/* Asegura que todos los elementos hereden box-sizing */
*, *::before, *::after {
    box-sizing: inherit;
}

/* Barra de navegación */
.navbar {
    width: 100%;
    background-color: #1a1a1a;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #00aaff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar ul {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    list-style: none;
    justify-content: center;
}

.navbar ul li {
    display: inline-block;
}

.navbar ul li a {
    color: #00aaff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar ul li a:hover {
    color: #0088cc;
    text-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #00aaff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content.active {
    display: block;
}

.dropdown-content a:hover {
    background-color: #333;
}

.dropdown:hover .dropdown-content {
    display: block;
}
/* Estilos para el logo en la navbar */
.navbar-logo {
    height: 40px; /* Ajusta la altura del logo */
    margin-right: 20px; /* Espacio entre el logo y los enlaces */
}

.navbar-logo img {
    height: 100%; /* Asegura que la imagen ocupe toda la altura del contenedor */
    width: auto; /* Mantiene la proporción de la imagen */
    filter: drop-shadow(0 0 5px #00aaff); /* Opcional: Añade un efecto de sombra */
}

/* Responsive: Ajusta el tamaño del logo en pantallas pequeñas */
@media (max-width: 768px) {
    .navbar-logo {
        height: 30px; /* Reduce la altura del logo en dispositivos móviles */
        margin-right: 10px; /* Reduce el margen en dispositivos móviles */
    }
}
        /* Contenedor del logo */
        .logo-container {
            margin-bottom: 20px;
            text-align: center;
            width: 100%;
        }

        .logo-container img {
            max-width: 50%;
            height: auto;
            filter: drop-shadow(0 0 10px #00aaff);
        }

/* Estilos del Hero Section */
    .hero {
        position: relative;
        width: 100%;
        height: 400px; /* Altura del hero */
        background-image: url('https://i.ibb.co/LzX1LPK8/arecut.png'); /* Imagen de fondo */
        background-size: cover;
        background-position: center top; /* Enfoca la parte superior de la imagen */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #fff;
        overflow: hidden;
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Capa oscura con transparencia */
        z-index: 1;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        max-width: 800px;
        padding: 20px;
    }

    .hero h1 {
        font-size: 3rem;
        margin-bottom: 20px;
        text-shadow: 0 0 10px rgba(0, 170, 255, 0.8), 0 0 20px rgba(0, 170, 255, 0.6);
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        text-shadow: 0 0 5px rgba(0, 170, 255, 0.8);
    }

    .hero-button {
        padding: 10px 20px;
        background-color: #00aaff;
        color: #000;
        text-decoration: none;
        border-radius: 25px;
        font-size: 1rem;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .hero-button:hover {
        background-color: #0088cc;
        box-shadow: 0 0 10px rgba(0, 170, 255, 0.6), 0 0 20px rgba(0, 170, 255, 0.4);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .hero {
            height: 300px; /* Altura reducida para móviles */
            background-position: center center; /* Centra la imagen en móviles */
        }

        .hero h1 {
            font-size: 2rem;
        }

        .hero p {
            font-size: 1rem;
        }

        .hero-button {
            font-size: 0.9rem;
        }
    }

    @media (max-width: 480px) {
        .hero {
            height: 250px; /* Altura aún más reducida para pantallas pequeñas */
        }

        .hero h1 {
            font-size: 1.5rem;
        }

        .hero p {
            font-size: 0.9rem;
        }

        .hero-button {
            font-size: 0.8rem;
        }
    }

        /* Banner publicitario */
        .banner {
            width: 100%;
            max-width: 500px;
            margin: 20px 0;
            text-align: center;
            transition: transform 0.3s ease, filter 0.3s ease;
        }

        .banner a {
            display: inline-block;
            width: 100%;
        }

        .banner img {
            width: 100%;
            border-radius: 10px;
            filter: drop-shadow(0 0 10px #00aaff);
            transition: transform 0.3s ease, filter 0.3s ease;
        }

        .banner:hover {
            transform: scale(1.02);
            filter: drop-shadow(0 0 20px #00aaff);
        }

        /* Estilos para la botonera flotante */
        .floating-social-buttons {
            position: fixed;
            bottom: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 8px;
            z-index: 1000;
        }

        .floating-message {
            font-size: 1rem;
            color: #00aaff;
            text-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff;
            margin: 0;
            padding: 5px 10px;
            background-color: #1a1a1a;
            border-radius: 15px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        .floating-button {
            padding: 6px;
            border-radius: 50%;
            text-decoration: none;
            color: #fff;
            font-size: 1.8rem;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 35px;
            height: 35px;
        }

        .floating-button.instagram {
            background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        }

        .floating-button.facebook {
            background-color: #3b5998;
        }

        .floating-button.whatsapp {
            background-color: #25D366;
        }

        .floating-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 10px rgba(0, 170, 255, 0.6);
        }

        /* Estilos para el footer */
        .footer {
            background-color: #1a1a1a;
            color: #fff;
            padding: 20px 0;
            border-top: 2px solid #00aaff;
            box-shadow: 0 -5px 10px rgba(0, 170, 255, 0.2);
            width: 100%;
            position: relative;
            bottom: 0;
        }

        .footer-content {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 20px;
            max-width: 100%;
            margin: 0 auto;
            padding: 0 20px;
        }

        .footer-section {
            flex: 1;
            min-width: 200px;
            text-align: center;
            margin-bottom: 20px;
        }

        .footer-title {
            font-size: 1.1rem;
            color: #00aaff;
            text-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff;
            margin-bottom: 40px;
        }

        .social-buttons {
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        .social-button {
            padding: 10px;
            border-radius: 50%;
            text-decoration: none;
            color: #fff;
            font-size: 1.2rem;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
        }

        .social-button.instagram {
            background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        }

        .social-button.facebook {
            background-color: #3b5998;
        }

        .social-button.whatsapp {
            background-color: #25D366;
        }

        .social-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 10px rgba(0, 170, 255, 0.6);
        }

        /* Estilos para el menú desplegable de compartir */
        .share-dropdown {
            position: relative;
            display: inline-block;
        }

        .share-button {
            padding: 8px 16px;
            border-radius: 25px;
            background-color: #00aaff;
            color: #000;
            border: none;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .share-button:hover {
            background-color: #0088cc;
            box-shadow: 0 0 10px rgba(0, 170, 255, 0.6);
        }

        .share-dropdown-content {
            display: none;
            position: absolute;
            background-color: #1a1a1a;
            min-width: 160px;
            box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            border-radius: 10px;
            overflow: hidden;
            bottom: 100%;
            margin-bottom: 10px;
        }

        .share-dropdown-content a {
            color: #fff;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            text-align: left;
            transition: background-color 0.3s ease;
        }

        .share-dropdown-content a:hover {
            background-color: #333;
        }

        /* Mostrar el menú al hacer clic */
        .share-dropdown.active .share-dropdown-content {
            display: block;
        }

/* Estilos para el logo en el footer */
.footer-logo {
    text-align: center; /* Centra el logo horizontalmente */
    margin-bottom: 10px; /* Espacio entre el logo y el título */
}

.footer-logo img {
    width: 200px; /* Tamaño del logo (el doble de grande que antes) */
    height: auto; /* Mantiene la proporción de la imagen */
    filter: drop-shadow(0 0 5px #00aaff); /* Opcional: Añade un efecto de sombra */
}


/* Estilos para el contenedor de redes sociales y logo */
.social-buttons {
    display: flex;
    align-items: center; /* Alinea verticalmente las redes sociales y el logo */
    justify-content: center; /* Centra el contenido horizontalmente */
}

/* Responsive: Ajusta el tamaño del logo en pantallas pequeñas */
@media (max-width: 768px) {
    .footer-logo img {
        width: 159px; /* Reduce el tamaño del logo en dispositivos móviles */
    }
}

        /* Estilos para el enlace de contacto */
        .footer-link {
            color: #00aaff;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-link:hover {
            color: #0088cc;
        }

        /* Estilos para la sección inferior del footer */
        .footer-bottom {
            text-align: center;
            margin-top: 20px;
            padding-top: 10px;
            border-top: 1px solid #333;
            font-size: 0.9rem;
            color: #ccc;
        }

        /* Fondo extendido hasta abajo */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, #00aaff, #000, #00aaff, #000);
            z-index: -1;
            opacity: 0.1;
            animation: glow 10s infinite;
        }

        /* Animación de fondo */
        @keyframes glow {
            0% {
                background-position: 0 0;
            }
            50% {
                background-position: 100% 0;
            }
            100% {
                background-position: 0 0;
            }
        }

        /* Mensaje de bienvenida */
        .welcome-message {
            text-align: center;
            margin: 20px 0;
            font-size: 1.2rem;
            color: #00aaff;
            text-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff;
            width: 100%;
            padding: 0 20px;
            box-sizing: border-box;
        }

        /* Barra de búsqueda */
        .search-bar {
            text-align: center;
            margin: 20px 0;
            width: 100%;
            padding: 0 20px;
            box-sizing: border-box;
        }

        .search-bar input {
            padding: 12px 24px;
            width: 100%;
            max-width: 600px;
            border: 2px solid #00aaff;
            border-radius: 25px;
            background-color: #1a1a1a;
            color: #00aaff;
            font-size: 1rem;
            transition: box-shadow 0.3s ease;
        }

        .search-bar input:focus {
            outline: none;
            box-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff;
        }

        /* Contenedor de libros */
        .book-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            padding: 20px;
            width: 100%;
            box-sizing: border-box;
        }

        /* Tarjetas de libros */
        .book-card {
            width: 100%; /* Ancho relativo */
            max-width: 300px; /* Ancho máximo */
            padding: 20px; /* Espacio interno */
            background-color: #1a1a1a;
            border: 2px solid #00aaff;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
            box-sizing: border-box; /* Incluye el padding en el ancho */
            overflow: hidden; /* Oculta el desbordamiento */
        }

        .book-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 8px 25px rgba(0, 170, 255, 0.6);
        }

        .book-card img {
            width: 100%;
            border-radius: 10px;
            margin-bottom: 15px;
            border: 2px solid #00aaff;
            max-width: 100%;
            height: auto;
        }

        .book-card h3 {
            font-size: 1.2rem;
            color: #00aaff;
            margin-bottom: 10px;
            white-space: normal; /* Permite que el texto se divida en varias líneas */
            word-wrap: break-word; /* Divide palabras largas */
        }

        .book-card p {
            font-size: 0.9rem;
            color: #ccc;
            margin-bottom: 15px;
            word-wrap: break-word; /* Divide palabras largas */
            overflow-wrap: break-word; /* Alternativa moderna */
        }

        .book-card a {
            display: inline-block;
            padding: 10px 20px;
            background-color: #00aaff;
            color: #000;
            text-decoration: none;
            border-radius: 25px;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }

        .book-card a:hover {
            background-color: #0088cc;
            box-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .book-container {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            }

            .logo-container img {
                max-width: 80%;
            }

            .welcome-message {
                font-size: 1rem;
            }

            .search-bar input {
                font-size: 0.9rem;
            }

            .book-card {
                padding: 15px;
            }

            .book-card h3 {
                font-size: 1rem;
            }

            .book-card p {
                font-size: 0.8rem;
            }

            .navbar ul {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }
        }

        @media (max-width: 480px) {
            .book-container {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            }

            .logo-container img {
                max-width: 70%;
            }

            .welcome-message {
                font-size: 0.9rem;
            }

            .search-bar input {
                font-size: 0.8rem;
            }

            .book-card {
                padding: 10px;
            }

            .book-card h3 {
                font-size: 0.9rem;
            }

            .book-card p {
                font-size: 0.75rem;
            }
