@import url('https://fonts.googleapis.com/css2?family=Playwrite+DE+Grund:wght@100..400&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Playwrite DE Grund", cursive;
}

/* Estilos generales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Contenedor del loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Contenedor de las bolitas */
.loader {
    display: flex;
    justify-content: space-between;
    width: 100px;
}

/* Estilos de las bolitas */
.dot {
    width: 20px;
    height: 20px;
    background-color: #f30d5e; /* Color de la bolita */
    border-radius: 50%;
    animation: wave 1s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i));
}

/* Animación de ola para las bolitas */
@keyframes wave {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-15px);
    }
}

/* Texto de "Cargando..." */
.loading-text {
    margin-top: 10px;
    font-size: 15px;
    color: #f20d55;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
}

/* Animación de ola para el texto */
.loading-text span {
    display: inline-block;
    animation: wave-text 1s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes wave-text {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
  width: 100px;
}

.nav-icons i {
    font-size: 24px;
    margin: 0 10px;
    cursor: pointer;
}

.menu-toggle {
    cursor: pointer;
}
.menu-toggle i {
    font-size: 24px;
}

/* Menú lateral */
.sidebar {
    position: fixed;
    left: -250px;
    top: 56px;
    width: 250px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s;
    z-index: 1000;
}

.sidebar ul {
    list-style: none;
    padding: 20px;
}

.sidebar ul li {   
    margin: 20px 0;
    font-weight: bold;
}


.sidebar ul li a {
    width: 100%;
    text-decoration: none;
    color: rgb(2, 8, 14);
    font-size: 18px;
}
.sidebar ul li a:hover {
    background-color: transparent;
    border: 2px solid rgb(229, 26, 148);
    padding: 5px;
    width: 100%;
    color: rgb(246, 13, 145);
    border-radius: 10px;
}


.sidebar-active {
    left: 0;
}

/* Ocultar el contenedor de búsqueda por defecto */
/* Search bar */
.search-bar {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    padding: 10px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.suggestions {
    margin-top: 5px;
}

.suggestions div {
    padding: 10px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-top: none;
    background-color: white;
}

.suggestions div:hover {
    background-color: #f0f0f0;
}

.home {
    text-align: center;
  
    margin-top: 100px;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#post-title {
    font-size: 20px;
    padding: 0 10px;
}
.post-preview {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.post-preview img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-right: 1rem;
}

.post-info h2 {
    color: #3e4a61;
}

.post-info p {
    font-size: 0.9rem;
    color: #555;
    margin: 0.5rem 0;
}
.post-info h2  {
    text-decoration: none;
    font-size: 17px;
}
.post-info a{
    text-decoration: none;
}

.read-more a {
    color: #ff5722;
    text-decoration: none;
    font-weight: bold;
}

/* Estilos básicos para el contenedor de la entrada *//* Contenedor principal */
#blog-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

/* Tarjetas */
.post-preview {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.post-preview:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

/* Imagen */
.post-preview img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
}

.post-preview:hover img {
    transform: scale(1.07);
}

/* Información */
.post-info {
    padding: 18px;
}

.post-info h2 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.post-info h2 a {
    color: #111;
    text-decoration: none;
    transition: color .3s ease;
}

.post-info h2 a:hover {
    color: #d62828; /* Puedes cambiar color principal */
}

/* Descripción */
.post-info p {
    color: #555;
    font-size: 14px;
    line-height: 1.5em;
    margin-bottom: 14px;
}

/* Botón leer más */
.read-more a {
    display: inline-block;
    padding: 10px 18px;
    background: #d62828;
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .3s ease;
}

.read-more a:hover {
    background: #a71d1d;
}

/* Modo responsive */
@media(max-width: 450px){
    #blog-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    }

    .post-preview img {
        height: 200px;
    }
}
/* Contenedor del post */
#post-content {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px 60px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    animation: fadeIn .6s ease;
}

/* Animación suave */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Imagen principal */
.post-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    margin-bottom: 25px;
}

/* Títulos dentro del contenido */
#post-content h2 {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #222;
    font-weight: 600;
    border-left: 5px solid #d62828;
    padding-left: 10px;
}

/* Párrafos */
#post-content p {
    font-size: 16px;
    line-height: 1.7em;
    color: #444;
    margin-bottom: 16px;
}

/* Listas */
#post-content ul, 
#post-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

#post-content li {
    font-size: 16px;
    line-height: 1.6em;
    margin-bottom: 8px;
}

/* Botón de video */
.video-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #d62828;
    padding: 12px 22px;
    border-radius: 10px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background .3s ease, transform .2s ease;
    margin-top: 15px;
}

.video-button:hover {
    background: #a71d1d;
    transform: scale(1.03);
}

/* Icono YouTube */
.video-button i {
    font-size: 20px;
}

/* Responsive */
@media(max-width: 650px){
    #post-content {
        margin-top: 20px;
        padding: 15px;
    }

    #post-content h2 {
        font-size: 21px;
    }

    #post-content p, 
    #post-content li {
        font-size: 15px;
    }
}



/* Footer */
footer {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: auto; /* Empuja el footer hacia el final de la página */
}


.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.social-media {
    margin-bottom: 15px;
}

.social-media a {
    color: #fff;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #1da1f2;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 16px;
}

.footer-links a:hover {
    text-decoration: underline;
}

footer p {
    font-size: 14px;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .social-media a {
        font-size: 20px;
        margin: 0 5px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
    }

    .footer-links a {
        margin-bottom: 10px;
    }
}

