/*
Theme Name: Comexsa Theme
Theme URI: https://example.com
Author: Raúl
Author URI: https://example.com
Description: Tema minimalista limpio para Comexsa
Version: 1.0
Text Domain: comexsa-theme
*/
/* RESET SUAVE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* TIPOGRAFÍA LIMPIA Y PRO */
body {
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    background: #f8f8f6; /* Blanco cálido tipo estudio culinario */
    color: #333;
    line-height: 1.6;
    padding-top: 80px; /* espacio para header fijo */
}

/* CABECERA ESTILO COCINA */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 40px;
    z-index: 999;
}

.site-header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* CONTENEDORES AIREADOS */
main, .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* TÍTULOS “PLATO PRINCIPAL” */
h1, h2, h3 {
    font-weight: 500;
    color: #222;
    margin-bottom: 24px;
}

/* TEXTO LIMPIO */
p {
    margin-bottom: 16px;
    color: #444;
}

/* IMÁGENES AL ESTILO ESTUDIO GOURMET */
img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

/* PIE DE PÁGINA TIPO RESTAURANTE */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 0.9rem;
}
/* ==== HERO MINIMALISTA === */

.hero-minimal {
    height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #f7f7f5 100%
    );
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hero-inner {
    text-align: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-subhead {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==== GRID DE PORTADA === */

.front-grid {
    max-width: 1100px;
    margin: 80px auto 60px auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.front-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.front-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.front-card img {
    border-radius: 0;
}

.front-card h2 {
    padding: 20px;
    font-size: 1.2rem;
    color: #222;
    margin: 0;
}
.hero-minimal {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://tuweb.com/wp-content/uploads/hero.jpg'); /* cámbialo por tu imagen */
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: blur(4px);
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}
/* HERO COMEXSA - ALTURA CORTA */
.hero-comexsa {
    position: relative;
    height: 40vh;                /* <- altura más corta que 60vh */
    min-height: 320px;           /* garantiza suficiente espacio en pantallas pequeñas */
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background-color: #b71c1c;   /* rojo base; cámbialo si quieres otra tonalidad */
}

/* patrón sutil (usa una imagen de patrón o deja color sólido) */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/pattern-small.png'); /* opcional: patrón semitransparente */
    background-size: auto;
    opacity: 0.08;
    mix-blend-mode: overlay;
    filter: blur(0px);
}

/* capa oscura suave para mejorar contraste */
.hero-comexsa::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.12) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 980px;
    text-align: center;
}

/* TITULAR */
.hero-title {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 12px;
    color: #fff;
}

/* SUBRAYADO AMARILLO DESTACADO */
.hero-highlight {
    color: #ffd54f;               /* amarillo cálido */
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 6px;
    text-decoration-color: rgba(255,213,79,0.95);
    display: inline-block;
    padding: 0 4px;
    box-decoration-break: clone;
}

/* SUBTÍTULO */
.hero-subhead {
    color: rgba(255,255,255,0.95);
    font-size: 1rem;
    max-width: 760px;
    margin: 0 auto 18px auto;
}

/* CTA */
.hero-cta {
    display: inline-block;
    background: #fff;
    color: #b71c1c;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform .16s ease, box-shadow .16s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Responsive: más alto en móviles si hace falta */
@media (max-width: 600px) {
    .hero-comexsa { height: auto; padding: 48px 0; min-height: 420px; }
    .hero-subhead { font-size: 0.98rem; padding: 0 18px; }
}
/* SECCIÓN SOBRE COMEXSA */
.about-comexsa {
    padding: 70px 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* MEDIA: imagen grande e impactante */
.about-media img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    display: block;
}

/* COPY: título, párrafo y CTA */
.about-copy h2 {
    font-size: 1.8rem;
    margin-bottom: 14px;
    color: #222;
}

.about-copy p {
    color: #444;
    font-size: 1.02rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* BOTÓN */
.about-cta {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    background: #b71c1c;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(183,28,28,0.12);
}

/* MOBILE: apilar y ajustar alturas */
@media (max-width: 880px) {
    .about-inner {
        grid-template-columns: 1fr;
    }
    .about-media img {
        height: 320px;
    }
    .about-comexsa { padding: 40px 0; }
}

/* Sección Noticias Destacadas */
.news-section {
    padding: 60px 0;
    background: #faf9f8;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 24px auto 0 auto;
    padding: 0 20px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform .18s ease, box-shadow .18s ease;
}

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

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.news-body {
    padding: 18px;
}

.news-title {
    font-size: 1.05rem;
    margin: 0 0 10px 0;
    color: #222;
}

.news-excerpt {
    color: #555;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

/* Mobile */
@media (max-width: 720px) {
    .news-card img { height: 180px; }
    .news-section { padding: 40px 0; }
}
/* ===== Noticias estilo Comexsa (tarjetas grandes) ===== */

.news-header .small-label {
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #7a7a7a;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.news-header .main-title {
    font-family: 'Georgia', serif;
    font-size: 2.1rem;
    margin: 0;
    color: #222;
    line-height: 1.1;
}

.news-header .title-underline {
    width: 56px;
    height: 6px;
    background: #b71c1c;
    margin: 12px auto 26px auto;
    border-radius: 4px;
}

/* grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

/* cada tarjeta */
.news-card {
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

/* media arriba: imagen con esquinas redondeadas y altura generosa */
.news-card .news-media img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* cuerpo blanco separado */
.news-card .news-content {
    background: #fff;
    padding: 22px;
    border-radius: 0 0 12px 12px;
    margin-top: -6px; /* pequeño solapamiento para sensación de bloque */
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}

.news-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: #222;
}

.news-excerpt {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.98rem;
}

/* hover */
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* responsive: una columna en móvil */
@media (max-width: 880px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 20px;
    }
    .news-card .news-media img {
        height: 220px;
    }
}
/* Opción B: hero a pantalla completa, contenido centrado */
.hero-comexsa {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  padding: 0; /* evita paddings que reduzcan efecto full-bleed */
}

/* conservar el contenido centrado dentro del hero */
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* asegurar que otras secciones mantengan container centrado */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
/* Forzar ancho completo en el tema padre */
.site,
#content,
.site-main,
body {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Asegurar que nuestras secciones usan el contenedor correcto */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ---- Centrado perfecto de la sección de noticias ---- */
.news-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-header {
    text-align: center !important;
    margin-bottom: 30px;
}

.news-header .main-title {
    margin-left: auto;
    margin-right: auto;
}

.news-header .title-underline {
    margin-left: auto !important;
    margin-right: auto !important;
}
/* ===== Sección Destacados de la tienda ===== */
.shop-highlights { padding: 70px 0; background: #f8f7f5; border-top: 1px solid rgba(0,0,0,0.03); }
.shop-header .small-label { text-transform: uppercase; font-size: 0.78rem; color: #d08b4b; letter-spacing: 1px; margin-bottom: 8px; }
.shop-header .main-title { font-family: 'Georgia', serif; font-size: 2.1rem; margin: 0; color: #222; line-height: 1.05; }
.shop-header .title-underline { width: 56px; height: 6px; background: #b71c1c; margin: 12px auto 28px; border-radius: 4px; }

/* grid productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 34px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

/* tarjeta producto */
.product-card { background: transparent; border-radius: 12px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.product-media { position: relative; overflow: hidden; border-radius: 12px; }
.product-media img { width: 100%; height: 260px; object-fit: cover; display: block; }

/* BADGES */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #fff;
    z-index: 5;
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}
.badge-offer { background: #b71c1c; }   /* rojo: Oferta */
.badge-new   { background: #ff8a00; }   /* naranja: Novedad */
.badge-gluten{ background: #2e8b57; }   /* verde: Gluten Free */

/* Si quieres un badge secundario abajo a la derecha (ej: etiqueta de oferta visual) */
.product-media .badge-bottom {
    top: auto;
    bottom: 12px;
    left: auto;
    right: 12px;
}

/* cuerpo blanco con info */
.product-body { background: #fff; padding: 18px; border-radius: 0 0 12px 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.04); margin-top: -6px; }
.product-cat { font-size: 0.78rem; color: #9b9b9b; margin-bottom: 6px; text-transform: uppercase; }
.product-title { margin: 0 0 8px 0; font-size: 1.05rem; color: #222; }
.product-excerpt { color: #666; font-size: 0.95rem; line-height: 1.5; margin: 0 0 12px; }

/* meta: precio y CTA */
.product-meta { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.price { font-weight:700; color:#b71c1c; }
.add-cart-btn { background:#b71c1c; color:#fff; border:none; padding:8px 14px; border-radius:999px; cursor:pointer; font-weight:600; }

/* hover */
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.08); }

/* responsive */
@media (max-width:880px) {
    .product-media img { height: 200px; }
    .product-body { padding: 14px; }
    .products-grid { gap: 20px; }
}
.shop-header {
    text-align: center !important;
}

.shop-header .main-title {
    display: block !important;
    width: 100%;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.shop-header .title-underline {
    margin-left: auto !important;
    margin-right: auto !important;
}
/* ===== Sección Categorías Visuales ===== */
.shop-cats { padding: 72px 0; background: #fff; }
.shop-cats .shop-header { margin-bottom: 28px; text-align: left; }
.shop-cats .small-label { text-transform: uppercase; color: #d08b4b; font-size: .78rem; letter-spacing:1px; margin-bottom:8px; }
.shop-cats .main-title { font-family: 'Georgia', serif; font-size:2rem; margin:0 0 6px 0; color:#222; }
.shop-cats .title-underline { width:56px;height:6px;background:#b71c1c;margin:12px 0 20px 0;border-radius:4px; }

/* Grid de categorías */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* cada tarjeta */
.cat-card { display:block; text-decoration:none; color:inherit; border-radius:12px; overflow:hidden; }

/* media: imagen de fondo con overlay y contenido */
.cat-media {
  position: relative;
  height: 210px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  display:flex;
  align-items:flex-end;
}

/* overlay degradado para contraste */
.cat-overlay {
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(183,28,28,0.18) 0%, rgba(0,0,0,0.32) 100%);
  z-index:1;
}

/* caja de texto sobre la imagen */
.cat-label {
  position: relative;
  z-index:2;
  color:#fff;
  padding: 22px;
  width:100%;
  display:block;
}

/* título y subtítulo */
.cat-title { margin:0; font-size:1.4rem; font-weight:700; line-height:1; letter-spacing:-0.3px; }
.cat-sub { margin:6px 0 10px 0; font-size:0.95rem; color: rgba(255,255,255,0.92); }

/* CTA pequeño */
.cat-cta {
  display:inline-block;
  margin-top:6px;
  font-weight:700;
  font-size:0.92rem;
  color:#fff;
  opacity:0.95;
}

/* efecto hover */
.cat-card:hover .cat-media { transform: translateY(-6px); transition: transform .22s ease; box-shadow: 0 22px 44px rgba(0,0,0,0.12); }

/* responsive */
@media (max-width:880px) {
  .cat-media { height: 180px; }
  .cat-title { font-size:1.15rem; }
}
/* ===== Fila de features / beneficios ===== */
.features-row {
  padding: 60px 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  align-items: start;
  text-align: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
}

.feature-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.feature-icon img {
  width: 44px;
  height: 44px;
  display: block;
}

.feature-title {
  margin: 0;
  font-size: 1.05rem;
  color: #222;
  font-weight: 700;
}

.feature-text {
  margin: 0;
  color: #666;
  max-width: 380px;
  line-height: 1.6;
  font-size: 0.96rem;
}

/* centrar y ajustar en pantallas pequeñas */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .feature-text { max-width: 780px; padding: 0 30px; }
}
/* ===== Footer Comexsa ===== */
.comexsa-footer {
  background: #111;
  color: #eee;
  padding: 50px 0 20px 0;
  font-size: 0.95rem;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
}

.footer-logo {
  width: 90px;
  margin-bottom: 12px;
}

.footer-text {
  color: rgba(255,255,255,0.75);
  max-width: 360px;
  line-height: 1.6;
}

.footer-line {
  margin: 6px 0 14px;
  color: rgba(255,255,255,0.85);
}

.footer-line a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.footer-social img {
  width: 38px;
  height: 38px;
}

.social-icon img {
  display: block;
  filter: brightness(1.2);
  transition: 0.2s ease;
}

.social-icon:hover img {
  filter: brightness(1.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 30px;
  padding-top: 14px;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.footer-admin {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}

@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 30px;
  }
}
/* ===== Logo circular dentro del hero ===== */
.hero-inner { position: relative; z-index: 2; padding-top: 28px; }

.hero-logo-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #fff;                 /* círculo blanco */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border: 6px solid rgba(255,255,255,0.06); /* sutil borde */
    overflow: hidden;
}

/* Imagen dentro del círculo */
.hero-logo-circle {
    width: 82%;
    height: 82%;
    object-fit: contain;
    display: block;
}

/* Ajustes cuando el fondo del hero es muy oscuro: añadir ring si quieres */
.hero-logo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}

/* Reducir tamaño en pantallas pequeñas */
@media (max-width: 900px) {
    .hero-logo-wrap {
        width: 110px;
        height: 110px;
        margin-bottom: 14px;
    }
    .hero-logo-circle { width: 78%; height:78%; }
}

/* Si quieres un efecto flotante (opcional), descomenta:
.hero-logo-wrap { transform: translateY(-8px); transition: transform .22s ease; }
.hero-logo-wrap:hover { transform: translateY(-12px); }
*/
/* === Diseño horizontal del hero === */
.hero-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 40px;
}

/* Círculo del logo */
.hero-logo-wrap {
    width: 200px;
    height: 200px;
    min-width: 200px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 14px 32px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* Imagen interior del circulo */
.hero-logo-circle {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

/* Ajustar bloque de texto */
.hero-text-block {
    flex: 1;
}

/* Responsive móvil */
@media (max-width: 900px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }
    .hero-logo-wrap {
        width: 110px;
        height: 110px;
    }
}
/* Distribución horizontal del hero con logo a ambos lados */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
}

/* Círculos de logo */
.hero-logo-wrap {
    width: 150px;
    height: 150px;
    min-width: 150px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* Imagen del logo */
.hero-logo-circle {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Bloque central del texto */
.hero-text-block {
    flex: 1;
    text-align: center;
}

/* Responsive móvil */
@media (max-width: 900px) {
    .hero-flex {
        flex-direction: column;
    }

    .hero-logo-wrap {
        width: 110px;
        height: 110px;
        min-width: 110px;
    }

    .hero-text-block {
        order: -1; /* para que el texto quede arriba entre logos */
    }
}
/* Contenedor general */
.shop-cats-comexsa {
  padding: 40px 0 80px;
}

/* Grid de categorías */
.cats-grid-comexsa {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

/* Tarjeta individual */
.cat-card-comexsa {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Imagen como fondo recortado */
.cat-card-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}

/* Texto de la card */
.cat-card-body {
  padding: 14px 16px 16px;
}

.cat-card-body h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: #222;
}

.cat-card-count {
  margin: 0;
  font-size: 13px;
  color: #777;
}

/* Hover elegante */
.cat-card-comexsa:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.10);
}

/* Responsive */
@media (max-width: 768px) {
  .cats-grid-comexsa {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .cats-grid-comexsa {
    grid-template-columns: 1fr;
  }
}
/* ===== Banner tienda Comexsa ===== */
.shop-hero {
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
  padding: 40px 0 32px;
}

.shop-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.shop-hero-text {
  text-align: left;
}

.shop-hero-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 0.78rem;
  color: #b58a3c;
  margin: 0 0 6px;
}

.shop-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 8px;
}

.shop-hero-subtitle {
  margin: 0;
  font-size: 0.96rem;
  color: #666;
  max-width: 520px;
  line-height: 1.6;
}

/* ===== Grid limpio de categorías ===== */
.shop-cats-comexsa {
  padding: 40px 0 80px;
}

.cats-grid-comexsa {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.cat-card-comexsa {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cat-card-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}

.cat-card-body {
  padding: 14px 16px 16px;
}

.cat-card-body h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: #222;
}

.cat-card-count {
  margin: 0;
  font-size: 13px;
  color: #777;
}

.cat-card-comexsa:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.10);
}

/* Responsive */
@media (max-width: 768px) {
  .cats-grid-comexsa {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .cats-grid-comexsa {
    grid-template-columns: 1fr;
  }
}
/* ===== Footer Comexsa ===== */

.comexsa-footer {
    background: #1b1b1b;
    color: #f5f5f5;
    font-size: 0.9rem;
}

.comexsa-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.comexsa-footer-top {
    padding: 40px 0 26px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

/* Col 1: marca */
.footer-logo img {
    max-height: 40px;
    margin-bottom: 14px;
}

.footer-text {
    color: #c4c4c4;
    line-height: 1.6;
    margin: 0;
}

/* Col 2: contacto */
.footer-contact h4,
.footer-social h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #f7f7f7;
    margin: 0 0 10px;
}

.footer-contact p {
    margin: 2px 0;
    color: #d0d0d0;
}

.footer-contact a {
    color: #f0b8a0;
    text-decoration: none;
}
.footer-contact a:hover {
    text-decoration: underline;
}

/* Col 3: redes */
.footer-social {
    text-align: left;
}

.social-icon.instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
    transition: transform .2s ease, box-shadow .2s ease;
}

.social-icon.instagram svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.social-icon.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(0,0,0,0.45);
}

/* Bottom bar */
.comexsa-footer-bottom {
    padding: 10px 0 16px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 0.8rem;
    color: #a7a7a7;
}

.footer-admin-link {
    color: #f0b8a0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-admin-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ===== Footer Comexsa – versión baja y luminosa ===== */

.comexsa-footer {
    background: linear-gradient(180deg, #5a1717 0%, #f8e3dd 45%, #ffffff 100%);
    color: #2b2b2b;
    font-size: 0.9rem;
}

/* Contenedor principal */
.comexsa-footer .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Parte superior: 3 columnas repartidas */
.comexsa-footer-top {
    padding: 45px 0 22px; /* Más espacio arriba, pero sigue siendo bajo */
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
}

/* Cada columna */
.footer-col {
    flex: 1 1 260px;
    min-width: 220px;
}

/* Columna marca */
.footer-brand .footer-logo img {
    max-height: 40px;
    margin-bottom: 10px;
}

.footer-text {
    margin: 0;
    line-height: 1.6;
    color: #383838;
}

/* Columna contacto */
.footer-contact h4,
.footer-social h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin: 0 0 8px;
    color: #3a3a3a;
}

.footer-contact p {
    margin: 2px 0;
    color: #444;
}

.footer-contact a {
    color: #b54848;
    text-decoration: none;
}
.footer-contact a:hover {
    text-decoration: underline;
}

/* Columna redes */
.footer-social p {
    margin: 2px 0;
    color: #555;
}

/* Icono Instagram */
.social-icon.instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    margin-top: 6px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.social-icon.instagram svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.social-icon.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(0,0,0,0.35);
}

/* Parte inferior: barra muy bajita */
.comexsa-footer-bottom {
    padding: 8px 0 12px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #555;
}

.footer-bottom-inner p {
    margin: 0;
}

.footer-admin-link {
    color: #b54848;
    text-decoration: none;
}

.footer-admin-link:hover {
    text-decoration: underline;
}

/* Responsive: en móvil, columnas una debajo de otra */
@media (max-width: 800px) {
    .footer-grid {
        flex-direction: column;
    }
}
.footer-brand .footer-logo img {
    max-height: 80px; /* Más alto */
    margin-top: 10px; /* Se separa del borde */
}
/* ===== FOOTER BASE ===== */
.comexsa-footer {
  background: linear-gradient(
      180deg,
      #b63434 0%,   /* rojo suave arriba */
      #f9d2cc 45%,  /* rosa muy claro en medio */
      #ffffff 100%  /* blanco abajo */
  );
  color: #333;
  padding-top: 40px;
  font-family: 'Inter', sans-serif;
}

/* CONTENEDOR */
/* CONTENEDOR 5 COLUMNAS */
.footer-container-5cols {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* Logo bien visible */
.footer-logo-large {
  max-width: 120px;
  height: auto;
  filter: drop-shadow(0px 3px 3px rgba(0,0,0,0.15));
}

/* BREAKPOINTS RESPONSIVE */
@media (max-width: 992px) {
  .footer-container-5cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-logo-col {
    grid-column: 1 / -1;   /* logo arriba ocupando todo */
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .footer-container-5cols {
    grid-template-columns: 1fr;  /* una columna debajo de otra */
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-col h4 {
    margin-top: 8px;
  }

  .footer-social {
    justify-content: center;
  }
}

/* COLUMNAS */
.footer-col h4 {
  color: #6d2323;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  text-decoration: none;
}

.footer-col a:hover {
  color: #a83232;
}

/* LOGO */
.footer-logo {
  max-height: 90px;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  margin-top: 10px;
}

/* ICONO INSTAGRAM */
.insta-icon {
  width: 22px;
  margin-right: 6px;
  vertical-align: middle;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-decoration: none;
}

.footer-social:hover {
  color: #a83232;
}

/* PARTE INFERIOR */
.comexsa-footer-bottom {
  margin-top: 30px;
  padding: 15px 0;
  text-align: center;
  font-size: 12px;
  color: #555;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-admin-link {
  color: #a83232;
  text-decoration: none;
  margin-left: 10px;
}
/* CONTENEDOR 5 COLUMNAS */
.footer-container-5cols {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* COLUMNA DEL LOGO SOLO */
.footer-logo-col {
  display: flex;
  justify-content: center;
}
/* Animación suave al pasar por cada columna */
.footer-col {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-col:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.footer-logo-large {
  max-width: 120px;
  filter: drop-shadow(0px 3px 3px rgba(0,0,0,0.15));
}

/* TEXTO GENERAL */
.footer-col h4 {
  color: #6d2323;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  text-decoration: none;
}

.footer-col a:hover {
  color: #a83232;
}

/* INSTAGRAM */
.insta-icon {
  width: 22px;
  margin-right: 6px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-decoration: none;
}

.footer-social:hover {
  color: #a83232;
}
/* ===== GRID DE CATEGORÍAS – PÁGINA TIENDA (page_id=711) ===== */

/* Grid flexible y centrado solo en la página de tienda */
.page-id-711 ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 26px;
    margin: 30px auto 50px;
    padding: 0;
}

/* Tarjeta de categoría */
.page-id-711 ul.products li.product-category {
    list-style: none;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}

/* Hacer que el enlace llene la tarjeta */
.page-id-711 ul.products li.product-category > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

/* Imagen de categoría: proporción fija, recorte limpio */
.page-id-711 ul.products li.product-category img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Zona de texto */
.page-id-711 ul.products li.product-category .woocommerce-loop-category__title {
    flex: 1;
    margin: 0;
    padding: 14px 16px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Nombre de la categoría (texto antes del mark) */
.page-id-711 ul.products li.product-category .woocommerce-loop-category__title {
    text-align: left;
}

/* Badge con nº de productos (el <mark class="count">) */
.page-id-711 ul.products li.product-category .woocommerce-loop-category__title mark.count {
    align-self: flex-start;
    background: rgba(182, 52, 52, 0.08);
    color: #b63434;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: lowercase;
}

/* Hover suave de la tarjeta */
.page-id-711 ul.products li.product-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.10);
}
/* ===== TARJETAS DE PRODUCTO – VISTA CAT / SHOP ===== */

ul.products li.product {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    padding: 0 0 12px;
    text-align: left;
    transition: transform .18s ease, box-shadow .18s ease;
}

/* Hacer que el contenido vaya ordenado en columna */
ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
}

/* Imagen del producto: misma lógica, recorte limpio */
ul.products li.product img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* Título */
ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.98rem;
    font-weight: 600;
    padding: 12px 14px 4px;
    margin: 0;
    color: #222;
}

/* Precio */
ul.products li.product .price {
    display: block;
    padding: 0 14px 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #b63434;
}

/* Botón añadir al carrito */
ul.products li.product .button {
    margin: 0 14px 8px;
    display: inline-block;
    background: #b63434;
    color: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

ul.products li.product .button:hover {
    background: #911f1f;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.20);
}

/* Hover general de la tarjeta */
ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.10);
}
/* ===== Badges Comexsa ===== */

/* La tarjeta de producto tiene que ser position:relative si no lo es ya */
ul.products li.product {
    position: relative;
}

/* Contenedor de badges */
.comexsa-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 5;
}

/* En la ficha de producto, que no vaya por encima de nada raro */
.single-product .comexsa-badges {
    position: static;
    margin-bottom: 10px;
}

/* Estilo base del badge */
.comexsa-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0,0,0,0.06);
    color: #333;
}
/* Icono base en los badges */
.comexsa-badge::before {
    content: "";
    display: inline-block;
    margin-right: 4px;
    font-size: 0.9em;
}
/* Oferta: fuego */
.comexsa-badge-oferta::before {
    content: "🔥";
}

/* Novedad: estrella */
.comexsa-badge-novedad::before {
    content: "✨";
}

/* Gluten Free: espiga tachada o check verde */
.comexsa-badge-gluten-free::before {
    content: "🌾";
}

/* Eco / ecológico: hoja */
.comexsa-badge-producto-de-la-semana::before {
    content: "🌱";
}

/* ===== Colores por tipo de badge (slug del atributo) ===== */

/* Oferta */
.comexsa-badge-oferta {
    background: rgba(182, 52, 52, 0.95);
    color: #fff;
}

/* Novedad */
.comexsa-badge-novedad {
    background: rgba(255, 174, 0, 0.95);
    color: #3a2a00;
}

/* Gluten Free */
.comexsa-badge-gluten-free {
    background: rgba(88, 158, 80, 0.95);
    color: #fff;
}

/* Ecológico / ECO */
.comexsa-badge-eco {
    background: rgba(44, 116, 72, 0.95);
    color: #fff;
}

.comexsa-badge-picante {
    background: #ff4b4b;
    color: #fff;
}
.comexsa-badge-picante::before {
    content: "🌶️";
}
.comexsa-badge-novedad {
    background: #ff4b4b;
    color: #fff;
}
.comexsa-badge-oferta {
    background: #ff4b4b;
    color: #fff;
}
.comexsa-badge-producto-de-la-semana {
    background: #ff4b4b;
    color: #fff;
}
.comexsa-badge-gluten-free {
    background: #ff4b4b;
    color: #fff;
}
/* Animación sutil al aparecer */
.comexsa-badge {
    opacity: 0;
    transform: translateY(-6px);
    animation: comexsaBadgeIn 0.5s ease-out forwards;
}

/* Diferenciar ligeramente la animación entre badges múltiples */
.comexsa-badges .comexsa-badge:nth-child(1) {
    animation-delay: 0.05s;
}
.comexsa-badges .comexsa-badge:nth-child(2) {
    animation-delay: 0.12s;
}
.comexsa-badges .comexsa-badge:nth-child(3) {
    animation-delay: 0.18s;
}

@keyframes comexsaBadgeIn {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* =========================================
   HOME COMEXSA – PULIDO GENERAL
   ========================================= */

/* 1) ESPACIADO ESTÁNDAR ENTRE SECCIONES */
.home section {
    padding: 60px 0;
}

/* 2) ESTILO GLOBAL DE ENCABEZADOS DE SECCIÓN */
.home h2.section-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.home p.section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.home .section-line {
    width: 60px;
    height: 3px;
    background-color: #b63434;
    margin: 0 auto 36px;
    border-radius: 999px;
}

/* 3) TARJETAS BLANCAS GOURMET REUTILIZABLES */
.card-clean {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.card-clean:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.10);
}

/* 4) GRID DE CATEGORÍAS EN LA HOME
   (para la sección de categorías que montes en front-page.php) */
.home .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 26px;
    margin-top: 30px;
}

.home .category-item {
    border-radius: 18px;
    overflow: hidden;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.home .category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.10);
}

.home .category-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.home .category-item h3 {
    font-size: 1rem;
    margin: 12px 0 10px;
    color: #222;
}

.home .category-item p {
    margin: 0 12px 14px;
    font-size: 0.88rem;
    color: #666;
}

/* 5) SECCIÓN DESTACADOS (UTILIZANDO [products visibility="featured"]) */
.home-featured ul.products.featured-products {
    margin-top: 20px;
}

/* Ajuste para que no meta márgenes locos del theme padre */
.home-featured ul.products.featured-products li.product {
    margin-bottom: 0;
}

/* 6) BOTONES ESTILO COMEXSA (GLOBAL) */
button,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: #b63434 !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #8e2626 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

/* 7) AJUSTE RESPONSIVE BÁSICO PARA GRIDS DE HOME */
@media (max-width: 768px) {
    .home section {
        padding: 40px 0;
    }

    .home h2.section-title {
        font-size: 1.6rem;
    }

    .home .category-grid {
        gap: 18px;
    }
}
/* OCULTAR DESCRIPCIÓN EN LAS TARJETAS DE CATEGORÍAS */
.woocommerce ul.products li.product-category .woocommerce-loop-category__desc,
.woocommerce ul.products li.product-category .category-description,
.woocommerce ul.products li.product-category .term-description,
.woocommerce ul.products li.product-category p:not(.button) {
    display: none !important;
}
/* TÍTULO DE LAS CATEGORÍAS EN BLANCO */
.woocommerce ul.products li.product-category h2,
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
/* ENLACE "VER PRODUCTOS" EN BLANCO DENTRO DE LAS TARJETAS DE CATEGORÍA */
.woocommerce ul.products li.product-category a {
    color: #ffffff !important;
}

.woocommerce ul.products li.product-category a.button {
    color: #ffffff !important;
}

/* OCULTAR PÁRRAFOS (DESCRIPCIONES) EN LAS TARJETAS DE LA REJILLA DE CATEGORÍAS */
.woocommerce ul.products li p {
    display: none !important;
}
/* TÍTULO DE LAS TARJETAS EN BLANCO */
.woocommerce ul.products li h2,
.woocommerce ul.products li h3 {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

/* TÍTULO DE CATEGORÍAS EN BLOQUES DE WOOCOMMERCE – COLOR BLANCO */
.wc-block-product-category .wc-block-product-category__title,
.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

/* ENLACE "Ver productos" / links dentro de la tarjeta, también en blanco */
.wc-block-product-category a,
.wc-block-grid__products .wc-block-grid__product a {
    color: #ffffff !important;
}
/* ===========================
   Banner acceso a la tienda
   =========================== */

.home-shop-banner {
    max-width: 1100px;
    margin: 10px auto 40px;   /* se acerca mas a los destacados */
    padding: 70px 24px 80px;
    border-radius: 24px;
    text-align: center;
    box-sizing: border-box;

    /* Degradado rojo → blanco → rojo suave */
    background: linear-gradient(
        180deg,
        #f3d0d0 0%,    /* rojo muy suave arriba */
        #ffffff 45%,   /* blanco en el centro */
        #ffffff 55%,   /* mantiene franja blanca */
        #f3d0d0 100%   /* rojo suave abajo */
    );

    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.home-shop-banner-content h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #7b1f1f;
    margin: 0 0 12px;
}

.home-shop-banner-content p {
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 28px;
    color: #444444;
}

/* Botón CTA */
.home-shop-banner .shop-btn {
    display: inline-block;
    background-color: #b43434;
    padding: 14px 34px;
    color: #ffffff;
    font-weight: 600;
    border-radius: 999px;
    transition: transform .18s ease,
                box-shadow .18s ease,
                background-color .18s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    text-decoration: none;
}

.home-shop-banner .shop-btn:hover {
    background-color: #8f2525;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

/* Responsive */
@media (max-width: 768px) {
    .home-shop-banner {
        margin: 20px 16px 40px;
        padding: 50px 18px 60px;
        border-radius: 18px;
    }

    .home-shop-banner-content h2 {
        font-size: 1.9rem;
    }

    .home-shop-banner-content p {
        font-size: 0.96rem;
    }
}
/* Botón volver a la tienda en productos y categorías */
.comexsa-back-shop {
    text-align: center;
    margin: 2.5rem 0 1.5rem;
}

.comexsa-back-shop a {
    display: inline-block;
    background-color: #b63a3a;
    color: #ffffff;
    padding: 10px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0,0,0,0.16);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.comexsa-back-shop a:hover {
    background-color: #932a2a;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

@media (max-width: 768px) {
    .comexsa-back-shop {
        margin: 2rem 0 1rem;
    }
}
/* RESET CATEGORÍAS TIENDA A FORMATO RECTANGULAR */
.woocommerce ul.products li.product.product-category,
.woocommerce-page ul.products li.product.product-category {
    display: block;
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0 0 2.5rem;
    border-radius: 0;
    box-shadow: none;
}

.woocommerce ul.products li.product.product-category a img,
.woocommerce-page ul.products li.product.product-category a img {
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
}

/* Título de la categoría debajo de la imagen */
.woocommerce ul.products li.product.product-category .woocommerce-loop-category__title,
.woocommerce-page ul.products li.product.product-category .woocommerce-loop-category__title {
    text-align: left;
    padding: 0.8rem 0 0;
}
/* Rejilla limpia para tienda y categorías de producto */
.post-type-archive-product .products,
.tax-product_cat .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;  /* separación entre tarjetas */
}

/* Evitar márgenes/flotados antiguos en los <li> */
.post-type-archive-product .products li.product,
.tax-product_cat .products li.product {
    margin: 0 !important;
    float: none !important;
}
.comexsa-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Colores por tipo */

.badge-gluten-free {
    background-color: #2ecc71 !important; /* verde */
}

.badge-novedad {
    background-color: #f1c40f !important; /* amarillo */
    color: #000 !important;
}

.badge-oferta {
    background-color: #e74c3c !important; /* rojo */
}

.badge-producto-de-la-semana {
    background-color: #f39c12 !important; /* amarillo anaranjado */
    color: #000 !important;
}

/* Contenedor de badges */
.comexsa-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

/* Estilo base del badge */
.comexsa-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* 💚 Gluten Free → atributo "Gluten Free" (slug: gluten-free) */
.comexsa-badge-gluten-free {
    background-color: #2ecc71 !important; /* verde */
}

/* 🟡 Novedad (slug: novedad) */
.comexsa-badge-novedad {
    background-color: #f1c40f !important; /* amarillo */
    color: #000 !important;
}

/* 🔴 Oferta (slug: oferta) */
.comexsa-badge-oferta {
    background-color: #e74c3c !important; /* rojo */
}

/* 🟡 Producto de la semana (slug: producto-de-la-semana) */
.comexsa-badge-producto-de-la-semana {
    background-color: #f39c12 !important; /* amarillo anaranjado */
    color: #000 !important;
}
/* Ocultar precio en tienda, categorías y destacados */
.woocommerce ul.products li.product .price {
    display: none !important;
}

/* Ocultar precio dentro de cada ficha de producto */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    display: none !important;
}