﻿:root {
    --morado: #5a2a83;
    --morado-claro: #7d4bbc;
    --blanco: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--blanco);
    color: var(--morado);
    margin: 0;
    padding: 0;
}

/* Header y Navbar */
header {
    background-color: var(--blanco);
    box-shadow: 0 2px 5px rgba(90, 42, 131, 0.2);
}

.navbar-brand img {
    height: 70px;
    transition: height 0.3s ease;
}

    .navbar-brand img:hover {
        height: 75px;
    }

.nav-link {
    color: var(--morado) !important;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

    .nav-link:hover {
        color: var(--morado-claro) !important;
    }

/* Hero Section */
.hero {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-image {
    width: 100%;
    height: 400px; /* Puedes ajustar a 100vh si quieres pantalla completa */
    object-fit: cover;
    display: block;
}

/* Títulos de sección */
.section-title {
    border-left: 5px solid var(--morado);
    padding-left: 15px;
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--morado);
}

/* Tarjetas generales */
.card {
    border: 1px solid rgba(255, 165, 0, 0.5);
    box-shadow: 0 4px 10px rgba(90, 42, 131, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 140, 0, 0.1));
}

    .card:hover {
        transform: translateY(-7px);
        background-color: rgba(255, 165, 0, 0.3);
        border: 2px solid orange;
        box-shadow: 0 6px 15px rgba(255, 140, 0, 0.5);
    }

    .card.selected {
        background-color: rgba(255, 165, 0, 0.3);
        border: 2px solid orange;
        box-shadow: 0 6px 15px rgba(255, 140, 0, 0.5);
    }

/* Tarjetas del área #revista-digital */
#revista-digital .card.flex-row {
    flex-direction: row;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
    border-radius: 12px;
}


/* #revista-digital .card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 10px;
}*/

#revista-digital .card-body {
    flex: 1;
}

#revista-digital .card-title {
    font-size: 1.1rem;
    font-weight: bold;
}

#revista-digital .card-text {
    font-size: 0.95rem;
    color: #333;
}

#revista-digital .btn {
    margin-top: 0.5rem;
}

/* Responsive para publicaciones */
@media (max-width: 576px) {
    #revista-digital .card.flex-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #revista-digital .card img {
        margin: 0 auto 10px auto;
    }

    #revista-digital .card-body {
        text-align: left;
    }
}
/* Estilo de botón */
.btn-primary {
    background-color: var(--morado);
    border: none;
    color: var(--blanco);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: var(--morado-claro);
    }

/* Footer */
footer {
    background-color: var(--morado) !important;
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--blanco);
}

    footer a:hover {
        color: var(--morado-claro); /* o un color claro que uses para hover */
        transition: color 0.3s ease;
    }


/* Ajustes específicos para #revista-digital */
#revista-digital .card {
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(90, 42, 131, 0.1);
    background: white;
}

    #revista-digital .card:hover {
        background-color: #f8f9fa;
        border: 1px solid #bbb;
        box-shadow: 0 6px 15px rgba(90, 42, 131, 0.15);
    }

    #revista-digital .card.selected {
        background-color: #e9ecef;
        border: 1px solid #888;
        box-shadow: 0 6px 15px rgba(90, 42, 131, 0.2);
    }

/* Burbuja de visitas */
.burbuja-visitas {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f7aa05, #f7aa05);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: flotar 2s ease-in-out infinite alternate;
    transition: transform 0.3s ease;
}

@keyframes flotar {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

.burbuja-visitas:hover {
    transform: scale(1.1);
}

.burbuja-visitas.oculto {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#revista-digital .card.flex-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

#revista-digital .card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

#revista-digital .card-body {
    display: flex;
    flex-direction: column;
    justify-content:stretch;
}
#tarjetas-inicio .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#tarjetas-inicio .card-text {
    flex-grow: 1;
}
