/* =========================================
   FIX MOBILE MENU (HAMBURGER & DRAWER STYLE)
   ========================================= */
.menu-checkbox {
    display: none;
}

/* Cuando el checkbox está checkeado, mostrar el drawer */
.menu-checkbox:checked ~ .mobile-menu-drawer {
    left: 0 !important;
}

/* Animación del icono hamburguesa */
.menu-checkbox:checked + .mobile-burger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-checkbox:checked + .mobile-burger span:nth-child(2) {
    opacity: 0;
}
.menu-checkbox:checked + .mobile-burger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ESTILOS DEL DRAWER (MOBILE MENU) */
.mobile-menu-drawer {
    background-color: #fff !important;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

/* Botón cerrar dentro del drawer (X) */
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    z-index: 10;
}

/* Links del menú móvil */
.mobile-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav-links ul li {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}
.mobile-nav-links ul li a {
    color: #111 !important;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
}

/* Buscador móvil */
.mobile-search-form {
    display: flex;
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}
.mobile-search-form input {
    border: none;
    flex: 1;
    padding: 8px;
    outline: none;
}
.mobile-search-form button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Categorías en móvil (Details/Summary) */
.mobile-cats summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-cats .arrow {
    font-size: 0.8rem;
    color: #cd2aee;
}
.mobile-cat-list {
    padding: 10px 0 10px 15px;
    background: #f9f9f9;
}
.mobile-cat-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-cat-menu li {
    margin-bottom: 8px;
}
.mobile-cat-menu li a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
}

/* Redes Sociales en móvil */
.mobile-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}
.mobile-socials a svg {
    width: 24px;
    height: 24px;
    color: #111; /* Color oscuro por defecto */
    transition: color 0.3s;
}
.mobile-socials a:hover svg {
    color: #cd2aee;
}

/* ===========================
   Mobile Product Gallery Fixes
   =========================== */
@media (max-width: 768px) {
    /* Container: Stack vertically */
    .product-page_container, .page-product, .product-gallery-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Gallery Wrapper: Kill Sticky */
    .product-page_gallery, 
    #productGallery, 
    .woocommerce-product-gallery, 
    .summary, 
    .entry-summary,
    .vibra-sidebar-area {
        position: static !important; /* Static is safer than relative for killing sticky */
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        flex: none !important; /* Disable flex sizing */
        align-self: auto !important;
        transform: none !important; /* Remove any transform that might look like sticky */
        margin-bottom: 20px !important;
        z-index: 1 !important; /* Reset z-index */
    }

    /* Thumbnails: Horizontal Scroll */
    .product-thumbs, .flex-control-thumbs {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        position: static !important;
        order: 99 !important; /* Move below main image if using flex */
        margin-top: 10px !important;
        justify-content: flex-start !important;
        padding: 0 !important;
    }
    
    .product-thumbs .product-thumb, .flex-control-thumbs li {
        width: 80px !important;
        min-width: 80px !important;
        height: auto !important;
        flex: 0 0 auto !important; /* Don't shrink/grow */
        margin-right: 10px !important;
    }
    
    /* Ensure info block flows normally */
    .product-page_info {
        margin-top: 0 !important;
        padding-top: 20px !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Hide scrollbar */
    .product-thumbs::-webkit-scrollbar, .flex-control-thumbs::-webkit-scrollbar {
        height: 4px;
    }
    .product-thumbs::-webkit-scrollbar-thumb, .flex-control-thumbs::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
}

/* ===========================
   Estilos Modal Carrito (Visibilidad)
   =========================== */
/* FORZAR VISIBILIDAD EN DESKTOP Y MOBILE */
#vibra-cart-modal {
    color: #111 !important; /* Asegurar color base */
    z-index: 999999 !important; /* Asegurar que esté encima de todo */
}

/* Forzar color negro en todos los textos del widget de carrito */
#vibra-cart-modal .widget_shopping_cart_content {
    color: #111 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Aplicar visibilidad a hijos EXCEPTO a los botones que queremos ocultar */
#vibra-cart-modal .widget_shopping_cart_content p:not(.buttons):not(.woocommerce-mini-cart__buttons),
#vibra-cart-modal .widget_shopping_cart_content span,
#vibra-cart-modal .widget_shopping_cart_content div,
#vibra-cart-modal .widget_shopping_cart_content a:not(.button) {
    color: #111 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important; 
}

/* FIX EXTRA: A veces la lista ul está oculta */
#vibra-cart-modal .widget_shopping_cart_content ul.cart_list, 
#vibra-cart-modal .widget_shopping_cart_content ul.product_list_widget {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

#vibra-cart-modal .widget_shopping_cart_content ul.cart_list li {
    padding: 15px 0 !important;
    border-bottom: 1px solid #eee !important;
    display: flex !important;
    align-items: center !important;
    color: #111 !important;
    position: relative !important;
}
#vibra-cart-modal .widget_shopping_cart_content ul.cart_list li img {
    width: 60px !important;
    height: 60px !important;
    margin-right: 15px !important;
    border-radius: 5px !important;
    float: none !important;
}
#vibra-cart-modal .widget_shopping_cart_content ul.cart_list li a {
    color: #111 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
#vibra-cart-modal .widget_shopping_cart_content .quantity {
    display: block !important;
    font-size: 0.9rem !important;
    color: #666 !important;
}
#vibra-cart-modal .total {
    padding: 20px 0 !important;
    border-top: 1px solid #eee !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    text-align: right !important;
    display: block !important; /* Asegurar que se vea */
}

/* OCULTAR BOTONES NATIVOS DEL WIDGET (Ver Carrito / Finalizar Compra) */
#vibra-cart-modal .widget_shopping_cart_content .woocommerce-mini-cart__buttons,
#vibra-cart-modal .widget_shopping_cart_content .buttons {
    display: none !important; 
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================
   BOTÓN ELIMINAR DEL CARRITO (MODAL)
   ========================================= */
#vibra-cart-modal .widget_shopping_cart_content .remove,
#vibra-cart-modal .widget_shopping_cart_content .remove_from_cart_button {
    display: flex !important; /* Asegurar visible */
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background: #f0f0f0 !important;
    color: #ff0000 !important; /* Rojo para eliminar */
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-weight: bold !important;
    line-height: 1 !important;
    z-index: 10 !important;
}
#vibra-cart-modal .widget_shopping_cart_content .remove:hover {
    background: #ff0000 !important;
    color: #fff !important;
}

/* ===========================
   Layout página de producto
   =========================== */
.product-page_container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px !important; /* Espacio real entre las dos columnas */
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 0; 
}

.product-page_gallery {
  width: 100%;
}

.product-page_info {
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
}

@media (min-width: 768px) {
  /* Al usar gap: 40px, debemos restar ese espacio a los anchos */
  .product-page_gallery {
    width: calc(55% - 20px) !important; 
  }

  .product-page_info {
    width: calc(45% - 20px) !important;
    padding: 40px 40px 40px 0 !important; /* Padding interno */
  }
}

/* ===========================
   Productos relacionados
   =========================== */
.related.products {
  margin-top: 40px;
  width: 100%;
}

.related.products > h2 {
  display: none;
}

.related.products::before {
  content: "Te podría interesar:";
  display: block;
  font-weight: 700;
  color: var(--dark);
  font-size: 1.5rem;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.related.products ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .related.products ul.products {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related.products ul.products li.product {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.related.products ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(13, 5, 32, 0.12);
}

.related.products ul.products li.product img {
    border-radius: 12px;
    margin-bottom: 10px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* FORZAR TÍTULO A 1 LÍNEA */
.related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    padding: 0 5px;
    margin-bottom: 5px;
    
    /* Truco para 1 sola línea con puntos suspensivos */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    width: 100%;
    text-decoration: none !important; /* NO SUBRAYADO */
}

.related.products ul.products li.product .price {
    font-weight: bold;
    color: var(--primary);
    padding: 0 5px;
    margin-bottom: 10px;
}

/* RESET PARA PASTILLAS DE COLOR (Mata el estilo del tema) */
button.vibra-color-pill {
    background-image: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: 35px !important;
    min-height: 35px !important;
    line-height: 1 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

button.vibra-color-pill:hover {
    transform: scale(1.1) !important;
    background-color: inherit !important;
}

/* Breadcrumbs y Badges: Color Negro */
.woocommerce-breadcrumb, 
.woocommerce-breadcrumb a,
.ast-woo-product-category {
    color: #111 !important;
}
.woocommerce-breadcrumb a:hover {
    color: #cd2aee !important;
}

/* =========================================
   ESTILOS HOME (MIGRACIÓN)
   ========================================= */

/* HERO - FULL WIDTH */
.hero {
    position: relative;
    height: 90vh;
    min-height: 500px;
    width: 100vw; /* Full width */
    margin-left: calc(50% - 50vw); /* Truco para romper contenedores */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2;
}
.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 0 20px;
}
.hero .title {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff !important; /* Fuerza el blanco */
}
.hero .destaque {
    color: var(--primary, #cd2aee);
}
.hero .subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}
.btn-ghost-white {
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important; /* NO SUBRAYADO */
    transition: all 0.3s;
    display: inline-block;
    border-radius: 5px !important; /* Bordes poco redondeados */
}
.btn-ghost-white:hover {
    background: #fff;
    color: #111;
}

/* SECCIONES GENERALES */
section.benefits-section, 
section.categories-section, 
section.featured-products-section, 
section.testimonials-section,
section.cta-section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark, #0d0520);
}

/* BENEFITS */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.benefit-card {
    text-align: center;
    padding: 20px;
}
/* BENEFIT ICONS - FIX SIZE */
.benefit-icon {
    width: 120px; height: 120px;
    margin: 0 auto 5px; /* Reducido espacio */
    color: var(--primary, #cd2aee);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Asegurar que el SVG llene el contenedor */
.benefit-icon svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 120px !important;
    max-height: 120px !important;
}
.benefit-title {
    font-size: 1.5rem !important; /* Más grande */
    margin-bottom: 10px;
    font-weight: 700;
    margin-top: 10px; /* Separación controlada */
}
.benefit-text {
    color: #666;
    font-size: 0.95rem;
}

/* CATEGORIES */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}
.category-card:hover {
    transform: translateY(-5px);
}
.category-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}
.category-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.category-card:hover .category-image img {
    transform: scale(1.05);
}
.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.category-description {
    font-size: 0.9rem;
    color: #666;
}

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.testimonial-stars {
    color: #ffb400;
    margin-bottom: 15px;
}
.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}
.testimonial-author {
    font-weight: 700;
    color: #111;
}

/* CTA - FULL WIDTH */
.cta-section {
    background: var(--dark, #0d0520);
    color: #fff;
    text-align: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 80px 20px;
}
.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}
.cta-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.8;
}
.btn-primary.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .benefits-grid, .categories-grid, .testimonials-grid { grid-template-columns: 1fr; }
}

/* =========================================
   ESTILOS DE TARJETA (Home Grid Fix)
   ========================================= */

/* REMOVE GAPS ON HOMEPAGE */
.home #primary, 
.home .site-content,
.home .entry-content,
.home .ast-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* AGREGAR AIRE EN TIENDA (BREADCRUMBS/FILTERS) */
.archive .site-content, 
.archive #primary {
    margin-top: 40px !important;
    padding-top: 0 !important;
}

/* Forzar Grid de 4 Columnas en Desktop */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Estilos de Tarjeta Individual */
.products-grid li.product {
    width: 100% !important; 
    margin: 0 !important; 
    background: #fff; 
    border: 1px solid #e8e8e8 !important; 
    border-radius: 8px !important; 
    padding-bottom: 0 !important; 
    padding: 0 !important; /* QUITAR PADDING INTERNO DE LA TARJETA */
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    transition: all 0.3s ease;
    height: 100%; /* Asegurar altura completa */
}

.products-grid li.product:hover { 
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); 
    border-color: #cd2aee !important; 
    transform: translateY(-5px); 
}

/* Imagen del producto */
.products-grid li.product a img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1; 
    margin: 0 auto;
    display: block; /* Asegurar bloque */
}

/* Contenedor info producto (padding solo para texto) */
.products-grid li.product .woocommerce-loop-product__title,
.products-grid li.product .price {
    padding-left: 10px;
    padding-right: 10px;
}

/* Título de producto: Forzar 2 líneas */
.products-grid li.product .woocommerce-loop-product__title { 
    text-align: center; 
    font-size: 14px; 
    text-transform: uppercase; 
    margin: 10px 0;
    
    /* Forzar 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    height: 2.6em; /* 2 líneas x 1.3em */
    text-decoration: none !important; /* NO SUBRAYADO */
}

.products-grid li.product .price { 
    color: #cd2aee !important; 
    font-weight: 800; 
    text-align: center; 
    display: block; 
    margin-bottom: 15px; 
}

/* Botón Full Width */
.products-grid li.product .button {
    width: 100% !important; 
    display: block !important; 
    text-align: center; 
    border-radius: 0 0 8px 8px !important; 
    margin-top: auto; /* Empujar al fondo */
    padding: 12px 0 !important; 
    background-color: #111 !important; /* DEFAULT NEGRO (AGREGAR AL CARRITO) */
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    border: none !important;
    text-decoration: none !important; /* NO SUBRAYADO */
    
    /* FIX PADDING/WIDTH */
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    max-width: 100% !important;
}

.products-grid li.product .button:hover {
    background-color: #cd2aee !important;
    color: #fff !important;
}

/* BOTÓN COTIZAR (SIN STOCK): GRADIENTE ROSA A MORADO */
/* Y OTROS BOTONES QUE DEBEN TENER EL MISMO ESTILO */
.products-grid li.product.outofstock .button,
.single_add_to_cart_button,
.vibra-quote-btn,
button.alt,
input.button.alt,
button[name="add-to-cart"],
a.button.alt,
.featured-products-cta .btn, /* Botón "Ver catálogo completo" */
.cta-content .btn-primary,   /* Botón "Cotizar ahora" (Banner) */
.btn-ghost-white /* Sobrescribir el estilo ghost si se quiere full gradiente */
{ 
    background: linear-gradient(90deg, #cd2aee 0%, #5a1da8 100%) !important;
    color: #fff !important;
    border: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    border-radius: 5px !important; /* Asegurar mismo radio */
    padding: 12px 20px !important; /* Asegurar mismo padding */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: inline-block !important; /* Para que 'a' se comporte como botón */
    text-align: center !important;
    text-decoration: none !important;
    min-width: 150px; /* Asegurar ancho mínimo decente */
    box-shadow: none !important; /* Reset shadow base */
}

/* HOVER COMÚN PARA TODOS LOS BOTONES */
.products-grid li.product.outofstock .button:hover,
.single_add_to_cart_button:hover,
.vibra-quote-btn:hover,
button.alt:hover,
input.button.alt:hover,
button[name="add-to-cart"]:hover,
a.button.alt:hover,
.featured-products-cta .btn:hover,
.cta-content .btn-primary:hover,
.btn-ghost-white:hover
{
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(205, 42, 238, 0.4) !important;
    background: linear-gradient(90deg, #b024cc 0%, #4a188c 100%) !important;
    color: #fff !important;
}

/* EXCEPCIÓN: BOTÓN "VER CATÁLOGO" DEL HERO (SI QUIERES QUE ESE SEA BLANCO, QUITA ESTA PARTE) 
   SI QUIERES QUE SEA GRADIENTE TAMBIÉN, DÉJALO ARRIBA.
   PERO DIJISTE "Ver catálogo completo" (que está abajo) y "Cotizar ahora" (Banner).
*/

/* Ocultar elementos no deseados en la home */
.products-grid li.product .star-rating,
.products-grid li.product .woocommerce-loop-category__title, 
.products-grid li.product .posted_in, 
.products-grid li.product > a + span.ast-woo-product-category,
.products-grid li.product .onsale, 
.products-grid li.product .outofstock-badge { 
    display: none !important; 
}

/* Ajuste Footer Mapa */
.footer-contact iframe {
    width: 100%;
    height: 150px; 
    border-radius: 10px;
    border: 0;
}

/* Footer Full Width Background */
.site-footer {
    background-color: #111 !important; /* Asegurar fondo negro */
    color: #b0b0b0 !important;
    width: 100vw !important; /* Full viewport width */
    margin-left: calc(50% - 50vw); /* Romper contenedor */
    padding: 60px 0 20px !important;
    margin-top: 0 !important; /* Quitar espacio arriba */
    box-sizing: border-box;
}

/* Contenedor principal del footer (solo layout macro) */
.site-footer .footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: block !important; /* Quitar grid de aquí */
}

/* Contenido de 3 Columnas */
.site-footer .footer-content {
    display: grid !important; 
    grid-template-columns: repeat(3, 1fr) !important; /* 3 columnas iguales */
    gap: 40px !important;
    align-items: start !important;
    width: 100% !important;
}

/* Asegurar que las secciones del footer respeten el grid */
.footer-section, .footer-col { 
    margin-bottom: 30px;
    box-sizing: border-box;
    min-width: 0 !important; /* Evitar desbordes en grid */
}

/* En móvil, volver a columna única */
@media (max-width: 768px) {
    .site-footer .footer-content {
        grid-template-columns: 1fr !important;
    }
}

/* Quitar margen inferior al último elemento del footer */
.site-footer .footer-col:last-child {
    margin-bottom: 0;
}

/* Quitar espacios extra generales */
#primary, #content, .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Quitar espacio bajo el CTA */
.cta-section {
    margin-bottom: 0 !important;
    padding-bottom: 80px; 
}
