/* Variables de color */
:root {
    --primary-color: #2870a3;
    --accent-color: #c8ec2a;
    --text-color: #333;
    --background-color: #ffffff;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.main-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1em 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 1.5em;
    font-weight: bold;
}

.main-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-header nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    transition: background-color 0.3s;
}

.main-header nav a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Estilos del Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2em;
    border-radius: 10px;
}

.slide-content .cta-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.8em 1.5em;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 1em;
}

/* Secciones de contenido */
section {
    padding: 4em 2em;
    text-align: center;
}

.services, .products {
    background-color: #f4f4f4;
}

.service-list, .product-list {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
    margin-top: 2em;
}

.service-item, .product-item {
    background-color: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.product-item img {
    max-width: 100%;
    border-radius: 5px;
}

.product-item .price {
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 1em;
    display: block;
}

.main-footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2em;
}

/* --- Estilos para la página del Blog --- */
.blog-main {
    padding: 2em;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-main h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2em;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 3em;
}

.blog-post {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.blog-post img {
    width: 40%;
    object-fit: cover;
}

.post-content {
    padding: 2em;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-content h2 {
    color: var(--primary-color);
    margin-top: 0;
}

.post-meta {
    font-size: 0.9em;
    color: #777;
    margin-top: -1em;
    margin-bottom: 1em;
}

.read-more {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.8em 1.5em;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    margin-top: 1em;
}

.read-more:hover {
    background-color: #a9d61c;
}

@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;
    }

    .blog-post img, .post-content {
        width: 100%;
    }
}