/**
 * ===================================================
 * Derechos de Autor © 2025 Examen Express.
 * Contacto por instagram: @ben_avendano  
 * ===================================================
 * Todos los derechos reservados.
 * Este archivo css no puede ser reproducido,
 * distribuido ni modificado sin autorización expresa
 * del autor.
 * ===================================================
 */


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background-color: #efefef;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    color: rgb(0, 0, 0);
}



.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.overlay.active {
    display: block;
}

a {
    text-decoration: none;
    color: black;
    transition: all 0.3s ease;
}


/* Navbar fijo en la parte superior */
#navbar {
    position: fixed;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    top: 0; /* Fija el navbar en la parte superior */
    left: 0; /* Asegura que esté alineado a la izquierda */
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 60px; /* Altura fija para consistencia */
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: black;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #ffc700;
    border-radius: 50%;
    bottom: 5px;
    right: -8px;
}

.navbar-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.navbar-links li a {
    color: #212529;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ffc700;
    left: 0;
    bottom: 0;
    transition: all 0.3s ease;
}

.navbar-links li a:hover::after,
.navbar-links li a.active::after {
    width: 100%;
}

.navbar-links li a.active {
    color: black;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #212529;
}



/* Ajusta el header para que no quede bajo el navbar */
.header-bg {
    margin-top: 0; /* Quita el margen superior que tenías antes */
}

/* Estilos para el menú de hamburguesa en móviles */
@media (max-width: 920px) {
    .navbar-container {
        padding: 5px;
    }
    
    .hamburger {
        display: block;
    }
    
    .navbar-links {
        position: fixed;
        top: 60px;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: white;
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        z-index: 1000;
        transition: 0.3s ease;
    }
    
    .navbar-links.active {
        right: 0;
    }
    
    .navbar-links li {
        width: 100%;
    }
    
    .navbar-links li a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }
}
/* Estilos para el formulario de suscripción */
.subscription {
    margin-top: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    font-weight: bold;
}

.subscription h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #000000;
}

.subscription p {
    font-size: 1em;
    margin-bottom: 15px;
    color: #000000;
}

.subscription form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscription input {
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    background-color: #d1d1d1;
    color: white;
}

.subscription input::placeholder {
    color: white;
    border: none;
}

.subscription button {
    padding: 10px;
    background-color: #ffc700;
    font-weight: bold;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscription button:hover {
    background-color: #000000;
    color: white;
}

.sidebar a {
    text-decoration: none;
}

/* Header con Imagen de Fondo */
.header-bg {
    background-image: url('/blog/entrada/images/imagen-background.webp');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    margin-top: 50px;
}

.header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.66);
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.header-content h1 {
    font-size: 1.8em;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}


/* Contenedor Principal */
.main-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    gap: 20px;
}

/* Artículo */
.blog-entry {
    flex: 3;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #000000;
}

#tip-p {
    color: rgb(0, 0, 0);
}

.blog-entry h2 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #000000;
}

.blog-entry p {
    font-size: 1em;
    margin-bottom: 20px;
}

.blog-entry ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-entry li {
    margin-bottom: 10px;
}

.blog-entry pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.blog-entry code {
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    color: #000000;
}

.blog-entry .tip {
    background-color: #ffd53d;
    padding: 15px;
    border-left: 8px solid #685700;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: bold;
}

.blog-entry .featured-image,
.blog-entry .content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.blog-entry .btn {
    display: inline-block;
    background-color: #ffc700;
    color: #000000;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    font-size: 1em;
    margin-top: 20px;
    font-weight: bold;
}

.blog-entry .btn:hover {
    background-color: #000000;
    color: white;
}

.container-aside {
    flex: 1.6;
}

/* Barra Lateral (Artículos Relacionados) */
.sidebar {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #000000;
}

.sidebar h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a{
    color: #000000;
    font-weight: bold;
}

.sidebar a:hover {
    color: #e3e606;
}

.container-footer {
    max-width: 1170px;
    margin: auto;
}

.row-footer {
    display: flex;
    flex-wrap: wrap;
}

ul {
    list-style: none;
}

.footer {
    background-color: #24262b;
    padding: 70px 0;
}

.footer-col {
    width: 25%;
    padding: 0 15px;
}

.footer-col h4 {
    font-size: 18px;
    color: #ffffff;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 500;
    position: relative;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: #ffc700;
    height: 2px;
    box-sizing: border-box;
    width: 50px;
}

.footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 16px;
    text-transform: capitalize;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    color: #bbbbbb;
    display: block;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
    color: #24262b;
    background-color: #ffffff;
}

.btn-cta {
    background-color: #3d0055;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-cta:hover {
    background-color: #5a1a7a;
}

/* Estilos para el ícono de compartir y el modal */
.share-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #d6cd22;
    color: #fff;
    padding: 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

.share-modal {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #d2d2d2;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.share-content {
    text-align: center;
}

.share-content h3{
    font-size: 1.5rem;
}

.share-content h3::after{
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: #000000;
    margin: 5px auto 5px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5em;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-icons a {
    color: #000000;
    font-size: 1.5em;
}

.copy-link {
    display: flex;
    gap: 10px;
}

.copy-link input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
}

.copy-link button {
    padding: 10px;
    background-color: #ffc700;
    font-weight: bold;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 767px) {
    .footer-col {
        width: 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 574px) {
    .footer-col {
        width: 100%;
    }
}

@media (min-width: 600px) {
    .header-bg {
        height: 400px;
    }

    .header-content h1 {
        font-size: 2.2em;
    }

    .header-content .meta {
        font-size: 1.1em;
    }

    .blog-entry h2 {
        font-size: 1.8em;
    }

    .blog-entry p {
        font-size: 1.1em;
    }

    .sidebar h3 {
        font-size: 1.8em;
    }
}

@media (min-width: 900px) {
    .header-bg {
        height: 500px;
    }

    .header-content h1 {
        font-size: 2.5em;
    }

    .header-content .meta {
        font-size: 1.2em;
    }

    .blog-entry h2 {
        font-size: 2em;
    }

    .blog-entry p {
        font-size: 1.2em;
    }

    .sidebar h3 {
        font-size: 2em;
    }

    .main-container {
        flex-direction: row;
    }
}