@charset "utf-8";
/*
	Name: Casa Mega
	Date: March 2016
	Description: Styles for all versions. Responsive Layout.
	Version: 1.0
	Author: Web Line Service
	Autor URI: http://www.weblineservice.com
*/


/* Google Fonts */
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,400italic,700,800);

@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');


@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

@import url('https://fonts.googleapis.com/css2?family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap');

/**************/
/* Structure */
/************/

a {
    cursor: pointer;
}

body {
    width: 100%;
    background: #fff;
    margin: 0 auto;
    overflow-y: scroll;
    overflow-x: hidden;
    
}
ul li{
    font-family: "DM Sans", sans-serif;
}


/* Top Bar */

div.topbar {
    width:100%;
    height:32px;
    background:#000;
}

    div.topbar-content {
        width:100%;
        height:32px;
        max-width:1200px;
        margin:0 auto;
    }
    
        div.topbar-content a {
            font-family: Trebuchet MS,Tahoma,sans-serif;
            font-size:12px;
            color:#fff;
            text-decoration:none;
            display:inline-block;
            line-height: 37px;
            padding:0 0 0 17px;
            margin:0 0 0 20px;
            background:url('../images/build/misc-topbar.gif') no-repeat center left;
            float:right;
        }
        
             div.topbar-content a:hover { color:#D20200; }

             .icon{
                
                padding:0 0 0 0px;
                margin:0 0 0 0px;
                  }
             
/* Header */

header {
    width:100%;
    height:auto;
}
    div.header-content{
        width:100%;
        height:auto;
        min-height:93px;
        max-width:1200px;
        margin:0 auto;
    }
    
        div.header-content a.logo img {
  display: block;
  width: 100%;
  max-width: 100px;
  border: none;
  float: left;
  padding: 1rem 0;
}

/* Login */
         
div.header-login {
    width: initial;
    height:auto;
    float:right;
    margin:1.7% 0 0 0;
}

div.header-login span {
    font-family: 'Open Sans', sans-serif;
    font-size:17px;
    color:#D20200;
    display:block;
    margin:0 0 2.5% 0;
    padding:0 0 0 30px;
    background:url('../images/build/icon-mayoristas.gif') no-repeat center left;
}

div.header-login input[type="button"] {
    font-family: Trebuchet MS, Tahoma, sans-serif;
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    display: inline-block;
    width: auto;
    height: auto;
    padding: 5px 15px;
    background: #000000;
    border: none;
    cursor: pointer;
}

div.header-login {
    width: auto;
    height: auto;
    float: right;
    margin: 1.7% 0 0 0;
}
 
 /* Menu */
div.nav {
    width:100%;
    height:auto;
    background:#d2232a;
    margin:0 0 6px 0;
}
div.nav-content {
    width:100%;
    height:auto;
    max-width:1200px;
    margin:0 auto;
}

div.nav-content form.advancesearch {
    display: block;
    width: 40%;
    float: left;
    padding: 0.8% 1% 0.5% 0%;
    position: relative;
}

div.nav-content form.advancesearch .input_container {
    position: relative;
    width: 100%;
}

div.nav-content form.advancesearch input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
}

div.nav-content form.advancesearch button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

div.nav-content form.advancesearch button img {
    width: 16px;
    height: 16px;
    display: block;
}

/* Slider */

/*div.slider {
    width:100%;
    height:auto;
    background:#efefef;
    margin:0 0 8px 0;
}

    div.slider-content {
        width:100%;
        max-width:1200px;
        height:auto;
        margin:0 auto;
        background:#fff;
        border:1px solid #ccc;
    }*/

    /* 1. Contenedor principal del Slider: 
   Asegura que la franja de fondo (roja, en tu caso) ocupe el 100% del ancho del navegador. 
   Esto ya estaba correcto. */
div.slider {
    width: 100%; /* ¡Esencial para full width! */
    height: auto;
    background: #efefef; /* O el color que uses para el fondo exterior */
    margin: 0 0 8px 0;
}

/* 2. Contenedor del Contenido (imágenes, textos, etc.): 
   Este es el que debes cambiar para que también ocupe el 100% del ancho del navegador, 
   y eliminar el "max-width" y el "margin: 0 auto;" */
div.slider-content {
    width: 100%; /* ¡Cambiado a 100%! */
    /* **ELIMINAR:** max-width: 1200px;  <-- Esto limitaba el ancho. */
    /* **ELIMINAR:** margin: 0 auto; <-- Esto centraba el contenido limitado. */
    height: auto;
    /* Los estilos visuales internos pueden mantenerse si son necesarios */
    /* background: #fff; */ 
    /* border: 1px solid #ccc; */
}

/* Adicional: Asegúrate de que los elementos dentro de slider-content (como las imágenes 
   o los bloques de texto 'Cocina' y 'Jardinería') también tengan un ancho del 100% */
.slider-content > * {
    width: 100%;
    /* Y ajusta la altura según sea necesario */
}
/* Importamos una fuente legible si es posible (ej: Poppins) */
/* Si no tienes @import en tu HTML, usa el <link> en el head */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap'); */

.section-empresa {
     font-family: "DM Sans", sans-serif; /* Fuente base limpia */
    padding: 30px 20px; /* Padding general, 20px de margen en los lados */
    max-width: 1200px; /* Limita el ancho del contenido principal para mejor lectura */
    margin: 0 auto; /* Centrar el bloque */
    color: #333; /* Color de texto oscuro para buen contraste */
}

/* Título Principal */
.section-empresa h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #cc0000; /* Un color de acento, similar al rojo de la imagen anterior */
}

/* Subtítulos de Categorías */
.section-empresa h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Estilo para Párrafos */
.section-empresa p {
    font-size: 1em;
    line-height: 1.7; /* Aumenta el espaciado entre líneas para mejor lectura */
    margin-bottom: 20px;
    text-align: justify; /* Justifica el texto para un bloque más formal (opcional) */
}

/* Estilo específico para el bloque de marca (opcional) */
.brand-info {
    padding: 15px;
    border-left: 5px solid #cc0000;
    background-color: #f9f9f9;
    margin: 30px 0;
}

.brand-info p {
    margin-bottom: 0;
    font-style: italic;
}

/* --- CORRECCIÓN DE MÁRGENES EN LISTAS (Problema Responsive) --- */

.lista-categorias {
    list-style-type: disc; /* Vuelven los puntos si se habían quitado */
    padding-left: 20px; /* Define un padding consistente para la lista */
    margin-bottom: 25px;
}

.lista-categorias li {
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    /* Aseguramos que el contenido del li no se desborde */
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

/* Media Query para asegurar la corrección en móviles */
@media (max-width: 600px) {
    /* La clave para arreglar el desborde de listas en responsive 
       es asegurar que el margen izquierdo (que el navegador usa 
       para posicionar las viñetas) sea razonable y no se sume 
       a márgenes laterales indeseados. */
    .section-empresa {
        /* Asegura que el padding lateral sea el límite final del contenido */
        padding: 20px 15px; 
    }
    
    .lista-categorias {
        /* Ajustamos el padding izquierdo para que la viñeta no se "monte" */
        padding-left: 20px; 
        /* Resetear el margen izquierdo si algún framework lo afectó */
        margin-left: 0; 
    }
}
/****EMPRESA SECTION ICONOS*******/

/* Importar Font Awesome (si no está en el HTML) */


/* --- Estilos Generales de la Sección --- */
.services-section {
    padding: 60px 20px;
    text-align: center;
     font-family: "DM Sans", sans-serif;
    /* Fondo con gradiente */
    /*background: linear-gradient(135deg, #4b0082 0%, #00aaff 100%); */
    background: #efefef;
    color: #fff;
}

.services-section h3 {
    font-size: 18px;
    margin-bottom: 50px;
    font-weight: 600;
    color: #000;
}

/* --- Contenedor Principal de las Cards con CSS Grid --- */
.services-grid {
    display: grid;
    /* Por defecto: Mínimo 280px por columna, se ajustan automáticamente */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Estilos de Cada Tarjeta (Card) --- */
.caracteristica-item {
    background-color: #fff; /* Fondo blanco para las tarjetas */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* Contenido alineado a la izquierda */
    color: #333;
    /* Aseguramos que el texto sea legible y no demasiado largo */
    display: flex;
    flex-direction: column; 
    align-items: flex-start; /* Alinea los elementos al inicio de la tarjeta */
}

.caracteristica-item:hover {
    transform: translateY(-5px); /* Efecto de levantar la tarjeta */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Contenedor del Ícono con el círculo de fondo */
.icono-contenedor {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    background-color: #efefef;
}

/* Estilos del Ícono de Font Awesome */
.icono-contenedor i {
    font-size: 28px;
    color: #d2232a; /* Color morado principal */
}

/* Título de la tarjeta (si usas la etiqueta H3) */
.caracteristica-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
}

/* Párrafo de la tarjeta */
.caracteristica-item p {
    font-size: 0.9em;
    line-height: 1.5;
    color: #666;
}

/* --- Media Queries para Responsive Design --- */

/* Tabletas y Desktops Medianos (3 columnas) */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

/* Desktops Grandes (4 columnas) */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas para el diseño original de la grilla 8x2 */
    }
}
 



/* --- Estilos de la Sección General --- */

/* La clase base "products-section" ahora maneja el padding y el ancho del fondo */
.products-section {
    font-family: 'DM Sans', sans-serif;
    padding: 40px 20px; /* Padding interno de la sección */
    max-width: 100%; /* Permite que el fondo ocupe todo el ancho de la ventana */
    margin: 0 auto;
}

/* ESTILOS DE FONDO Y SEPARACIÓN */

/* 1. Fondo Gris Claro para "Últimos Productos" */
.section-novedades {
    background-color: #efefef; /* Fondo gris claro solicitado */
}

/* 2. Fondo Blanco/Predeterminado para "Productos Destacados" */
.section-destacados {
    background-color: #ffffff; /* Fondo blanco */
}

/* Contenedor de ancho limitado para centrar el contenido (Grid y Título) */
.products-grid,
.section-title {
    max-width: 1200px; /* Limita el ancho del contenido interno */
    margin-left: auto;
    margin-right: auto;
}

/* El margen inferior se aplica solo al grid dentro de la sección */
.products-grid {
    display: grid;
    /* Mínimo 200px por columna, se ajustan automáticamente (4 columnas en desktop) */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 50px; /* Espacio debajo del grid */
}


/* --- Títulos de Sección --- */
.section-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    display: block;
}

.section-title span {
    color: #cc0000; /* Color rojo para la palabra "Productos" */
}


/* --- Estilos de la Tarjeta de Producto --- */
.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* --- Imagen de Producto (Placeholder) --- */
.product-image-placeholder {
    width: 100%;
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image-placeholder i {
    font-size: 50px;
    color: #cc0000;
}

.product-image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Categoría del Producto --- */
.product-category {
    font-size: 0.75em;
    font-weight: 700;
    color: #cc0000;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Título/Nombre del Producto --- */
.product-title {
    font-size: 1em;
    font-weight: 500;
    color: #333;
    min-height: 40px;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* --- Botón Consultar --- */
.consultar-button {
    background-color: #cc0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: auto;
}

.consultar-button:hover {
    background-color: #a30000;
}



/* Novedades */



/* Destacados */

            div.destacados {
                width: 100%;
                height: auto;
                background: #fff;
                padding: 1em;
            }

/* Content */

div.content {
    width:100%;
    max-width:1200px;
    height:auto;
    min-height:300px;
    margin:0 auto;
}

    div.content div.main-content {
        width:100%;
        min-height:300px;
        float:left;
        margin:0 1.8% 0 0;
    }
    
    div.content div.main-content-inner{
      min-height: 300px;
      margin: 0 1em;
    }
    
    
    div.content div.main-content h1 {
            font-family: "DM Sans", sans-serif;
            font-optical-sizing: auto;
            font-size:21px;
            font-weight:lighter;
            color:#000;
            padding:1% 0 1.5% 0;
                
    }
        
    div.content div.main-content-inner h1 {
         font-family: "DM Sans", sans-serif;
         font-optical-sizing: auto;
        font-size: 24px;
        font-weight: 600;
        color: #000;
        padding: 2.5% 0 2.5% 0;
    }
    
     div.content div.main-content-inner h2.subida {
             font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
            font-size:16px;
            font-weight:lighter;
            line-height: 19px;
            color:#000;
            padding:0 0 3.5% 0;
                
    }
    
 
            div.content div.main-content h1 span,
            div.content div.main-content-inner h1 span,
            div.content div.main-content-inner div.listing-title h1 span { color:#D20200; }
            
     
            div.content div.main-content-inner p {
                font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
                font-size: 12px;
                color: #000;
                /* line-height: 16px; */
                margin: 0 0 2% 0;
                font-size: 16px;
            }   
    
    div.content div.main-content-inner p.ask {
             font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
            font-size:12px;
            color:#000;
            display:block;
            width:100%;
            height:auto;
            border-top:1px dotted #ccc;
            border-bottom:1px dotted #ccc;
            padding:1%;
            margin:0 0 2% 0;
                
    }
             div.content div.main-content-inner p.ask strong { color:#D20200; }
        
/*****CONSULTA******/


/* --- Estilos Generales de la Sección de Consulta --- */

.product-consult-info {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #555;
}

.product-consult-info strong {
    color: #cc0000; /* Resalta el nombre del producto */
    font-weight: 700;
}

/* --- Estilos del Formulario con CSS Grid (Reutilizados del Formulario Contacto) --- */

.contact-section-inner {
    font-family: 'DM Sans', sans-serif;
    padding: 30px 0;
    max-width: 900px; /* Limita el ancho para mejor lectura */
    margin: 0 auto;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 25px 20px; /* Espacio vertical y horizontal */
}

/* Título de la Consulta/Pregunta */
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Campo que ocupa todo el ancho */
.input-group.full-width {
    grid-column: 1 / -1;
}

/* Botón de Enviar (Ocupa todo el ancho del grid) */
.submit-button {
    grid-column: 1 / -1; 
    padding: 12px 25px;
    background-color: #cc0000; 
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    transition: background-color 0.3s ease;
    width: 250px; 
    margin-top: 10px;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: #a30000;
}

/* Responsive para Móviles */
@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .input-group, .submit-button {
        grid-column: 1 / -1 !important;
        width: 100%;
    }
}

/* --- Estilos Generales de la Sección de Contenido --- */
/* Esta regla es crucial para asegurar que el contenido nunca sea más ancho que la pantalla. */
.main-content-inner {
    padding: 20px 15px; /* Asegura un padding horizontal mínimo y consistente */
    max-width: 1200px; /* Limita el ancho del contenido principal */
    margin: 0 auto;
}

/* --- Responsive Design para Formularios (Móviles) --- */
@media (max-width: 768px) {
    /* 1. Forzar a una columna */
    .contact-form {
        /* Reemplaza la grilla de 1fr 1fr por una sola columna */
        grid-template-columns: 1fr;
        /* Asegura que el espacio entre filas sea suficiente */
        gap: 15px; 
    }
    
    /* 2. Asegurar que todos los grupos de entrada ocupen todo el ancho */
    .contact-form .input-group,
    .contact-form .input-group.full-width,
    .contact-form .submit-button {
        grid-column: 1 / -1 !important; /* Fuerza a ocupar la única columna disponible */
        width: 100%; /* Asegura que el elemento ocupe el 100% del ancho del contenedor */
        box-sizing: border-box; /* Fundamental: asegura que el padding y border no sumen ancho extra */
    }

    /* 3. Ajuste de inputs para que no se desborden */
    .contact-form input:not([type="submit"]),
    .contact-form textarea {
        width: 100%;
        /* Aseguramos que el padding interno no cause desborde junto con el box-sizing */
        padding: 10px;
    }
    
    /* 4. Ajustar el tamaño del botón en móviles */
    .submit-button {
        width: 100%;
        margin-top: 20px;
    }

 
}

 /* Contacto */

iframe.map {
    width:100%;
    height:400px;
   margin:0 0 0.4% -20px;
}


div.main-content-inner form.contact {
    width:100%;
    min-height:300px;
    height:auto;
    margin:0;
    float:left;
}



/* Estilos de la Sección y Fuente */
.contact-section-inner {
    font-family: 'DM Sans', sans-serif;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-section-inner h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333; /* Color oscuro */
}

/* Estilos de Mensajes de Éxito/Error */
.success-message {
    color: green;
    font-weight: 500;
    padding: 10px;
    border: 1px solid #e6ffe6;
    background-color: #f0fff0;
    margin-bottom: 20px;
    border-radius: 4px;
}

.error-message {
    color: #cc0000;
    font-weight: 500;
    padding: 10px;
    border: 1px solid #ffcccc;
    background-color: #fff0f0;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Estilos del Formulario con CSS Grid */
.contact-form {
    display: grid;
    /* Grid de dos columnas para pantallas grandes */
    grid-template-columns: 1fr 1fr;
    gap: 20px; /* Espacio entre los campos */
}



/* Contenedor de cada Campo */
.input-group {
    display: flex;
    flex-direction: column;
    margin-right: 30px;
}

.input-group label {
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
    text-transform: uppercase;
}

/* Estilos de Campos de Entrada y Textarea */
.contact-form input:not([type="submit"]),
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
    outline: none;
}

/* Textarea (Información Adicional) */
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Campos que deben ocupar todo el ancho (Textarea, etc.) */
.input-group.full-width {
    grid-column: 1 / -1; /* Ocupa todas las columnas */
}

/* Botón de Enviar */
.submit-button {
    grid-column: 1 / -1; /* Ocupa todo el ancho */
    padding: 12px 25px;
    background-color: #cc0000; /* Color rojo de acento */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    transition: background-color 0.3s ease;
    width: 200px; /* Ancho fijo para el botón */
    margin-top: 10px;
    align-self: flex-start; /* Alinea el botón a la izquierda */
}

.submit-button:hover {
    background-color: #a30000; /* Rojo más oscuro al pasar el ratón */
}

/* --- Responsive Design (Móviles) --- */
@media (max-width: 768px) {
    .contact-form {
        /* En móviles, todos los campos ocupan todo el ancho (una columna) */
        grid-template-columns: 1fr;
    }
    
    .input-group {
        /* Asegura que todos los grupos de entrada se muestren verticalmente */
        grid-column: 1 / -1 !important;
    }

    .submit-button {
        width: 100%;
    }
}

 /**********/    
/* Footer */

footer {
    width:100%;
    height:180px;
    background:#d2232a;
    padding: 1em;
}

    div.footer-content {
        width:100%;
        max-width:1200px;
        margin:0 auto;
        display: flex;
        flex-direction: row;
    }
    
        div.footer-content-address {
            float:left;
            margin:2.3% 0 0 0;
        }
            div.footer-content-address strong {
                 font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
                font-size:16px;
                font-weight:bolder;
                color:#fff;
                display:block;
                margin:0 0 2.7% 0;
            }
            
            div.footer-content-address span {
                 font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
                font-size:16px;
                color:#fff;
            }
            
            div.footer-content-address a {
                 font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
                font-size:16px;
                color:#fff;
                text-decoration:none;
            }
            
                 div.footer-content-address a:hover { text-decoration:underline; }
        
        div.footer-content-menu {
            width:50%;
            height:auto;
            float:right;
            margin:2.3% 0 0 0;
        }
        
            div.footer-content-menu ul {
                width:auto;
                height:auto;
                display:block;
                float:right;
                margin:0 0 0 6%;
            }
            
                div.footer-content-menu ul li {
                    list-style-image:url('../images/build/misc-footer.gif');
                    margin:0 0 9% 0;
                }
                
                div.footer-content-menu ul a {
                    font-family: Trebuchet MS,Tahoma,sans-serif;
                    font-size:12px;
                    color:#fff;
                    text-decoration:none;
                }
                
                    div.footer-content-menu ul a:hover { color:#000; }
                    
div.copyright {
    width:100%;
    height:50px;
    border-top: 2px solid #000;
    background:#000;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    text-align: center;
}

    div.copyright-content p {
        width:100%;
        max-width:1200px;
        height:auto;
        margin: 1% auto;
        color: #fff;
    }
     
         div.copyright-content a {
            color: #fff;
            text-decoration: none;
        }
         
        
/****************************************************************/        
/* Media Queries
-------------------------------------------------------------- */

/************************************/
/*Styles for screen 600px and lower*/
@media (max-width : 700px) {
  
  /* Top Bar */  
   div.topbar-content a {           
        padding:0 0 0 17px;
        margin:0 13px 0 20px;
    }

   /* Header */   
  div.header-content a.logo img { margin-top:15px; }

  div.header-login { width:60%; margin-top:22px;}
  
  /* Menu */
  div.nav-content form.advancesearch { 
    width:40%; 
    float:left; 
    background:none; 
    position: absolute;
    z-index: 999;
}
  
   div.nav-content form.advancesearch input {
        width:100%;
        margin:2% 1%;
    }
    
    
    /* Contact */
    form.contact textarea { width:91.5%;}

}

/************************************/
/*Styles for screen 480px and lower*/
@media only screen and (max-width : 480px) {

/* Header */
div.header-content a.logo img {
    width:100%;
    border:none;
    float:none;
    margin:4% auto 2% auto;
}

/* Login */
div.header-login {
    width:95%;
    height:auto;
    float:right;
    margin: 15px auto;
}
         
     /* Menu */
   
     
     div.nav-content form.advancesearch { display:none; }
    
    /* Slider */    
    /*div.slider { display:none; }*/
    
    
    /* Novedades */    
    div.news { padding:4% 0 1% 0; }
    
         div.news-content h1 {
            margin-bottom:4%;
                
        }
    
    /* Content */
     div.content div.main-content h1,
     div.content div.main-content-inner h1{
        
        margin: 3% 0 0 3%;       
    }
    
        
    /* Empresa */
        
div.empresa-gallery { width:97%; margin: 3% 0 0 3%; }

div.empresa-gallery a img { width:27%; margin:0 3% 5% 0; }
    
    
    /* Product Listing */
  
    div.content div.main-content-inner div.listing-title h1 {
        display: block;
        width:100%;
        text-align: center;
        padding: 0;
        margin:9% 0 0 0;
        padding:0;
        float: none;
    }
            
      /* Product detail*/
    
    div.main-content-inner div.product-image {
        width:90%;
        float:none;
        margin:9% 0 3% 5%;
    }
         
         
    div.main-content-inner div.product-description {
        width:90%;
        height:auto;
        float:left;
        margin:3% 0 3% 5%;
    }
    
        div.main-content-inner div.product-description span.breadcrumbs {
            display:block;
            width:100%;
            text-align:center;
        }
        
         div.main-content-inner div.product-description h1 {
            font-size:18px;
            width:100%;
            padding:2% 0 4% 0;
            margin:1% 0 4% 0;
            border-bottom: 1px dotted #ccc;
         }
         
          div.main-content-inner div.product-description h2 {
            font-size: 12px;
            text-align: center;
            border-bottom:1px dotted #ccc;
            padding: 0 0 4% 0;
            margin:0 0 4% 0;
         }
         

            
        div.main-content-inner h3 {
             font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
            font-size:16px;
            color:#fff;
            text-align: center;
            background:#666;
            padding:3% 0;
            margin:0 0 6% 0;
         }
         
             div.main-content-inner h3 span { color:#fff; }
    
    /* Product item */    
    div.product-item,
    div.product-item-content{
        width:90%;
        max-width:none;
        float:none;
        margin:0 auto 9% auto;
    }
    
   
    div.product-item-content-inner{
        width:90%;
        max-width:none;
        float:none;
        margin:0 auto 9% auto;
    }
    
    div.content div.main-content {
        width:100%;
        max-width:none;
        float:none;
        margin:0 auto 9% auto;
    }
    
     div.content div.main-content-inner{
        width:100%;
        max-width:none;
        float:none;
        margin:0 auto 9% 0;
    }
    
        div.product-item a.product-title,
        div.product-item-content a.product-title,
        div.product-item-content-inner a.product-title{
            font-size:17px;
            padding:2% 0;
 
         }
         
            
        div.product-item p,
        div.product-item-content p,
        div.product-item-content-inner p{
            font-size:13px;

         }
       
    
    /* Sidebar */
    div.content aside { display:none; }
    
    
    /* Articulos de Interes */
    
    div.news-listing-item { margin:0 0 8% 0; }
    div.news-listing-item a.news-listing-image img { width:96%; margin:3% 0 5% 2%; }
    div.news-listing-item div.news-listing-desc a { margin:4% auto; text-align: center;}
    div.news-listing-item div.news-listing-desc p {width:96%; margin:4% auto; text-align: center;}
    
    section.main-content img.news-image {
	    width:100%;
	    float:left;
	    margin:3% 0 5% 0;
    }
    
      /* Articulo de interes -  detalle */
    
    div.main-content-inner img.news-detail-image {
        width:93%;
        margin:0 0 3% 3%;
    }
    
     div.content div.main-content-inner h2.subida {
        width:93%;
        margin:0 0 3% 3%;                
    }
    
    div.content div.main-content-inner p {
        width:93%;
        margin:3% 0 0 3%;
           
    }
    
    /* Contacto */     
   
    form.contact {padding: 0 0 0 1.5%; float:none; }
   
    form.contact input { width:96%;}
       
	form.contact textarea { width:96%; }       
     
    form.contact input.code { width:68%; }
       
    form.contact input[type="reset"]{ display:none; }
            
    form.contact input[type="submit"]{
        font-size: 1em;
        height:35px;
        width:96%;
        background:#000;
        margin:1% auto 3% auto;
    }
    
    div.content div.main-content-inner p.ask {
        font-size:13px;
        text-align: center;
        padding:3%;
        margin:0 0 6% 0;
                
    }
        

        
    /* Footer */
    
    footer, div.footer-content {
        height:auto;
        padding:3% 0;
    }
    
    div.footer-content-address {
        text-align:center;
        float:none;
        margin:0 auto;
    }
    
    div.footer-content-menu { display:none; }
    
    /* Copyright */
    
    div.copyright-content a img {
        width:98%;
        margin:3% auto 0 auto;
    }

}


/*****************/
/* Other Styles */

.clearer { clear:both; }


/* --- 1. Contenedor Principal (GRID) --- */
.product-categories-section {
    padding: 40px 0;
    max-width: 1200px; 
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas para PC */
    grid-auto-rows: 250px; /* Altura de fila fija */
    gap: 20px;
    padding: 0 20px;
}

/* --- 2. Estilo General de las Tarjetas --- */
.category-card {
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between; /* Distribuye espacio mejor entre los dos bloques */
    text-align: left; 
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
    overflow: hidden;
    background: #efefef; 
}

.category-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* --- 3. IMAGENES de Categoría (MODIFICADO: Más grande y centrada) --- */
.category-image-container {
    width: 50%; /* 🚨 La imagen ahora ocupa el 50% del ancho de la tarjeta */
    height: 100%; 
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

.category-image {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}

/* --- 4. Contenedor para Título y Botón (Ajustado) --- */
.category-content-wrapper {
    width: 50%; /* El contenido (título + botón) ocupa el 50% restante */
    display: flex;
    flex-direction: column; 
    align-items: flex-start; /* Alinea el texto y botón a la izquierda */
    justify-content: center; 
    padding-left: 10px; /* Espacio extra para asegurar separación de la imagen */
}


/* --- 5. Tipografía y Botón --- */
.category-title {
    font-size: 2rem; 
    font-weight: 800;
    margin: 0 0 10px 0; 
    color: #1a1a1a;
     font-family: "Playfair", serif;
     font-style: italic;
    /* 🚨 Alineación del texto: se mantiene a la izquierda por 'align-items: flex-start;' */
}

.category-link {
    display: inline-block;
    background-color: #cc0000;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-family: "DM Sans", sans-serif;
    /* 🚨 El botón se alinea con el texto por 'align-items: flex-start;' */
}

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

/* --- 6. Responsividad (Se mantiene la lógica de apilar y centrar en móvil) --- */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr); 
        grid-auto-rows: 220px; 
        gap: 15px;
    }
    
    .category-card {
        flex-direction: column; /* Apila en móvil */
        justify-content: center;
        text-align: center; 
        padding: 15px;
    }

    .category-image-container {
        width: 100%; /* Ocupa todo el ancho */
        height: 100px; /* Altura definida */
        margin-right: 0; 
        margin-bottom: 10px; 
    }

    .category-content-wrapper {
        width: 100%; 
        align-items: center; /* Centra el texto y el botón en móvil */
        padding-left: 0;
    }

    .category-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr; 
        grid-auto-rows: 200px; 
    }
}




.half{
    width: 50%;
}
