/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #a754ce;
    color: #e6e6e6;
    line-height: 1.6;
    position: relative;
    padding-top: 80px; /* Espacio para el anuncio fijo */
    background-image: url('Imagenes/Background.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Anuncios fijos */
.ad-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none; /* Ocultos por defecto, se muestran según la pestaña */
}

.ad-banner.active {
    display: flex;
}

/* Redes sociales fijas */
.social-links {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: scale(1.1);
}

.tiktok { background-color: #000000; }
.youtube { background-color: #FF0000; }
.facebook { background-color: #3b5998; }
.instagram { 
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
}

/* Encabezado */
header {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    background-color: rgba(255, 182, 193, 0.8); /* Rosa pastel */
    border-bottom: 2px solid #ff9ff3; /* Rosa neón */
}

header h1 {
    font-size: 2.5rem;
    color: #fff; /* Blanco */
    text-shadow: 2px 2px 4px #ff9ff3; /* Sombra rosa */
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

header p {
    font-size: 1.2rem;
    color: #c0c0c0;
    font-style: italic;
}

/* Navegación */
nav {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    border-bottom: 1px solid #4d0000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav li {
    margin: 0 15px;
}

.tab-link {
    color: #d8bfd8;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-link:hover {
    color: #ff69b4;
    background-color: rgba(139, 0, 0, 0.3);
}

.tab-link.active {
    color: #a55eea; /* Morado dulce */
    border-bottom: 2px solid #a55eea;
}

/* Contenido principal */
.tab-content {
    display: none;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
}

.content-item {
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #fdcb6e; /* Amarillo pastel */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.content-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.5);
}

.content-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #4d0000;
}

.content-title {
    padding: 15px;
    font-size: 1.2rem;
    color: #6c5ce7; /* Morado suave */
    text-align: center;
    font-weight: bold;
}

.content-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #a55eea; /* Morado */
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.content-btn:hover {
    background-color: #ff9ff3; /* Rosa */
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: rgba(20, 20, 20, 0.37);
    margin: 80px auto;
    padding: 30px;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    border: 1px solid #8b0000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.5s ease;
    background-image: url('Imagenes/Perfil.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(20, 20, 20, 0.85);
    z-index: -1;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #d8bfd8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ff69b4;
}
/* Efecto "pixelado" al hacer hover */
.content-item:hover {
    image-rendering: pixelated;
}

/* Bordes estilo "8-bit" */
.cuento-container {
    border: 4px dashed #ff9ff3;
}
.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
    padding: 30px 10px;
    background-color: rgba(20, 10, 30, 0.9);
    border-bottom: 3px dashed #a55eea;
    box-shadow: inset 0 0 10px #ff69b4;
}

.character-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ff69b4;
    box-shadow: 0 0 20px #ff69b4;
    background-color: #000;
}

.title-block h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 2px 2px #a55eea;
}

.title-block p {
    font-size: 1rem;
    color: #ffc0cb;
    font-style: italic;
    margin: 5px 0 10px;
}

.icon-bar {
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.icon-bar i {
    color: #ff69b4;
    transition: transform 0.3s ease;
}

.icon-bar i:hover {
    transform: scale(1.3);
    color: #ffffff;
}

.neon {
    text-shadow: 0 0 5px #ff69b4, 0 0 10px #ff69b4, 0 0 20px #ff69b4;
}

.pulse {
    animation: pulse-glow 2s infinite;
}
/* Estilos para contenido en modales */
.modal-content {
    text-align: center; /* Centra todo el contenido del modal */
}

.modal-content img,
.modal-content video {
    display: block;
    margin: 0 auto 20px;
    max-width: 90%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Alineación de texto justificada */
.modal-content .text-content {
    text-align: justify;
    margin: 0 auto;
    max-width: 800px;
    padding: 0 20px;
    line-height: 1.8;
}

/* Estilos específicos para videos */
.modal-content video {
    width: 80%;
    height: auto;
    background: #000;
}

/* Para los productos */
.product-modal-content {
    text-align: center;
}

.product-modal-img {
    max-height: 300px;
    margin-bottom: 20px;
}

.product-modal-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #a55eea;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}
@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 5px #ff69b4, 0 0 10px #ff69b4; }
    50% { text-shadow: 0 0 15px #ffffff, 0 0 25px #ff69b4; }
}
/* Animaciones */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    nav li {
        margin: 0 8px;
    }

    .tab-link {
        font-size: 0.9rem;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 60px auto;
    }

    .social-links {
        right: 5px;
        gap: 10px;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 5px 0;
    }

    body {
        padding-top: 60px;
    }

    .ad-banner {
        height: 60px;
    }

    nav {
        top: 60px;
    }
}