:root{
  --gb-blue: #0b2a5f;

  --gb-green:  #7cc242;
  --gb-gray:   #9ea3a8;
  --gb-yellow: #f2c300;

  --gb-bg: #f4f6fa;
  --gb-ink: #0c1222;

  --gb-header-h: 95px;
  --gb-footer-h: 56px;

  /* Ajuste fino: espacio entre línea del header y tarjetas */
  --gb-gap-after-header: 18px;
}

/* ===============================
   INDEX
================================= */
.gb-index{
  margin: 0;
  height: 100vh;
  overflow: hidden; /* desktop sin scroll */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--gb-ink);
  background: linear-gradient(180deg, #f9fbff, var(--gb-bg));
  position: relative;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===============================
   FONDO INSTITUCIONAL (ESTÁTICO)
================================= */
.gb-index::before{
  content:"GRUPO BAENA";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:0;
  pointer-events:none;

  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;

  font-size: clamp(72px, 10vw, 180px);
  color: rgba(11,42,95,0.085);
}

.gb-index::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(1100px 650px at 20% 18%, rgba(11,42,95,.10), transparent 62%),
    radial-gradient(900px 620px at 85% 24%, rgba(11,42,95,.06), transparent 64%),
    radial-gradient(900px 620px at 70% 86%, rgba(0,0,0,.04), transparent 66%);
}

/* ===============================
   HEADER
================================= */
.gb-header{
  position: relative;
  z-index: 3;
  height: var(--gb-header-h);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
}

.gb-headerInner{
  width: min(1500px, calc(100% - 40px));
  display: flex;
  justify-content: center;
  position: relative;
}

/* CENTRADO REAL (móvil incluido) */
.gb-headerTitle{
  width: 100%;
  text-align: center;
  font-weight: 1000;
  letter-spacing: .14em;
  font-size: clamp(44px, 4.8vw, 76px);
  color: rgba(11,42,95,.96);
  text-transform: uppercase;
  line-height: 1;
}

/* Línea institucional */
.gb-headerInner::after{
  content:"";
  position:absolute;
  bottom:-6px;
  left:50%;
  transform:translateX(-50%);
  width: min(700px, 70%);
  height:1px;
  background: linear-gradient(
    to right,
    rgba(11,42,95,0),
    rgba(11,42,95,.45),
    rgba(11,42,95,0)
  );
}

/* ===============================
   MAIN (DESKTOP sin scroll)
   -> Aquí metemos el aire bajo el header
================================= */
.gb-main{
  position: relative;
  z-index: 3;
  height: calc(100vh - var(--gb-header-h) - var(--gb-footer-h));
  display: flex;
  align-items: center;
  justify-content: center;

  /* ✅ MÁS ESPACIO ENTRE LINEA Y TARJETAS */
  padding: var(--gb-gap-after-header) 22px 96px;

  box-sizing: border-box;
}

.gb-layout{
  width: min(1500px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* ===============================
   TARJETAS
================================= */
.gb-card{
  position: relative;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  overflow: hidden;

  border: 2px solid rgba(11,42,95,.18);

  box-shadow:
    0 28px 78px rgba(0,0,0,.12),
    0 2px 0 rgba(255,255,255,.60) inset,
    0 -8px 0 0 var(--accent, rgba(11,42,95,.14)) inset;

  /* 🔧 Un pelín menos alto para que respire con el nuevo gap */
  height: min(68vh, 650px);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gb-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(650px 420px at 50% 42%, rgba(11,42,95,.06), transparent 62%);
}

.gb-card::after{
  content:"";
  position:absolute;
  inset: 14px;
  border-radius: 12px;
  border: 2px solid rgba(0,0,0,.055);
  pointer-events:none;
  z-index:1;
}

.gb-cardLogo{
  position: relative;
  z-index: 2;
  width: min(98%, 820px);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.12));
  transition: transform .20s ease, filter .20s ease;
}

.gb-card:hover{
  transform: translateY(-6px);
  box-shadow:
    0 30px 80px rgba(0,0,0,.18),
    0 0 46px var(--glow, rgba(0,0,0,.10)),
    0 2px 0 rgba(255,255,255,.65) inset,
    0 -8px 0 0 var(--accent, rgba(11,42,95,.14)) inset;
}

.gb-card:hover .gb-cardLogo{
  transform: scale(1.02);
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.16));
}

/* Colores */
.gb-card--green{
  --glow: rgba(124,194,66,.55);
  --accent: rgba(124,194,66,.85);
  border-color: rgba(124,194,66,.50);
}
.gb-card--green::before{
  background: radial-gradient(650px 420px at 50% 42%, rgba(124,194,66,.10), transparent 62%);
}

.gb-card--gray{
  --glow: rgba(158,163,168,.45);
  --accent: rgba(158,163,168,.85);
  border-color: rgba(158,163,168,.58);
}
.gb-card--gray::before{
  background: radial-gradient(650px 420px at 50% 42%, rgba(158,163,168,.11), transparent 62%);
}

.gb-card--yellow{
  --glow: rgba(242,195,0,.50);
  --accent: rgba(242,195,0,.85);
  border-color: rgba(242,195,0,.48);
}
.gb-card--yellow::before{
  background: radial-gradient(650px 420px at 50% 42%, rgba(242,195,0,.07), transparent 62%);
}

/* ===============================
   FOOTER
================================= */
.gb-footer{
  position: relative;
  z-index: 3;
  height: var(--gb-footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gb-footerInner{
  width: min(1500px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  justify-items: center;
}

.gb-footerLine{
  width: min(1200px, 92%);
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(11,42,95,0),
    rgba(11,42,95,.35),
    rgba(11,42,95,0)
  );
}

.gb-footerMeta{
  font-size: 12px;
  color: rgba(12,18,34,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ===============================
   COOKIES (CSS completo)
================================= */
.gb-cookie{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;
}
.gb-cookie.is-hidden{ display: none; }

.gb-cookieBox{
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 12px;
  border-radius: 16px;

  background: rgba(255,255,255,.95);
  border: 1px solid rgba(11,42,95,.18);
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}

.gb-cookieText{
  font-size: 13.5px;
  color: rgba(12,18,34,.75);
}

.gb-cookieLink{
  margin-left: 8px;
  color: rgba(11,42,95,.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gb-cookieBtns{
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.gb-btn{
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.04);
  cursor: pointer;
  font-weight: 800;
}

.gb-btn--primary{
  background: rgba(11,42,95,.95);
  border-color: rgba(11,42,95,.95);
  color: #fff;
}

@media (max-width: 620px){
  .gb-cookieBox{ flex-direction: column; align-items: stretch; }
  .gb-cookieBtns{ justify-content: flex-end; }
}

/* ===============================
   RESPONSIVE (MÓVIL: SCROLL VERTICAL)
   - tarjetas en columna
   - body con scroll vertical
================================= */
@media (max-width: 980px){
  :root{
    --gb-header-h: 88px;
    --gb-footer-h: 56px;
    --gb-gap-after-header: 14px;
  }

  /* ✅ En móvil sí permitimos scroll vertical */
  .gb-index{
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* watermark menos intrusivo en móvil */
  .gb-index::before{
    font-size: clamp(52px, 10vw, 110px);
    letter-spacing: .14em;
    color: rgba(11,42,95,0.075);
  }

  /* Main ya no va con altura fija: deja que crezca */
  .gb-main{
    height: auto;
    align-items: flex-start;
    padding: var(--gb-gap-after-header) 14px 120px; /* 120 por cookies */
  }

  /* ✅ Tarjetas en vertical */
  .gb-layout{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gb-card{
    height: auto;
    min-height: 360px;
    padding: 14px;
  }

  .gb-cardLogo{
    width: min(92%, 520px);
  }
}
/* cookies.css (solo para cookies.html) */

:root{
  --gb-blue: #0b2a5f;
  --gb-bg: #f4f6fa;
  --gb-ink: #0c1222;
}

.gbc{
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f9fbff, var(--gb-bg));
  color: var(--gb-ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fondo watermark institucional suave */
.gbc::before{
  content:"GRUPO BAENA";
  position: fixed;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;

  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(56px, 9vw, 140px);
  color: rgba(11,42,95,0.07);
}

.gbc-header{
  position: relative;
  z-index: 1;
  padding: 18px 22px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.gbc-back{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;

  color: rgba(11,42,95,.96);
  border: 1px solid rgba(11,42,95,.18);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 35px rgba(0,0,0,.10);
}

.gbc-back:hover{
  border-color: rgba(11,42,95,.28);
  box-shadow: 0 16px 45px rgba(0,0,0,.12);
}

.gbc-backIcon{
  font-weight: 900;
  font-size: 16px;
}

.gbc-backText{
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}

/* Título centrado real */
.gbc-titleWrap{
  justify-self: center;
  text-align: center;
}

.gbc-title{
  font-weight: 1000;
  letter-spacing: .14em;
  font-size: clamp(34px, 4.8vw, 64px);
  color: rgba(11,42,95,.96);
  text-transform: uppercase;
  line-height: 1;
}

.gbc-titleLine{
  margin: 10px auto 0;
  width: min(780px, 86vw);
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(11,42,95,0),
    rgba(11,42,95,.45),
    rgba(11,42,95,0)
  );
}

/* MAIN */
.gbc-main{
  position: relative;
  z-index: 1;
  padding: 22px 22px 24px;
  display: flex;
  justify-content: center;
}

.gbc-card{
  width: min(1000px, 100%);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(11,42,95,.14);
  border-radius: 18px;
  box-shadow: 0 28px 78px rgba(0,0,0,.10);
  padding: 22px 22px;
}

.gbc-h1{
  margin: 0 0 12px;
  font-size: clamp(22px, 3.4vw, 32px);
  letter-spacing: .02em;
}

.gbc-p{
  margin: 10px 0;
  line-height: 1.55;
  font-size: 15px;
  color: rgba(12,18,34,.78);
}

/* FOOTER */
.gbc-footer{
  position: relative;
  z-index: 1;
  padding: 14px 22px 22px;
  text-align: center;
}

.gbc-footerLine{
  width: min(1200px, 92vw);
  height: 1px;
  margin: 0 auto 10px;
  background: linear-gradient(
    to right,
    rgba(11,42,95,0),
    rgba(11,42,95,.30),
    rgba(11,42,95,0)
  );
}

.gbc-footerMeta{
  font-size: 12px;
  color: rgba(12,18,34,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Responsive: header en móvil (evitar que “Volver” empuje el título) */
@media (max-width: 680px){
  .gbc-header{
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .gbc-back{
    justify-self: start;
    width: 100%;
    max-width: 320px;
  }

  .gbc-titleWrap{
    width: 100%;
  }

  .gbc-card{
    padding: 18px 16px;
    border-radius: 16px;
  }
}