/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-transform: 0;
    background-color: #fff;
    
}

:root{
    --primary: #336600; 
    --secondary: #99cc66;
    --light: #f5f5f5;
    --dark: #14141f;
    --yellow: #ffcc33;
    --orange: #ff9900;
    --grem: #907c46;
}

/* Header Styling */
header {
    width: 100%;
}
.content-navbar{
    background-color: var(--light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 2.5rem;
    padding-right: 2.5rem;
}

.navbar-brand0,
.navbar-brand1 {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
}

.navbar-brand0 .icon-home,
.navbar-brand1 .icon-blog {
    margin-right: 10px;
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.navbar-brand0 .lenupy,
.navbar-brand1 .blog {
    font-size: 1.3rem;
    font-weight: 600;
}

.navbar-brand0 .lenupy {
    color: var(--primary);
}

.navbar-brand1 .blog {
    color: var(--primary);
}

.navbar-brand0 .icon-home:hover,
.navbar-brand1 .icon-blog:hover {
    transform: scale(1.03);
}

/* Responsive Styling */
@media (max-width: 768px) {
    .nav-container {
        padding:  0.7rem;
    }
}

/* Portada Principal Styling */
.portada-principal {
    width: 100%;
    height: 40vh;
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.portada-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.texto-portada {
    position: absolute;
    bottom: 10%;
    left: 5%;
    color: var(--light);
    padding: 1rem;
    border-radius: 8px;
    max-width: 90%;
}

.texto-portada span {
    font-size: 4rem;
    font-style: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: -40px;
}

/* Loading Animation */
@keyframes loading {
    0% {
        opacity: 0;
        transform: scaleX(1);
    }
    50% {
        opacity: 0.5;
        transform: scaleX(1.5);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.lenias {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.lenias hr {
    border: none;
    height: 0.3rem;
    z-index: 1;
    animation: loading 1s infinite ease-in-out;
}

.hr1 {
    background-color: var(--primary);
    width: 10%;
}

.hr2 {
    background-color: var(--secondary);
    width: 10%;
    animation-delay: 0.2s;
}

.hr3 {
    background-color: var(--yellow);
    width: 10%;
    animation-delay: 0.4s;
}

@media (max-width: 768px) {
    .portada-principal {
        height: 30vh;
    }

    .texto-portada {
        bottom: 5%;
        left: 5%;
        padding: 0.5rem;
    }

    .texto-portada span {
        font-size: 3rem;
    }
}






/* General Styling */
.general {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 1366px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content1 {
    flex: 4;
    min-width: 300px;
}

.content2 {
    flex: 1;
    min-width: 300px;
}

.ventana-prencipal {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.col1, .col2 {
    flex: 1;
    min-width: 300px;
}

.col1 h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.lista li {
    margin-bottom: 0.5rem;
}

.lista a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

.lista a:hover {
    color: var(--secondary);
}

.col2 img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.col2 figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: italic;
}

.content article {
    margin-bottom: 2rem;
}

.content article img {
    border-radius: 8px;
}

.content article h1, .content article h2 {
    font-size: 2rem;
    color: var(--primary);
}

.content article p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Sidebar Styling */
.conjunto{
    position: sticky;
    top:3.5rem;
}
.sidebar-unique {
    background-color: var(--light);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.sidebar-section p {
    font-size: 1rem;
    line-height: 1.6;
}


.recent-posts li, .categories li {
    margin-bottom: 0.5rem;
}

.recent-posts a, .categories a {
    text-decoration: none;
    color: var(--dark);
    transition: color 0.3s ease;
}

.recent-posts a:hover, .categories a:hover {
    color: var(--light);
    background-color: var(--dark);
}

/* Social Icons Styling */
.social-icons a {
    color: var(--dark);
    font-size: 2rem;
    margin-right: 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.social-icons a:hover {
    color: var(--yellow);
    transform: scale(1.2) rotate(360deg);
    animation: hoverFadeIn 0.3s forwards;
}
@keyframes hoverFadeIn {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}


@media (max-width: 768px) {
    .general {
        padding: 1rem;
    }

    .content-container {
        flex-direction: column;
    }

    .ventana-prencipal {
        flex-direction: column;
    }

    .col1, .col2 {
        min-width: 100%;
    }

    .content1 {
        min-width: 100%;
    }
    .content2{
        display: none
    };
}











/* Footer Styling */
.cajafooter {
    background-color: var(--dark);
    color: var(--light);
    padding: 1rem 0;
    text-align: center;
}

.container-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.redesociales i {
    color: var(--light);
    font-size: 2rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.redesociales i:hover {
    color: var(--yellow);
    transform: scale(1.2) rotate(360deg);
}

.copy {
    font-size: 0.9rem;
    margin-top: 1rem;
    color: var(--grem);
}