/* Estilos Generales */
body {
    margin-left: 1rem;
    margin-right: 1em;
    color: rgb(91, 92, 93);
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header del Post */
.post-header {
    background-color: #f697ad;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.post-header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.post-header .post-date {
    margin-top: 0.5rem;
    font-size: 1rem;
    opacity: 0.8;
}

/* Main Content */
.post-main {
    display: flex;
    flex-direction: column; /* Por defecto en columnas */
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    gap: 20px;
}

/* Apilamiento lateral en pantallas grandes */
@media (min-width: 992px) {
    .post-main {
        flex-direction: row; /* Cambia a filas en pantallas grandes */
        align-items: flex-start;
    }

    .post-article {
        flex: 3; /* El artículo ocupa más espacio */
    }

    .sidebars-container {
        flex: 1; /* Los sidebars ocupan menos espacio */
        display: flex;
        flex-direction: column;
        gap: 20px; /* Espacio entre los sidebars */
    }

    .sidebar {
        width: 100%; /* Asegura que los sidebars ocupen todo el ancho */
    }
}

/* Article Content */
.post-article {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    /* flex: 2; */ /* Puedes comentar o ajustar según el flex asignado */
}

.post-image-container img {
    width: 100%;
    height: auto;
    max-height: 350px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #666;
}

.post-content ul {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.post-content ul li {
    margin-bottom: 0.5rem;
}

blockquote {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f9f9f9;
    border-left: 5px solid #f697ad;
    font-style: italic;
    color: #555;
}

.post-tags {
    margin-top: 2rem;
}

.post-tags span {
    display: inline-block;
    background-color: #f697ad;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Botones de Compartir */
.share-widget {
    text-align: center;
    margin-top: 2rem;
}

.share-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #444;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.share-buttons a {
    color: #fff;
    background-color: #666;
    padding: 12px;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-buttons a:hover {
    background-color: #f697ad;
}

/* Sidebar Styling */
.sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #444;
}

.post-list {
    padding: 0;
    list-style: none;
    margin: 0;
}

.post-list li {
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.post-list li:last-child {
    margin-bottom: 0;
}

.post-list li a {
    text-decoration: none;
    color: #f697ad;
    transition: color 0.3s ease;
    display: block;
}

.post-list li a:hover {
    color: #444;
}

/* Estilos de iconos de contacto */
.contact-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-icon {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background-color: #f7f7f7;
    color: #444;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-icon i {
    margin-right: 10px;
    font-size: 20px;
}

/* Colores específicos para cada tipo de contacto */
.contact-icon.whatsapp {
    background-color: #25d366;
    color: #fff;
}

.contact-icon.email {
    background-color: #f39c12;
    color: #fff;
}

.contact-icon.phone {
    background-color: #3498db;
    color: #fff;
}

.contact-icon.instagram {
    background-color: #e4405f;
    color: #fff;
}

.contact-icon:hover {
    background-color: #ddd;
    color: #444;
}

/* Footer */
.post-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Estilos Responsivos */
@media (max-width: 768px) {
    .post-main {
        flex-direction: column;
        padding: 1rem 0;
    }

    .post-article {
        margin-bottom: 1rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content p {
        font-size: 1rem;
    }

    blockquote {
        font-size: 0.9rem;
    }

    .share-buttons a {
        padding: 8px;
    }
}


/* Botón Flotante de Contacto */
.floating-contact-button {
    display: none; /* Oculto por defecto */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f697ad;
    color: #fff;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

.floating-contact-button i {
    font-size: 24px;
}

/* Menú Desplegable de Contacto */
.contact-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    z-index: 1001;
}

.contact-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
}

.contact-modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-modal .close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.contact-modal .close-button:hover {
    color: #444;
}

/* Ajustar estilos de los íconos en el modal */
.contact-modal .contact-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-modal .contact-icon {
    justify-content: center;
    padding: 12px;
    font-size: 18px;
}

/* Mostrar el botón y ocultar el sidebar en pantallas pequeñas */
@media (max-width: 768px) {
    .floating-contact-button {
        display: block;
    }

    .contact-sidebar {
        display: none;
    }
}
