/* Modelos: selector de año (2027 / 2026), destacados y gama 2027 */
.g-bar{position:sticky;top:var(--g-top,0px);z-index:400;background:var(--blanco);border-bottom:1px solid var(--gris-medio);}
.g-bar__inner{display:flex;align-items:center;gap:1.5rem;min-height:68px;}
.g-bar__years{display:flex;align-items:center;gap:.5rem;flex:none;padding-right:1.5rem;border-right:1px solid var(--gris-medio);}
.g-bar__label{color:var(--texto-medio);font-size:.9rem;margin-right:.25rem;}
.g-year{display:inline-flex;align-items:center;justify-content:center;min-width:68px;height:40px;border-radius:4px;background:var(--gris-claro);color:var(--negro);font-family:var(--font-head);font-weight:700;font-size:1rem;}
.g-year:hover{background:var(--gris-medio);color:var(--negro);}
.g-year--active,.g-year--active:hover{background:var(--negro);color:var(--blanco);}
.g-bar__families{display:flex;gap:1.5rem;overflow-x:auto;white-space:nowrap;scrollbar-width:none;min-width:0;}
.g-bar__families::-webkit-scrollbar{display:none;}
.g-bar__families a{color:var(--negro);font-size:.95rem;padding:.5rem 0;border-bottom:3px solid transparent;}
.g-bar__families a:hover{color:var(--negro);border-bottom-color:var(--naranja);}
.g-family,.g-anchor{scroll-margin-top:calc(var(--g-top,160px) + 72px);}

/* Hero 2027: misma caja que el de la 2026, con la foto del reflejo en el carenado */
.page-hero.g-hero27{background-image:url('../img/gama-2027/detalle-carenado.webp');background-position:50% 42%;background-attachment:scroll;}
@media (max-width:960px){.page-hero.g-hero27{background-image:url('../img/gama-2027/detalle-carenado-960.webp');}}

.g-family__head{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start;margin-bottom:2rem;}
.g-family__text{color:var(--texto-medio);line-height:1.7;margin-bottom:1rem;}
.g-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.5rem;}
.g-grid--one{grid-template-columns:minmax(0,420px);}
.g-card{display:block;height:100%;background:var(--blanco);border-radius:8px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.08);color:var(--negro);transition:transform .3s,box-shadow .3s;}
.g-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,.15);color:var(--negro);}
.g-card img{width:100%;height:auto;aspect-ratio:5/3;object-fit:cover;background:var(--gris-claro);}
.g-card__name{font-family:var(--font-head);font-size:1.05rem;font-weight:700;text-transform:uppercase;margin:0;padding:1rem 1.25rem .35rem;}
.g-card__name:last-child{padding-bottom:1.1rem;}
.g-card__price{display:block;padding:0 1.25rem 1.1rem;color:var(--naranja-dark);font-weight:700;}
.g-blog{margin-top:1.5rem;display:flex;flex-direction:column;gap:.4rem;}
.g-blog a{font-size:var(--fs-xs);color:var(--naranja);}

.g-feature{display:grid;grid-template-columns:1fr 1fr;align-items:center;background:var(--negro);color:var(--blanco);}
.g-feature__text{padding:3rem clamp(1.5rem,5vw,5rem);}
.g-feature__text .sec-title{color:var(--blanco);}
.g-feature__text p{line-height:1.7;margin:1rem 0 1.5rem;max-width:480px;}
.g-feature__img{width:100%;height:auto;aspect-ratio:16/10;max-height:620px;object-fit:cover;}

.g-summary{max-width:860px;text-align:center;}
.g-summary p{color:var(--texto-medio);line-height:1.8;margin-top:.75rem;}
.g-faq{max-width:860px;}
.g-faq .sec-title{text-align:center;margin-bottom:1.5rem;}
.g-faq__item{background:var(--blanco);border-radius:6px;margin-bottom:.75rem;box-shadow:0 2px 8px rgba(0,0,0,.06);}
.g-faq__item summary{cursor:pointer;padding:1rem 1.25rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;list-style:none;}
.g-faq__item summary::-webkit-details-marker{display:none;}
.g-faq__item summary::after{content:'+';color:var(--naranja);font-size:1.4rem;line-height:1;}
.g-faq__item[open] summary::after{content:'−';}
.g-faq__item h3{font-size:1rem;margin:0;font-family:var(--font-body);font-weight:700;color:var(--negro);}
.g-faq__item p{padding:0 1.25rem 1.1rem;color:var(--texto-medio);line-height:1.7;margin:0;}
.g-faq__item a{color:var(--naranja-dark);text-decoration:underline;}

@media (max-width:900px){
  .g-family__head,.g-feature{grid-template-columns:1fr;gap:.75rem;}
  .g-feature{gap:0;}
  .g-feature__img{order:-1;aspect-ratio:16/9;}
}
@media (max-width:640px){
  /* Barra compacta en una sola fila: años fijos y familias desplazables */
  .g-bar__inner{gap:.6rem;min-height:56px;}
  .g-bar__label{display:none;}
  .g-bar__years{gap:.3rem;padding-right:.6rem;}
  .g-year{min-width:52px;height:40px;font-size:.9rem;}
  .g-bar__families{gap:1.1rem;padding-right:1.5rem;-webkit-mask-image:linear-gradient(to right,#000 82%,transparent);mask-image:linear-gradient(to right,#000 82%,transparent);}
  .g-bar__families a{display:inline-flex;align-items:center;min-height:44px;font-size:.9rem;}
  .g-family,.g-anchor{scroll-margin-top:calc(var(--g-top,100px) + 64px);}
  /* En móvil la foto va arriba, entera de alto, y el texto debajo sobre fondo oscuro */
  .page-hero.g-hero27{background-size:auto 300px;background-position:68% 0;background-repeat:no-repeat;background-color:#0c0f13;padding-top:240px;padding-bottom:2rem;}
  .page-hero.g-hero27::before{background:linear-gradient(to bottom,rgba(0,0,0,0) 0,rgba(12,15,19,.15) 170px,rgba(12,15,19,.88) 260px,#0c0f13 300px);}
  .g-hero27 .breadcrumb{display:none;}
  .page-hero.g-hero27{min-height:0;height:auto;}
  .g-hero27 .page-hero__content,.g-hero27 .page-hero__text{margin-bottom:0;padding-bottom:0;}
  .g-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;}
  .g-grid--one{grid-template-columns:minmax(0,1fr);}
  .g-card__name{font-size:.85rem;line-height:1.3;padding:.6rem .7rem .2rem;overflow-wrap:break-word;}
  .g-card__name:last-child{padding-bottom:.75rem;}
  .g-card__price{padding:0 .7rem .75rem;font-size:.85rem;}
  .g-family__head .btn,.g-feature__text .btn{max-width:100%;white-space:normal;text-align:center;min-height:44px;}
  .g-blog a{display:block;padding:.45rem 0;}
  .g-faq__item summary{padding:.9rem 1rem;}
}
@media (prefers-reduced-motion:reduce){
  .g-card{transition:none;}
}
