@charset "utf-8";
/* CSS Document */

/* --- Base y Utilidades --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #5a6268;
    --accent-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-stack: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #495057;
}

/* --- Encabezado y Navegación --- */
.main-header {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.logo-icon {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.main-nav {
    /* Por defecto, es para el móvil, se ocultará en el CSS más abajo */
    position: fixed;
    top: 0;
    left: -280px;
    width: 250px;
    height: 100vh;
    background-color: var(--dark-color);
    padding: 2rem 1.5rem;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.main-nav.active {
    left: 0;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box input {
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.search-results-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.search-results-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results-dropdown li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.search-results-dropdown li a:hover {
    background-color: var(--light-color);
}

/* Nuevas reglas para el menú móvil */
.hamburger-menu, .mobile-menu-header, .close-menu {
    display: none; /* Oculto por defecto, se muestran en móvil */
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-mobile {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.close-menu {
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
}

.mobile-search-container {
    display: none; /* Oculto por defecto */
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-btn {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 1050;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.whatsapp-btn i {
    font-size: 2.5rem;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}


/* --- Secciones de la Página de Inicio --- */
main {
    /* margin-top: 5rem; */
}

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: #fff;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.slider-nav .nav-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-nav .nav-dot.active {
    background-color: #fff;
}

.company-section {
    padding: 5rem 0;
    padding-top: 5rem; /* Asegura que la sección de empresa no se superponga con el header fijo */
    background-color: var(--light-color);
}

.company-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.company-text {
    flex: 1;
}

.company-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.company-image img {
    width: 100%;
    height: auto;
    display: block;
    /* Elimina esta línea, ya que la animación ahora la maneja JS */
    /* transition: transform 0.5s ease; */
}

/*
.company-image:hover img {
    transform: scale(1.05);
}
*/

.categories-section {
    padding: 5rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.category-card h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.category-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.5) grayscale(100%);
}

.category-card:hover h3 {
    opacity: 1;
}

.services-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.service-card:hover img {
    filter: brightness(1.1);
}

.service-info {
    padding: 1.5rem;
}

.service-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.service-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.catalogs-banner {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.catalogs-banner h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.catalogs-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Pie de página (footer) --- */
.main-footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 0.5rem;
}

.footer-contact-info {
    background-color: transparent;
    padding: 0;
}

.footer-section p, .footer-section ul {
    font-size: 0.9rem;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-contact-info .info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 25px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #888;
}

/* --- Estilos para Páginas Secundarias --- */
.page-header {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 8rem 0 4rem;
}

.company-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/cabecera-mkdigital.png');
}

.services-header-page {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/cabecera-servicios-digitales.png');
}




.catalogs-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/cabecera-catalogos-web.png');
}

.videos-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/cabecera-videos-seo.png');
}

.contact-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/cabecera-contacto-mk-digital.png');
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.company-description {
    padding: 5rem 0;
}

.company-description .company-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.company-description .company-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.company-description .company-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.company-description .company-image:hover img {
    transform: scale(1.05);
}

.gallery-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.services-content-wrapper {
    padding: 5rem 0;
}

.main-content-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.sidebar {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li a {
    display: block;
    padding: 0.75rem 0;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar li a:hover, .sidebar li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.services-list-container {
    padding: 0;
}

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.services-page-grid .service-card {
    height: auto;
}

.service-detail-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 8rem 0 4rem;
}

.service-detail-header h1 {
    font-size: 3rem;
    margin: 0;
}

.service-detail-section {
    padding: 5rem 0;
}

.service-detail-content {
    display: flex; /* O display: grid; */
    gap: 30px; /* Espacio entre los elementos */
    align-items: flex-start; /* **CAMBIO CLAVE**: Alinea los elementos al inicio */
    flex-wrap: wrap; /* Permite que los elementos pasen a una nueva línea en móviles */
}

/* Contenedor principal de la galería */
.service-gallery-container {
    position: relative; /* **IMPORTANTE**: Establece el contexto de posicionamiento */
    width: 100%; /* O el ancho que desees en tu diseño */
    max-width: 600px; /* Ejemplo de límite para escritorio */
    margin-bottom: 20px;
}

.service-gallery-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-slide {
    min-width: 100%;
    transition: transform 0.5s ease;
}

.gallery-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Contenedor de las flechas */
.gallery-nav {
    position: absolute; /* **CAMBIO CLAVE**: Posicionamiento absoluto */
    top: 50%; /* Centrado verticalmente */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%); /* Ajuste de centrado */
    z-index: 10; /* Asegura que las flechas estén por encima de las imágenes */
    padding: 0 10px; /* Un poco de espacio en los lados */
}



.gallery-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.gallery-nav button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-nav .gallery-prev-btn {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.gallery-nav .gallery-next-btn {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.service-info-details {
    flex: 1;
}

/* Para asegurar que el título no tenga margen superior */
.service-info-details .section-title {
    margin-top: 0; /* Elimina cualquier margen superior por defecto */
}



.service-description {
    font-size: 1.1rem;
    color: var(--dark-color);
	 text-align: justify;
}

.service-benefits ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-benefits li {
    padding: 0.5rem 0;
    color: var(--secondary-color);
}

.service-benefits li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.service-action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-options {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.share-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.share-icon:hover {
    color: var(--primary-color);
}

.back-button-container {
    text-align: center;
}

.related-images-section {
    margin-top: 4rem;
    text-align: center;
}

.related-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.related-image-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-image-item:hover img {
    transform: scale(1.1);
}

.catalogs-content-section {
    padding: 5rem 0;
}

.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.catalog-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.catalog-item:hover {
    transform: translateY(-5px);
}

.catalog-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.catalog-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.catalog-item img:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.catalog-item h3 {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.videos-content-section {
    padding: 5rem 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.video-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-item h3 {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.contact-content-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info, .contact-form-container {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-info .info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px;
}

.contact-info .social-links a {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.contact-info .social-links a:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form-container {
    display: flex;
    flex-direction: column;
}

.contact-form-container .form-group {
    width: 100%;
}

.map-section {
    margin-top: 3rem;
    padding: 0;
}

.map-section iframe {
    border-radius: 10px;
}

/* --- Media Queries --- */

/* Lógica para escritorio (mayor a 992px) */
@media (min-width: 993px) {
    .main-nav {
        display: flex !important; /* Muestra el menú de escritorio por defecto */
        flex-grow: 1;
        justify-content: center;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        flex-direction: row;
    }
    .main-nav ul {
        display: flex; /* Muestra la lista de enlaces */
        flex-direction: row;
        gap: 1.5rem;
    }
    .main-nav a {
        color: var(--dark-color);
    }
    .search-container.desktop-only {
        display: flex;
    }
    .mobile-search-container, .hamburger-menu, .mobile-menu-header {
        display: none !important;
    }
}

/* Lógica para móvil (menor o igual a 992px) */
@media (max-width: 992px) {
    .nav-container {
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    .logo {
        flex-grow: 1;
        order: 1;
    }
    .header-tools {
        order: 2;
        gap: 1rem;
    }
    
    .main-nav {
        /* Permite la transición del menú móvil, por defecto está oculto */
        left: -280px;
    }
    
    .main-nav.active {
        display: flex;
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .main-nav a {
        color: #fff;
        padding: 0.75rem 0;
    }
    
    .main-nav a::after {
        background-color: var(--primary-color);
    } 
    
    .search-container.desktop-only {
        display: none;
    }
    
    .hamburger-menu {
        display: block !important;
        font-size: 1.5rem;
        color: var(--dark-color);
        cursor: pointer;
    }

    .mobile-menu-header {
        display: flex;
    }

    .close-menu {
        display: block;
    }
    
    .mobile-search-container {
        display: block;
    }

    /* Resto de las reglas móviles que ya tenías */
    .company-content {
        flex-direction: column;
        gap: 2rem;
    }
    .services-grid, .services-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalogs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* ... Las reglas para 768px que ya tenías ... */
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .categories-grid, .services-grid, .services-page-grid, .videos-grid {
        grid-template-columns: 1fr;
    }
    .main-content-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .catalogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    /* ... Las reglas para 576px que ya tenías ... */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-section h4::after {
        margin: 0.5rem auto 0;
    }
    .catalogs-grid {
        grid-template-columns: 1fr;
    }
}


/* Estilos para que el slider ocupe toda la pantalla */
.hero-section {
    position: relative;
    height: 100vh; /* 'vh' significa "viewport height" y hace que ocupe el 100% de la altura de la pantalla */
    overflow: hidden; /* Oculta cualquier parte de la imagen que se salga del contenedor */
}

/* Estilos para el contenedor del slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Estilos para cada imagen del slider */
.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Por defecto, todas las imágenes están ocultas */
    transition: opacity 1s ease-in-out; /* Transición para un cambio suave de imagen */
}

.hero-slider .slide.active {
    opacity: 1; /* Solo la imagen con la clase 'active' es visible */
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para que llene el contenedor sin distorsionarse */
    object-position: center; /* Centra la imagen dentro del contenedor */
}





/* --- Botón Flotante de WhatsApp --- */
.whatsapp-btn {
    /* Posición Fija: Se queda en la misma posición al hacer scroll */
    position: fixed;
    /* Ubicación: Esquina inferior derecha */
    bottom: 20px;
    right: 20px;
    /* Estilo del botón */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366; /* Color de WhatsApp */
    color: white;
    font-size: 2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Superposición: Se asegura de que esté sobre otros elementos */
    z-index: 1000;
    /* Animación al pasar el mouse */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


/* Corrección de las imágenes de muestra */
.related-images-section {
    margin-top: 40px; /* Agrega espacio entre la sección y el botón de "Volver" */
}

.related-images-grid {
    display: grid;
    /* Crea una cuadrícula de 3 columnas para las imágenes */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* Espacio entre las imágenes */
    justify-content: center; /* Centra el contenido en el eje principal */
    align-items: center;
}

.related-image-item {
    text-align: center; /* Asegura que la imagen esté centrada dentro de su contenedor */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-image-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.related-image-item:hover {
    transform: translateY(-5px); /* Pequeño efecto al pasar el mouse */
}

 /* Estilos para el contenedor de mensajes 
    .form-messages {
        margin-top: 15px;
        padding: 10px;
        border-radius: 5px;
        font-weight: bold;
        text-align: center;
        display: none;*/ /* Oculto por defecto 
    }

    .form-messages.success {
        background-color: #d4edda;
        color: #155724;
        display: block;
    }

    .form-messages.error {
        background-color: #f8d7da;
        color: #721c24;
        display: block;
    }

    .form-messages.loading {
        background-color: #cce5ff;
        color: #004085;
        display: block;
    }*/
	
	
	/* ========================================================================= */
/*                             Estilos del Blog                             */
/* ========================================================================= */

.blog-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.blog-post {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-post:hover .post-image {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.post-summary {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--heading-color);
}

.share-options-blog {
    display: flex;
    gap: 10px;
}

.share-icon-blog {
    font-size: 1.2em;
    color: #999;
    transition: color 0.3s;
}

.share-icon-blog:hover {
    color: var(--primary-color);
}

/* Estilos de la Barra Lateral (Sidebar) */
.sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.5em;
    color: var(--heading-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.search-form {
    display: flex;
    gap: 5px;
}

.search-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-form button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #007bff;
}

.category-list, .subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list > li {
    margin-bottom: 10px;
}

.category-list .category-link {
    display: block;
    font-weight: 600;
    color: var(--heading-color);
    padding: 8px 10px;
    background-color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.category-list .category-link:hover {
    background-color: #e9ecef;
}

.subcategory-list {
    margin-top: 5px;
    margin-left: 20px;
}

.subcategory-list li a {
    display: block;
    color: #555;
    padding: 5px 0;
    transition: color 0.3s;
}

.subcategory-list li a:hover {
    color: var(--primary-color);
}

.single-post {
    box-shadow: none;
    padding: 0;
    border: none;
}

.single-post .post-body h2,
.single-post .post-body h3,
.single-post .post-body h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.single-post .post-body h2 {
    font-size: 2.2em;
}

.single-post .post-body h3 {
    font-size: 1.8em;
}

.single-post .post-body p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

/* Reglas para las imágenes con efecto de zoom en el contenido del post */
.post-body img.zoomable {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
    margin-bottom: 20px;
}

.post-body img.zoomable:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.post-body a:not(.btn):not(.post-link) {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s;
}

.post-body a:not(.btn):not(.post-link):hover {
    color: var(--secondary-color);
}

/* ========================================================================= */
/* Justificar el texto de los artículos y resúmenes */
/* ========================================================================= */
.single-post .post-body,
.blog-post .post-summary {
    text-align: justify;
}






/* ========================================================================= */
/* Ajustes de diseño para los resultados de búsqueda en móvil */
/* ========================================================================= */
.search-results ul,
.mobile-search-results ul {
    list-style-type: none; /* Elimina los puntos de la lista */
    padding: 0; /* Quita el padding por defecto del navegador */
    margin: 0; /* Quita el margen por defecto */
}

.search-results li,
.mobile-search-results li {
    padding: 8px 15px; /* Ajusta el espacio interno para que el texto no se pegue a los bordes */
    margin-bottom: 5px; /* Reduce el espacio entre cada resultado */
    border-bottom: 1px solid #eee; /* Agrega una línea divisoria sutil entre cada resultado */
    background-color: #fff; /* Fondo blanco para cada elemento */
    border-radius: 4px; /* Bordes ligeramente redondeados */
    transition: background-color 0.3s ease; /* Transición suave al pasar el mouse */
}

.search-results li:hover,
.mobile-search-results li:hover {
    background-color: #f5f5f5; /* Color al pasar el mouse */
}

.search-results a,
.mobile-search-results a {
    text-decoration: none; /* Elimina el subrayado de los enlaces */
    color: #333; /* Color de texto oscuro para mayor legibilidad */
    font-weight: 500;
    display: block; /* Hace que el enlace ocupe todo el espacio del li */
}




/* ========================================================================= */
/* Estilos para el enlace de correo electrónico en el pie de página */
/* ========================================================================= */
.footer-email-link p {
    margin: 0;
    padding: 0;
    white-space: nowrap; /* Evita saltos de línea no deseados en escritorio */
    overflow: hidden;
    text-overflow: ellipsis; /* Opcional: añade puntos suspensivos si el texto se desborda */
}
.footer-email-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Oculta el pseudo-elemento por defecto en escritorio */
.footer-email-link:after {
    content: none;
}

/* ========================================================================= */
/* Ajustes para móviles */
/* ========================================================================= */
@media (max-width: 768px) {
    /* Oculta la dirección de correo completa en móviles */
    .footer-email-link p span {
        display: none;
    }
    
    /* Muestra el texto acortado usando el pseudo-elemento en móviles */
    .footer-email-link:after {
        content: "marketing@"; /* Opcional: puedes usar un texto más corto aquí */
        display: inline-block;
        margin-left: 5px;
        font-size: 14px;
        color: #fff; /* Asegura que el texto sea blanco */
    }
}





/* ========================================================================= */
/* Ajustes de correo electrónico en página de contacto para móviles */
/* ========================================================================= */
@media (max-width: 768px) {
    /* Oculta la dirección de correo completa */
    .info-email-item .info-email-full {
        display: none;
    }
    
    /* Muestra un texto más corto usando el pseudo-elemento */
    .info-email-item:after {
        content: "marketing@";
        margin-left: 5px;
        color: #333;
        text-decoration: none !important; /* Fuerza la regla a aplicarse */
    }
}