/*
Theme Name: GRSBAT
Theme URI: https://grs.web-de-pruebas.com/
Author: GRSBAT
Author URI: https://grsbat.com/
Description: Tema corporativo a medida para GRSBAT, soluciones energeticas industriales.
Version: 0.3.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grsbat
Tags: corporate, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ───────────────────────────────────────────────────────────────
   VARIABLES Y RESET
   ─────────────────────────────────────────────────────────────── */
:root {
    --grsbat-black:     #000000;
    --grsbat-dark:      #222222;
    --grsbat-red:       #FF0000;
    --grsbat-white:     #FFFFFF;
    --grsbat-light:     #F2F2F2;
    --grsbat-gray-text: #555555;
    --grsbat-max-width: 1280px;
    --grsbat-topbar-h: 36px;
    --grsbat-header-h: 68px;
    --grsbat-font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --grsbat-font-body:    "Open Sans",  system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--grsbat-topbar-h) + var(--grsbat-header-h)); }

body {
    margin: 0;
    font-family: var(--grsbat-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--grsbat-dark);
    background: var(--grsbat-white);
    -webkit-font-smoothing: antialiased;
}
body.grsbat-nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--grsbat-red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--grsbat-font-heading);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.5em;
    color: var(--grsbat-black);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1em; }

.grsbat-container {
    max-width: var(--grsbat-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ───────────────────────────────────────────────────────────────
   BOTONES
   ─────────────────────────────────────────────────────────────── */
.grsbat-btn {
    display: inline-block;
    background: var(--grsbat-red);
    color: var(--grsbat-white);
    padding: 14px 28px;
    font-family: var(--grsbat-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}
.grsbat-btn:hover { background: #cc0000; text-decoration: none; color: var(--grsbat-white); }
.grsbat-btn--xl   { padding: 18px 36px; font-size: 1rem; border-radius: 999px; }
.grsbat-btn--dark { background: #111; }
.grsbat-btn--dark:hover { background: #000; }

/* ───────────────────────────────────────────────────────────────
   TOP BAR
   ─────────────────────────────────────────────────────────────── */
.grsbat-topbar {
    background: #0a0a0a;
    height: var(--grsbat-topbar-h);
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.76rem;
    color: #777;
    position: relative;
}
/* Acento rojo superior */
.grsbat-topbar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--grsbat-red) 0%, var(--grsbat-red) 30%, transparent 100%);
}
.grsbat-topbar-inner {
    max-width: var(--grsbat-max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.grsbat-topbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.grsbat-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #777;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}
.grsbat-topbar-link:hover { color: #fff; text-decoration: none; }
.grsbat-topbar-link .grsbat-icon { color: var(--grsbat-red); opacity: 0.6; flex-shrink: 0; }
.grsbat-topbar-sep {
    display: block;
    width: 1px;
    height: 12px;
    background: #2a2a2a;
    margin: 0 14px;
}
.grsbat-topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
    text-transform: uppercase;
}
.grsbat-topbar-right .grsbat-icon { color: var(--grsbat-red); opacity: 0.5; flex-shrink: 0; }

/* ───────────────────────────────────────────────────────────────
   HEADER — Nav principal
   ─────────────────────────────────────────────────────────────── */
.grsbat-header {
    background: var(--grsbat-black);
    color: var(--grsbat-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--grsbat-header-h);
}
.grsbat-header-inner {
    max-width: var(--grsbat-max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 36px;
}

/* Logo */
.grsbat-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    pointer-events: none;
    user-select: none;
}
.grsbat-logo img { height: 44px; width: auto; max-width: 150px; display: block; }
.grsbat-logo-text {
    font-family: var(--grsbat-font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--grsbat-red);
    letter-spacing: 0.04em;
}

/* Nav */
.grsbat-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    height: 100%;
}

/* ── Hamburguesa ──────────────────────────────────────────────── */
.grsbat-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 6px;
    margin-left: auto;
    flex-shrink: 0;
}
.grsbat-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}
.grsbat-toggle-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--grsbat-white);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}
.grsbat-toggle.is-active .grsbat-toggle-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.grsbat-toggle.is-active .grsbat-toggle-icon span:nth-child(2) { opacity: 0; }
.grsbat-toggle.is-active .grsbat-toggle-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────────────────────────────────────────────────────────
   MEGA MENÚ
   ─────────────────────────────────────────────────────────────── */
.grsbat-megamenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0;
}

/* Item nivel 1 */
.grsbat-mega-item {
    position: static;
    height: 100%;
    display: flex;
    align-items: center;
}
.grsbat-mega-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    font-family: var(--grsbat-font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    padding: 0 18px;
    height: 100%;
    position: relative;
    transition: color 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}
/* Underline animada */
.grsbat-mega-item > a::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 18px; right: 18px;
    height: 2px;
    background: var(--grsbat-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.grsbat-mega-item > a:hover,
.grsbat-mega-item.is-hover > a,
.grsbat-mega-item:focus-within > a {
    color: #fff;
    text-decoration: none;
}
.grsbat-mega-item > a:hover::after,
.grsbat-mega-item.is-hover > a::after,
.grsbat-mega-item:focus-within > a::after {
    transform: scaleX(1);
}

/* INICIO */
.grsbat-mega-item--home > a { color: rgba(255,255,255,0.85); }
.grsbat-mega-item--home > a:hover { color: #fff; }
.grsbat-mega-home-icon { flex-shrink: 0; opacity: 0.4; transition: opacity 0.2s, transform 0.2s; }
.grsbat-mega-item--home > a:hover .grsbat-mega-home-icon { opacity: 0.8; transform: translateX(-2px); }

/* Caret */
.grsbat-mega-caret {
    width: 11px; height: 11px;
    flex-shrink: 0;
    opacity: 0.3;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
}
.grsbat-mega-item.is-hover .grsbat-mega-caret { transform: rotate(180deg); opacity: 0.8; }

/* CTA Contacto */
.grsbat-mega-item--cta {
    margin-left: 20px;
    height: auto;
    align-self: center;
}
.grsbat-mega-item--cta > a {
    background: var(--grsbat-red);
    color: #fff !important;
    padding: 10px 28px;
    height: auto;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: background 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.grsbat-mega-item--cta > a::after { display: none; }
.grsbat-mega-item--cta > a:hover {
    background: #d50000;
    box-shadow: 0 4px 16px rgba(255,0,0,0.3);
    transform: translateY(-1px);
}

/* ── Panel desplegable — estilo Adidas ────────────────────────── */
.grsbat-mega-panel {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #fff;
    color: var(--grsbat-dark);
    padding: 0;
    border-top: 3px solid var(--grsbat-red);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
    pointer-events: none;
}
.grsbat-mega-item.is-hover > .grsbat-mega-panel,
.grsbat-mega-item:focus-within > .grsbat-mega-panel {
    opacity: 1; visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.grsbat-mega-panel::before {
    content: "";
    position: absolute;
    top: -28px; left: 0; right: 0;
    height: 28px;
    pointer-events: auto;
}

/* Layout: links izquierda + imagen derecha */
.grsbat-mega-panel .grsbat-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    align-items: stretch;
    padding: 0;
}
.grsbat-mega-panel.is-single .grsbat-container {
    grid-template-columns: 1fr auto;
}

/* Zona de links (contiene las 2 columnas) */
.grsbat-mega-links {
    display: flex;
    gap: 0;
    padding: 36px 0 36px 40px;
    flex: 1;
}

/* Columna principal */
.grsbat-mega-col {
    padding: 0 36px 0 0;
    min-width: 0;
}
.grsbat-mega-col h3 {
    font-family: var(--grsbat-font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #b0b0b0;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
    position: relative;
}
/* Acento rojo bajo el título de la columna principal */
.grsbat-mega-col--main h3::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 0;
    width: 28px; height: 1px;
    background: var(--grsbat-red);
}

/* Columna "También te puede interesar" */
.grsbat-mega-col--related {
    padding: 0 0 0 32px;
    border-left: 1px solid #f0f0f0;
}

/* Items */
.grsbat-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.grsbat-mega-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #444;
    font-family: var(--grsbat-font-body);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 10px 14px 10px 12px;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.grsbat-mega-list li a:hover {
    background: #f7f7f7;
    color: var(--grsbat-red);
    border-left-color: var(--grsbat-red);
    padding-left: 16px;
    text-decoration: none;
}

.grsbat-mega-list li a .grsbat-icon {
    flex-shrink: 0;
    width: 18px; height: 18px;
    color: var(--grsbat-red);
    opacity: 0.35;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.grsbat-mega-list li a:hover .grsbat-icon { opacity: 1; transform: scale(1.1); }

/* ── Imagen destacada ────────────────────────────────────────── */
.grsbat-mega-featured {
    display: block;
    position: relative;
    width: 360px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}
.grsbat-mega-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
    filter: brightness(0.9);
}
.grsbat-mega-featured:hover img {
    transform: scale(1.06);
    filter: brightness(1);
}

/* Tag de categoría */
.grsbat-mega-featured::before {
    content: "Destacado";
    position: absolute;
    top: 16px; left: 16px;
    z-index: 2;
    background: var(--grsbat-red);
    color: #fff;
    font-family: var(--grsbat-font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 2px;
}

/* Overlay */
.grsbat-mega-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.35) 45%,
        rgba(0,0,0,0.02) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 28px;
    transition: background 0.35s ease;
}
.grsbat-mega-featured:hover .grsbat-mega-featured-overlay {
    background: linear-gradient(to top,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.45) 45%,
        rgba(0,0,0,0.08) 100%
    );
}

.grsbat-mega-featured-overlay h4 {
    font-family: var(--grsbat-font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}
.grsbat-mega-featured-overlay p {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0 0 18px;
}

.grsbat-mega-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: #fff;
    font-family: var(--grsbat-font-heading);
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2px;
    backdrop-filter: blur(4px);
    transition: background 0.25s ease, gap 0.3s ease, border-color 0.25s ease;
}
.grsbat-mega-featured:hover .grsbat-mega-featured-cta {
    background: var(--grsbat-red);
    border-color: var(--grsbat-red);
    gap: 12px;
}
.grsbat-mega-featured-cta .grsbat-icon { flex-shrink: 0; width: 14px; height: 14px; }

/* ───────────────────────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────────────────────── */
.grsbat-site-footer {
    background: var(--grsbat-dark);
    color: var(--grsbat-white);
    padding: 56px 0 0;
    font-size: 0.9rem;
}
.grsbat-site-footer a { color: var(--grsbat-white); }
.grsbat-site-footer a:hover { color: var(--grsbat-red); }

.grsbat-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
}
.grsbat-footer-col h4 {
    font-family: var(--grsbat-font-heading);
    color: var(--grsbat-white);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 16px;
}
.grsbat-footer-col p {
    margin: 0 0 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #bbb;
}
.grsbat-footer-col .grsbat-icon { color: var(--grsbat-red); flex-shrink: 0; margin-top: 3px; }
.grsbat-footer-name { font-family: var(--grsbat-font-heading); font-weight: 800; font-size: 1.1rem; color: var(--grsbat-white); margin: 0 0 8px; }
.grsbat-footer-claim { color: #aaa; font-size: 0.88rem; }
.grsbat-footer-legal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.grsbat-footer-legal li a { color: #bbb; font-size: 0.88rem; }
.grsbat-footer-legal li a:hover { color: var(--grsbat-white); }

.grsbat-kit-digital {
    background: #fff;
    padding: 20px 0;
    border-top: 1px solid #333;
}
.grsbat-kit-digital img { display: block; margin: 0 auto; max-width: 100%; height: auto; }

.grsbat-footer-bottom {
    background: var(--grsbat-red);
    color: #fff;
    padding: 14px 0;
    text-align: center;
    font-size: 0.8rem;
}
.grsbat-footer-bottom p { margin: 0; color: #fff; }

/* ───────────────────────────────────────────────────────────────
   MAIN / PÁGINAS INTERNAS
   ─────────────────────────────────────────────────────────────── */
.grsbat-site-main { min-height: 50vh; }
.grsbat-page-wrap { padding: 64px 0; }
.grsbat-page .entry-title { margin-bottom: 24px; }

/* ───────────────────────────────────────────────────────────────
   HOME — secciones
   ─────────────────────────────────────────────────────────────── */
.grsbat-eyebrow {
    color: var(--grsbat-red);
    font-family: var(--grsbat-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    margin: 0 0 14px;
}

.grsbat-section-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 52px;
}
.grsbat-section-head h2 {
    text-transform: uppercase;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 18px;
}
.grsbat-section-head p { color: #555; }
.grsbat-section-head .grsbat-subhead {
    text-transform: uppercase;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.04em;
}

/* HERO */
.grsbat-hero {
    position: relative;
    background: #000 center/cover no-repeat;
    color: var(--grsbat-white);
    padding: 120px 0 140px;
    text-align: center;
}
.grsbat-hero::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.7) 100%);
}
.grsbat-hero-inner { position: relative; }
.grsbat-hero-title {
    color: var(--grsbat-white);
    text-transform: uppercase;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.1;
    margin: 0 0 32px;
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.grsbat-hero-actions { margin: 0; }

/* DUAL CARDS */
.grsbat-dual {
    margin-top: -64px;
    padding-bottom: 64px;
    position: relative;
    z-index: 2;
}
.grsbat-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.grsbat-card {
    padding: 36px 32px;
    border-radius: 4px;
    box-shadow: 0 18px 40px -16px rgba(0,0,0,.35);
}
.grsbat-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    margin-bottom: 18px;
}
.grsbat-card-icon--red { background: rgba(255,0,0,.12); color: var(--grsbat-red); }
.grsbat-card-title { text-transform: uppercase; font-size: 1.1rem; margin-bottom: 14px; color: inherit; }
.grsbat-card--red { background: var(--grsbat-red); color: #fff; }
.grsbat-card--red .grsbat-card-title,
.grsbat-card--red p { color: #fff; }
.grsbat-card--light { background: var(--grsbat-light); color: var(--grsbat-dark); }
.grsbat-card--light .grsbat-card-title { color: var(--grsbat-black); }

/* ABOUT */
.grsbat-about { padding: 80px 0; }
.grsbat-about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}
.grsbat-about-text h2 { text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 18px; }
.grsbat-mvv { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 10px; }
.grsbat-mvv li { display: flex; gap: 10px; align-items: flex-start; }
.grsbat-mvv li .grsbat-icon { color: var(--grsbat-red); flex-shrink: 0; margin-top: 4px; }
.grsbat-about-image img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.35); }

/* PRODUCTS */
.grsbat-products { padding: 80px 0; background: var(--grsbat-white); }
.grsbat-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grsbat-product { background: var(--grsbat-light); transition: transform .2s ease, box-shadow .2s ease; }
.grsbat-product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); }
.grsbat-product a { display: block; color: inherit; text-decoration: none; }
.grsbat-product img { width: 100%; height: auto; display: block; }
.grsbat-product h3 { color: var(--grsbat-red); text-transform: uppercase; font-size: 1.2rem; padding: 24px 24px 8px; margin: 0; }
.grsbat-product p { padding: 0 24px 24px; color: #555; margin: 0; }

/* WHY */
.grsbat-why {
    padding: 96px 0;
    color: #fff;
    background: #000 center/cover no-repeat;
    position: relative;
}
.grsbat-why::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.78), rgba(0,0,0,.55));
}
.grsbat-why .grsbat-container { position: relative; }
.grsbat-why-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: center;
}
.grsbat-why-text h2 { color: #fff; text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.grsbat-why-text p { color: #ddd; }
.grsbat-why-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grsbat-why-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--grsbat-red);
    color: #fff;
    padding: 18px 20px;
    font-weight: 700;
    font-family: var(--grsbat-font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}
.grsbat-why-list li .grsbat-icon { flex-shrink: 0; color: #fff; margin-top: 1px; }

/* SERVICES */
.grsbat-services { padding: 80px 0; background: var(--grsbat-light); }
.grsbat-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grsbat-service { background: #fff; box-shadow: 0 14px 30px -18px rgba(0,0,0,.25); }
.grsbat-service img { width: 100%; height: auto; display: block; }
.grsbat-service-body { padding: 24px; }
.grsbat-service-body h3 { color: var(--grsbat-red); text-transform: uppercase; font-size: 1.05rem; margin: 0 0 10px; }
.grsbat-service-body p { color: #555; margin: 0; }

/* ───────────────────────────────────────────────────────────────
   PÁGINA DE CONTACTO
   ─────────────────────────────────────────────────────────────── */
.grsbat-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    margin-top: 24px;
}
.grsbat-contact-info { background: var(--grsbat-light); padding: 32px; }
.grsbat-contact-info h2 { margin-top: 0; }
.grsbat-contact-list { list-style: none; padding: 0; margin: 16px 0 0; }
.grsbat-contact-list li { padding: 10px 0; border-bottom: 1px solid #ddd; }
.grsbat-contact-list li:last-child { border-bottom: 0; }
.grsbat-contact-form h2 { margin-top: 0; }

/* CF7 */
.grsbat-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wpcf7 label { display: block; font-family: var(--grsbat-font-heading); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: #222; margin-bottom: 6px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea { width: 100%; padding: 12px 14px; border: 1px solid #ccc; border-radius: 2px; font-family: var(--grsbat-font-body); font-size: 1rem; background: #fff; color: var(--grsbat-dark); }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { outline: none; border-color: var(--grsbat-red); box-shadow: 0 0 0 3px rgba(255,0,0,.15); }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.9rem; color: #555; display: flex; align-items: center; gap: 8px; }
.wpcf7-spinner { display: none; }
.wpcf7-response-output { border: 0 !important; padding: 14px 18px !important; margin: 14px 0 0 !important; }
.wpcf7 form.sent .wpcf7-response-output { background: #e6f7ec; color: #146c43; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { background: #fde8e8; color: #b42318; }

/* ───────────────────────────────────────────────────────────────
   POR QUÉ GRS — 3 tarjetas oscuras: Calidad / Seguridad / Ahorro
   ─────────────────────────────────────────────────────────────── */
.grsbat-porque {
    background: var(--grsbat-black);
    padding: 72px 0 0;
}
.grsbat-porque-head {
    text-align: center;
    margin-bottom: 40px;
}
.grsbat-porque-head h2 {
    color: var(--grsbat-white);
    text-transform: uppercase;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    margin: 0;
    position: relative;
    display: inline-block;
}
.grsbat-porque-head h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--grsbat-red);
    margin: 14px auto 0;
}

.grsbat-porque-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #111;
}

.grsbat-porque-card {
    background: #141414;
    display: flex;
    flex-direction: column;
    transition: background 0.2s ease;
}
.grsbat-porque-card:hover { background: #1a1a1a; }

.grsbat-porque-card-header {
    padding: 20px 24px 18px;
    border-bottom: 1px solid #222;
}
.grsbat-porque-card-header h3 {
    color: var(--grsbat-white);
    font-family: var(--grsbat-font-heading);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.08em;
    margin: 0;
}

.grsbat-porque-card-img {
    flex: 1;
    overflow: hidden;
    line-height: 0;
}
.grsbat-porque-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.grsbat-porque-card:hover .grsbat-porque-card-img img { transform: scale(1.03); }

.grsbat-porque-card-footer {
    padding: 16px 24px;
    border-top: 1px solid #222;
}
.grsbat-porque-card-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--grsbat-red);
    font-family: var(--grsbat-font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: gap 0.2s ease;
}
.grsbat-porque-card-footer a:hover { gap: 12px; text-decoration: none; }
.grsbat-porque-card-footer a .grsbat-icon { flex-shrink: 0; }

/* ───────────────────────────────────────────────────────────────
   PRODUCTOS DESTACADOS — 3 cols, centro protagonista
   ─────────────────────────────────────────────────────────────── */
.grsbat-dest {
    background: var(--grsbat-black);
    padding-bottom: 0;
}

.grsbat-dest-head {
    text-align: center;
    padding: 52px 0 40px;
    border-top: 1px solid #1a1a1a;
}
.grsbat-dest-head h2 {
    color: var(--grsbat-white);
    text-transform: uppercase;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    margin: 0;
    position: relative;
    display: inline-block;
}
.grsbat-dest-head h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--grsbat-red);
    margin: 14px auto 0;
}

.grsbat-dest-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 2px;
    background: #111;
    align-items: start;
}

.grsbat-dest-card {
    background: #141414;
    display: flex;
    flex-direction: column;
    transition: background 0.2s ease;
}
.grsbat-dest-card:hover { background: #1c1c1c; }

.grsbat-dest-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #222;
}
.grsbat-dest-card-header h3 {
    color: var(--grsbat-white);
    font-family: var(--grsbat-font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0;
}

.grsbat-dest-badge {
    background: var(--grsbat-red);
    color: #fff;
    font-family: var(--grsbat-font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.grsbat-dest-card-img-wrap {
    display: block;
    overflow: hidden;
    line-height: 0;
    flex: 1;
}
.grsbat-dest-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.grsbat-dest-card:hover .grsbat-dest-card-img-wrap img { transform: scale(1.03); }

/* Featured card: imagen más alta */
.grsbat-dest-card--featured .grsbat-dest-card-img-wrap { min-height: 400px; }
.grsbat-dest-card--side    .grsbat-dest-card-img-wrap { min-height: 260px; }

.grsbat-dest-card-footer {
    padding: 16px 24px;
    border-top: 1px solid #222;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.grsbat-dest-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-family: var(--grsbat-font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}
.grsbat-dest-more:hover { color: var(--grsbat-white); gap: 12px; text-decoration: none; }
.grsbat-dest-more--red { color: var(--grsbat-red); }
.grsbat-dest-more--red:hover { color: #ff4444; }
.grsbat-dest-more .grsbat-icon { flex-shrink: 0; }

.grsbat-dest-all {
    color: #555;
    font-family: var(--grsbat-font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.grsbat-dest-all:hover { color: #aaa; border-color: #555; text-decoration: none; }

/* ───────────────────────────────────────────────────────────────
   PÁGINAS INTERNAS — Hero, Breadcrumb, Layout sidebar, CTA
   ─────────────────────────────────────────────────────────────── */

/* Hero de página interna */
.grsbat-page-hero {
    background: var(--grsbat-black);
    color: var(--grsbat-white);
    padding: 48px 0 52px;
    border-bottom: 4px solid var(--grsbat-red);
}

/* Breadcrumb */
.grsbat-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.82rem;
    margin-bottom: 20px;
}
.grsbat-breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.15s ease;
}
.grsbat-breadcrumb a:hover { color: var(--grsbat-white); text-decoration: none; }
.grsbat-breadcrumb-sep {
    display: inline-flex;
    align-items: center;
    color: #555;
}
.grsbat-breadcrumb-current {
    color: var(--grsbat-red);
    font-weight: 600;
}

/* Eyebrow de sección */
.grsbat-page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--grsbat-red);
    font-family: var(--grsbat-font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px;
}
.grsbat-page-hero-eyebrow .grsbat-icon { flex-shrink: 0; }

/* Título del hero */
.grsbat-page-hero-title {
    color: var(--grsbat-white);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.15;
}

/* Layout con sidebar */
.grsbat-page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

/* Sidebar */
.grsbat-page-sidebar {
    position: sticky;
    top: calc(var(--grsbat-header-h) + var(--grsbat-topbar-h) + 24px);
}

.grsbat-sidebar-nav {
    background: var(--grsbat-light);
    border-radius: 4px;
    overflow: hidden;
}
.grsbat-sidebar-title {
    margin: 0;
    padding: 16px 20px;
    background: var(--grsbat-black);
    border-bottom: 3px solid var(--grsbat-red);
}
.grsbat-sidebar-title a {
    color: var(--grsbat-white);
    font-family: var(--grsbat-font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
}
.grsbat-sidebar-title a:hover { color: var(--grsbat-red); }

.grsbat-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.grsbat-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--grsbat-dark);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.grsbat-sidebar-nav li a:hover {
    background: #e8e8e8;
    color: var(--grsbat-red);
}
.grsbat-sidebar-nav li a .grsbat-icon {
    flex-shrink: 0;
    color: var(--grsbat-red);
    opacity: 0.6;
}
.grsbat-sidebar-nav li.is-active a {
    background: #fff;
    color: var(--grsbat-red);
    border-left-color: var(--grsbat-red);
    font-weight: 700;
}
.grsbat-sidebar-nav li.is-active a .grsbat-icon { opacity: 1; }

/* CTA sidebar */
.grsbat-sidebar-cta {
    background: var(--grsbat-black);
    border-radius: 4px;
    padding: 24px 20px;
    margin-top: 20px;
    text-align: center;
}
.grsbat-sidebar-cta-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--grsbat-white);
    font-family: var(--grsbat-font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    margin: 0 0 10px;
}
.grsbat-sidebar-cta-title .grsbat-icon { color: var(--grsbat-red); flex-shrink: 0; }
.grsbat-sidebar-cta-phone { margin: 0 0 16px; }
.grsbat-sidebar-cta-phone a {
    color: var(--grsbat-white);
    font-family: var(--grsbat-font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
}
.grsbat-sidebar-cta-phone a:hover { color: var(--grsbat-red); }
.grsbat-sidebar-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.85rem;
}

/* Contenido de la página */
.grsbat-page-content {
    min-width: 0;
}
.grsbat-page-wrap { padding: 48px 0 64px; }

/* Tipografía del contenido de landings */
.grsbat-page .entry-content h2 {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--grsbat-black);
}
.grsbat-page .entry-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.grsbat-page .entry-content h3 {
    margin-top: 28px;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--grsbat-red);
}

.grsbat-page .entry-content ul,
.grsbat-page .entry-content ol {
    padding-left: 0;
    list-style: none;
    margin: 16px 0 24px;
}
.grsbat-page .entry-content li {
    position: relative;
    padding: 8px 0 8px 28px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
}
.grsbat-page .entry-content li:last-child { border-bottom: none; }
.grsbat-page .entry-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 10px;
    height: 10px;
    background: var(--grsbat-red);
    border-radius: 2px;
}

.grsbat-page .entry-content strong { color: var(--grsbat-black); }

.grsbat-page .entry-content p {
    color: #444;
    line-height: 1.75;
}

.grsbat-page .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.92rem;
}
.grsbat-page .entry-content th {
    background: var(--grsbat-black);
    color: var(--grsbat-white);
    font-family: var(--grsbat-font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    text-align: left;
}
.grsbat-page .entry-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
}
.grsbat-page .entry-content tr:nth-child(even) td { background: #fafafa; }
.grsbat-page .entry-content tr:hover td { background: #f5f5f5; }

/* CTA final de página */
.grsbat-page-cta {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid #e5e5e5;
}
.grsbat-page-cta-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--grsbat-black);
    color: var(--grsbat-white);
    padding: 32px 36px;
    border-radius: 4px;
    border-left: 4px solid var(--grsbat-red);
}
.grsbat-page-cta-inner > .grsbat-icon {
    flex-shrink: 0;
    color: var(--grsbat-red);
}
.grsbat-page-cta-text { flex: 1; }
.grsbat-page-cta-text h3 {
    color: var(--grsbat-white);
    font-size: 1.1rem;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.grsbat-page-cta-text p { color: #bbb; margin: 0; font-size: 0.92rem; }

.grsbat-page-cta-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.grsbat-page-cta-tel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #aaa;
    font-family: var(--grsbat-font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}
.grsbat-page-cta-tel:hover { color: var(--grsbat-white); text-decoration: none; }
.grsbat-page-cta-tel .grsbat-icon { color: var(--grsbat-red); flex-shrink: 0; }

/* ───────────────────────────────────────────────────────────────
   ANIMACIONES — Scroll reveal + Hover mejorados
   ─────────────────────────────────────────────────────────────── */

/* Scroll reveal base */
.grsbat-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.grsbat-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero: fade-in más dramático */
.grsbat-hero-inner.grsbat-reveal {
    transform: translateY(48px) scale(0.97);
}
.grsbat-hero-inner.grsbat-reveal.is-visible {
    transform: translateY(0) scale(1);
}

/* Dual cards hover mejorado */
.grsbat-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease;
}
.grsbat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -16px rgba(0,0,0,0.4);
}
.grsbat-card--red:hover {
    box-shadow: 0 24px 48px -16px rgba(255,0,0,0.3);
}

/* Por qué GRS — hover con borde glow */
.grsbat-porque-card {
    transition: background 0.3s ease, box-shadow 0.4s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}
.grsbat-porque-card:hover {
    background: #1a1a1a;
    transform: translateY(-4px);
    box-shadow: 0 0 24px rgba(255,0,0,0.12), 0 16px 32px rgba(0,0,0,0.3);
    border-color: rgba(255,0,0,0.2);
}
.grsbat-porque-card-img img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.grsbat-porque-card:hover .grsbat-porque-card-img img {
    transform: scale(1.06);
    filter: brightness(1.1);
}
.grsbat-porque-card-footer a {
    transition: gap 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}
.grsbat-porque-card:hover .grsbat-porque-card-footer a {
    gap: 14px;
}

/* Productos Destacados — hover con glow rojo */
.grsbat-dest-card {
    transition: background 0.3s ease, box-shadow 0.4s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}
.grsbat-dest-card:hover {
    background: #1c1c1c;
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(255,0,0,0.1), 0 16px 32px rgba(0,0,0,0.3);
    border-color: rgba(255,0,0,0.15);
}
.grsbat-dest-card-img-wrap img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.grsbat-dest-card:hover .grsbat-dest-card-img-wrap img {
    transform: scale(1.06);
    filter: brightness(1.1);
}
.grsbat-dest-badge {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.grsbat-dest-card--featured:hover .grsbat-dest-badge {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(255,0,0,0.4);
}

/* Productos (3 tarjetas home) — hover mejorado */
.grsbat-product {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease;
}
.grsbat-product:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -14px rgba(0,0,0,0.25);
}
.grsbat-product img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.grsbat-product:hover img {
    transform: scale(1.05);
}

/* Servicios — hover con borde rojo */
.grsbat-service {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.3s ease;
    border: 2px solid transparent;
}
.grsbat-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -14px rgba(0,0,0,0.2);
    border-color: var(--grsbat-red);
}
.grsbat-service img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.grsbat-service:hover img {
    transform: scale(1.04);
}

/* Why list items — stagger y pulse */
.grsbat-why-list li {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                background 0.3s ease;
}
.grsbat-why-list li:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255,0,0,0.3);
    background: #e00;
}

/* Hub cards — hover mejorado */
.grsbat-hub-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.3s ease;
    border: 2px solid transparent;
}
.grsbat-hub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
    border-color: var(--grsbat-red);
}
.grsbat-hub-card-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s ease,
                box-shadow 0.3s ease;
}
.grsbat-hub-card:hover .grsbat-hub-card-icon {
    transform: scale(1.1) rotate(-4deg);
    background: rgba(255,0,0,0.15);
    box-shadow: 0 0 16px rgba(255,0,0,0.15);
}

/* CTA — pulse suave */
.grsbat-page-cta-inner {
    transition: box-shadow 0.4s ease, transform 0.35s ease;
}
.grsbat-page-cta-inner:hover {
    box-shadow: 0 0 32px rgba(255,0,0,0.15), 0 16px 36px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* Botones — efecto shine */
.grsbat-btn {
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.grsbat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,0,0,0.35);
}
.grsbat-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.grsbat-btn:hover::after {
    left: 120%;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .grsbat-reveal { opacity: 1; transform: none; transition: none; }
    .grsbat-card, .grsbat-porque-card, .grsbat-dest-card,
    .grsbat-product, .grsbat-service, .grsbat-hub-card,
    .grsbat-why-list li, .grsbat-btn { transition: none; }
    .grsbat-btn::after { display: none; }
}

/* ───────────────────────────────────────────────────────────────
   HUB DE CATEGORÍA — Páginas padre con grid de hijas
   ─────────────────────────────────────────────────────────────── */
.grsbat-page-hero--hub { padding-bottom: 56px; }
.grsbat-page-hero-intro { max-width: 780px; margin-top: 16px; }
.grsbat-page-hero-intro p { color: #bbb; font-size: 1.05rem; line-height: 1.7; margin: 0; }

.grsbat-hub { padding: 56px 0 72px; background: var(--grsbat-light); }

.grsbat-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.grsbat-hub-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.grsbat-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.grsbat-hub-card-link {
    display: flex;
    flex-direction: column;
    padding: 28px 28px 24px;
    color: var(--grsbat-dark);
    text-decoration: none;
    height: 100%;
}
.grsbat-hub-card-link:hover { text-decoration: none; }

.grsbat-hub-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: rgba(255,0,0,0.08);
    color: var(--grsbat-red);
    margin-bottom: 18px;
    flex-shrink: 0;
}

.grsbat-hub-card-title {
    font-family: var(--grsbat-font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--grsbat-black);
    margin: 0 0 10px;
    line-height: 1.3;
}

.grsbat-hub-card-excerpt {
    color: #666;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}

.grsbat-hub-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--grsbat-red);
    font-family: var(--grsbat-font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
    transition: gap 0.2s ease;
}
.grsbat-hub-card:hover .grsbat-hub-card-more { gap: 10px; }
.grsbat-hub-card-more .grsbat-icon { flex-shrink: 0; }

/* ───────────────────────────────────────────────────────────────
   RESPONSIVE — Mobile ≤ 960px
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {

    /* Topbar */
    .grsbat-topbar { display: none; }

    /* Header */
    .grsbat-header { height: auto; min-height: 60px; }
    .grsbat-header-inner { flex-wrap: wrap; padding: 12px 20px; gap: 0; }
    .grsbat-logo img { height: 38px; }
    .grsbat-toggle { display: flex; }

    /* Nav */
    .grsbat-nav {
        display: none; flex: none; width: 100%; order: 3; height: auto;
        background: #111; border-top: 1px solid #2a2a2a;
        padding: 8px 0 16px;
        max-height: calc(100vh - 64px); overflow-y: auto;
        justify-content: flex-start;
    }
    .grsbat-nav.is-open { display: block; }

    .grsbat-megamenu { flex-direction: column; align-items: stretch; gap: 0; height: auto; }
    .grsbat-mega-item { height: auto; border-bottom: 1px solid #1e1e1e; flex-direction: column; align-items: stretch; }
    .grsbat-mega-item > a {
        height: auto; padding: 14px 24px; justify-content: space-between;
        border: none; font-size: 0.9rem; color: #ccc;
    }
    .grsbat-mega-item > a:hover { background: #1a1a1a; color: #fff; }
    .grsbat-mega-item--home { border-bottom: 1px solid #333; }
    .grsbat-mega-item--cta { margin: 16px 24px 8px; border-bottom: none; }
    .grsbat-mega-item--cta > a { display: block; text-align: center; padding: 13px 24px; font-size: 0.88rem; }

    /* Panel mobile */
    .grsbat-mega-panel {
        position: static; opacity: 1; visibility: visible; transform: none;
        pointer-events: auto; display: none;
        box-shadow: none; border-top: none;
        background: #f5f5f5; transition: none;
    }
    .grsbat-mega-item.is-hover > .grsbat-mega-panel,
    .grsbat-mega-item:focus-within > .grsbat-mega-panel { display: none; }
    .grsbat-mega-item.is-open > .grsbat-mega-panel { display: block; }

    .grsbat-mega-panel .grsbat-container { grid-template-columns: 1fr; padding: 0; max-width: 100%; }
    .grsbat-mega-links { flex-direction: column; gap: 0; padding: 16px 20px; }
    .grsbat-mega-col { padding: 0 0 12px; }
    .grsbat-mega-col--related { border-left: none; padding: 12px 0 0; border-top: 1px solid #ddd; }
    .grsbat-mega-col h3 { color: #888; font-size: 0.68rem; margin-bottom: 10px; padding-bottom: 8px; border-bottom-color: #ddd; }
    .grsbat-mega-list { gap: 2px; }
    .grsbat-mega-list li a { color: #444; padding: 9px 8px; font-size: 0.88rem; white-space: normal; }
    .grsbat-mega-list li a:hover { background: #eee; color: var(--grsbat-red); }

    /* Imagen destacada en mobile */
    .grsbat-mega-featured { width: 100%; height: 180px; }
    .grsbat-mega-featured-overlay { padding: 20px; }
    .grsbat-mega-featured-overlay h4 { font-size: 1rem; }
    .grsbat-mega-featured-overlay p { display: none; }

    /* Home sections */
    .grsbat-dual-grid,
    .grsbat-about-grid,
    .grsbat-why-grid { grid-template-columns: 1fr; gap: 32px; }
    .grsbat-products-grid,
    .grsbat-services-grid { grid-template-columns: 1fr; }
    .grsbat-why-list { grid-template-columns: 1fr; }
    .grsbat-hero { padding: 80px 0 120px; }
    .grsbat-dual { margin-top: -50px; }
    .grsbat-contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .grsbat-form-grid { grid-template-columns: 1fr; }
    .grsbat-footer-grid { grid-template-columns: 1fr; gap: 28px; }

    /* Por qué GRS mobile */
    .grsbat-porque-grid { grid-template-columns: 1fr; gap: 2px; }

    /* Productos Destacados mobile */
    .grsbat-dest-grid { grid-template-columns: 1fr; gap: 2px; }
    .grsbat-dest-card--featured .grsbat-dest-card-img-wrap { min-height: 280px; }
    .grsbat-dest-card--side    .grsbat-dest-card-img-wrap { min-height: 200px; }

    /* Hub mobile */
    .grsbat-hub-grid { grid-template-columns: 1fr; }

    /* Páginas internas mobile */
    .grsbat-page-layout { grid-template-columns: 1fr; gap: 32px; }
    .grsbat-page-sidebar { position: static; order: 2; }
    .grsbat-page-content { order: 1; }
    .grsbat-page-hero { padding: 32px 0 36px; }
    .grsbat-page-hero-title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .grsbat-page-cta-inner { flex-direction: column; text-align: center; align-items: center; padding: 28px 24px; }
    .grsbat-page-cta-inner > .grsbat-icon { display: none; }
    .grsbat-page-cta-actions { align-items: center; }
    .grsbat-sidebar-cta { margin-top: 0; }
}
