/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    box-sizing: border-box;
}

/* Header */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

header .logo {
    max-width: 100px;
}

header h1 {
    margin: 10px 0;
    font-size: 1.5em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

nav ul li {
    margin: 5px 10px; /* Reducir el margen para dispositivos móviles */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em; /* Reducir el tamaño de la fuente en móviles */
}

/* Hero Section */
.hero {
    background-color: #3498db;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.hero h2 {
    margin-bottom: 20px;
    font-size: 1.8em;
}

.hero p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #27ae60;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
}

/* Servicios */
.services {
    padding: 40px 20px;
    background-color: #ecf0f1;
    text-align: center;
}

.services h2 {
    margin-bottom: 40px;
    font-size: 1.8em;
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.service-item {
    background-color: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ocupa todo el ancho en móviles */
    max-width: 300px; /* Limitar el ancho máximo */
}

.service-item h3 {
    font-size: 1.2em;
}

.service-item p {
    font-size: 0.9em;
}

/* Sobre Nosotros */
.about {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center;
}

.about h2 {
    font-size: 1.8em;
}

.about p {
    font-size: 1.1em;
}

/* Blog */
.blog {
    padding: 40px 20px;
    background-color: #ecf0f1;
    text-align: center;
}

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

.blog-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.post {
    background-color: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ocupa todo el ancho en móviles */
    max-width: 300px; /* Limitar el ancho máximo */
}

.post h3 {
    font-size: 1.2em;
}

.post p {
    font-size: 0.9em;
}

/* Estilos para la sección del blog */
.blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.blog-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: calc(33.333% - 40px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-item h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.blog-item p {
    font-size: 0.9em;
    color: #555;
}

.blog-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-detail h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.blog-detail p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.blog-header h2 {
    font-size: 1.5em;
    margin: 0;
}

.reading-time {
    font-size: 0.7em;
    color: #ccc;
    margin: 10px 0;
}

.blog-title {
    font-size: 1.8em;
    margin: 10px 0;
}

.separator {
    border-bottom: 1px solid #444;
    margin: 10px 0;
}

.blog-content {
    font-size: 1.1em;
    line-height: 1.6;
}

.cta-button {
    background-color: #27ae60;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
}

/* Contenedor de la imagen */
.image-container {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;     /* Centra verticalmente */
    margin: 20px 0;         /* Espacio arriba y abajo */
}

/* Estilos para la imagen del blog */
.blog-image {
    width: 95%;             /* Tamaño al 95% */
    max-width: 800px;       /* Limita el ancho máximo */
    height: auto;           /* Mantiene la proporción */
    border-radius: 8px;     /* Bordes redondeados */
}

footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}


/* Contacto */
.contact {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center;
}

.contact h2 {
    font-size: 1.8em;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact input, .contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact button {
    background-color: #27ae60;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* Estilos para el botón de WhatsApp */
.whatsapp-contact {
    margin-top: 20px;
    text-align: center;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background-color: #25d366; /* Color de WhatsApp */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.whatsapp-button img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.whatsapp-button:hover {
    background-color: #128c7e; /* Color de WhatsApp al hacer hover */
}

/* Contenedor de botones de compartir */
.share-buttons {
    display: flex;
    gap: 10px; /* Espacio entre botones */
    margin: 20px 0; /* Margen arriba y abajo */
    justify-content: center; /* Centra los botones */
}

/* Estilos para cada botón */
.share-button {
    display: inline-block;
    padding: 10px;
    border-radius: 50%; /* Botones circulares */
    background-color: #f4f4f4; /* Color de fondo */
    transition: background-color 0.3s ease; /* Efecto de transición */
}

.share-button img {
    width: 24px; /* Tamaño del icono */
    height: 24px;
}

/* Colores específicos para cada red social */
.share-button.whatsapp:hover {
    background-color: #25d366; /* Verde de WhatsApp */
}

.share-button.facebook:hover {
    background-color: #1877f2; /* Azul de Facebook */
}

.share-button.twitter:hover {
    background-color: #1da1f2; /* Azul de Twitter */
}

.share-button.linkedin:hover {
    background-color: #0077b5; /* Azul de LinkedIn */
}

.share-button.email:hover {
    background-color: #ea4335; /* Rojo de Gmail */
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.2em;
    }

    nav ul li a {
        font-size: 0.8em;
    }

    .hero h2 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .cta-button {
        font-size: 0.9em;
    }

    .services h2, .about h2, .blog h2, .contact h2 {
        font-size: 1.5em;
    }

    .service-item, .post {
        width: 100%;
        margin: 10px 0;
    }
}
