/* Ajustes de la portada para celulares y tabletas.
   Cargado al final: conserva intacta la composición de escritorio. */
body.gcb-home-new,
body.gcb-home-new main,
body.gcb-home-new main section,
body.gcb-home-new footer {min-width:0}
body.gcb-home-new .shell {max-width:1230px}
body.gcb-home-new .hero-copy,
body.gcb-home-new .about-layout > *,
body.gcb-home-new .newsroom-feature > * {min-width:0}
body.gcb-home-new .hero-copy h1,
body.gcb-home-new .section h2,
body.gcb-home-new .news-copy h3 {overflow-wrap:break-word}
body.gcb-home-new .nav-mobile nav[aria-label="Navegación móvil"] a:focus-visible {
  outline:2px solid #957143;outline-offset:-2px
}

@media (max-width:1100px) {
  body.gcb-home-new .masthead {
    height:88px;justify-content:flex-start;
    padding-inline:clamp(16px,3vw,32px);
  }
  body.gcb-home-new .brand {
    height:88px;width:clamp(108px,18vw,145px);flex:0 0 auto;min-width:0;
  }
  /* Anula la regla final de escritorio que agrandaba el logo en móvil. */
  body.gcb-home-new .masthead .brand img {
    display:block;width:100%;max-width:145px;max-height:76px;
    height:auto;object-fit:contain;
  }
  body.gcb-home-new .language {
    top:28px;right:clamp(106px,13.5vw,143px);
    padding:6px 9px;
  }
  body.gcb-home-new .main-nav {
    position:relative;height:0;min-height:0;
    border:0;box-shadow:none;z-index:40;
  }
  body.gcb-home-new .nav-inner {display:none}
  body.gcb-home-new .nav-mobile {
    display:block;position:absolute;z-index:41;
    right:clamp(16px,3vw,32px);top:-69px;
  }
  body.gcb-home-new .nav-mobile summary {
    display:flex;align-items:center;justify-content:center;
    min-width:77px;min-height:46px;
    padding:10px 12px;border:1px solid #ded9d1;
    background:#fff;color:#353330;cursor:pointer;
    font:600 13px/1.3 var(--sans);
    list-style:none;border-radius:0;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
  body.gcb-home-new .nav-mobile summary::-webkit-details-marker {display:none}
  body.gcb-home-new .nav-mobile summary::marker {content:""}
  body.gcb-home-new .nav-mobile[open] summary {
    color:#7b5a32;border-color:#b99a72;
  }
  body.gcb-home-new .nav-mobile nav {
    position:absolute;top:calc(100% + 8px);right:0;
    display:flex;flex-direction:column;
    width:min(calc(100vw - 32px),330px);
    max-height:min(70vh,580px);max-height:min(70dvh,580px);
    overflow-y:auto;overscroll-behavior:contain;
    padding:8px 16px;background:#fff;
    border:1px solid #ddd7ce;
    box-shadow:0 18px 42px rgb(25 22 18 / 17%);
    -webkit-overflow-scrolling:touch;
  }
  body.gcb-home-new .nav-mobile nav a {
    display:flex;align-items:center;min-height:45px;
    padding:11px 3px;border-bottom:1px solid #eee9e2;
    font-size:13px;line-height:1.5;
    text-decoration:none;touch-action:manipulation;
  }
  body.gcb-home-new .nav-mobile nav a:last-child {border-bottom:0}
  body.gcb-home-new .shell {width:calc(100% - 48px)}
  body.gcb-home-new .hero {
    grid-template-columns:minmax(0,1fr);min-height:0;
  }
  body.gcb-home-new .hero-copy {
    padding:clamp(43px,5.8vw,70px) 24px 39px;
  }
  body.gcb-home-new .hero-copy h1 {
    max-width:800px;font-size:clamp(38px,5.4vw,56px);
    line-height:1.19;
  }
  body.gcb-home-new .hero-copy p.body {max-width:68ch;font-size:15px}
  body.gcb-home-new .hero-photo {
    height:clamp(250px,34vw,390px);min-height:0;
  }
  body.gcb-home-new .metrics-wrap {
    height:auto;padding:19px 24px;background:#f7f7f7;
  }
  body.gcb-home-new .metrics {
    position:static;top:auto;max-width:760px;
    grid-template-columns:repeat(3,minmax(0,1fr));
    padding:19px 6px;box-shadow:0 4px 16px rgb(0 0 0 / 7%);
  }
  body.gcb-home-new .metric {min-width:0;padding-inline:8px}
  body.gcb-home-new .metric strong {font-size:clamp(25px,3.2vw,34px)}
  body.gcb-home-new .metric span {line-height:1.45;overflow-wrap:break-word}
  body.gcb-home-new .section {padding-block:clamp(48px,6vw,68px)}
  body.gcb-home-new .about-layout {
    display:grid;grid-template-columns:minmax(0,1fr);
    gap:28px;margin-top:0;padding-inline:0;
  }
  body.gcb-home-new .about-image {
    width:100%;max-height:430px;
  }
  body.gcb-home-new .about-text {max-width:680px}
  body.gcb-home-new #sellos .gcb-sellos__layout {
    grid-template-columns:minmax(0,1fr);gap:23px;
  }
  body.gcb-home-new #sellos .gcb-sellos__intro h2 {max-width:none}
  body.gcb-home-new #sellos .gcb-sellos__intro p {max-width:65ch}
  body.gcb-home-new .news-card,
  body.gcb-home-new .newsroom-feature {
    display:grid;grid-template-columns:minmax(0,1fr);
  }
  body.gcb-home-new .news-image {
    height:auto;max-height:400px;min-height:245px;
    aspect-ratio:16/9;
  }
  body.gcb-home-new .news-copy {padding:29px 27px}
  body.gcb-home-new #confianza .trust-editorial__header {
    align-items:start;gap:12px;
  }
  body.gcb-home-new #publicaciones .books {
    grid-template-columns:none;grid-auto-flow:column;
    grid-auto-columns:clamp(150px,26vw,198px);
    gap:clamp(15px,2.7vw,24px);
    overflow-x:auto;overflow-y:hidden;
    scroll-snap-type:x proximity;scroll-padding-inline:5px;
    overscroll-behavior-inline:contain;
    padding:6px 4px 22px;
    -webkit-overflow-scrolling:touch;
  }
  body.gcb-home-new #publicaciones .book-item {scroll-snap-align:start}
  body.gcb-home-new #publicaciones .book-cover {width:min(100%,150px)}
  body.gcb-home-new #colabora .collaborate-refined__grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.gcb-home-new #colabora .collaborate-refined__card:last-child {
    grid-column:1/-1;min-height:0;
  }
  body.gcb-home-new #contacto .gcb-footer__main {
    grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px;
  }
  body.gcb-home-new #contacto .gcb-footer__brand {grid-column:1/-1}
  body.gcb-home-new #contacto .gcb-footer__brand-line {margin:16px 0}
}
@media (max-width:960px) {
  body.gcb-home-new #publicar .publishing-flow__layout {
    grid-template-columns:minmax(0,1fr);gap:34px;
  }
  body.gcb-home-new #publicar .publishing-flow__intro h2 {max-width:unset}
}
@media (max-width:900px) and (min-width:561px) {
  body.gcb-home-new #diferenciacion .gcb-difference__grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.gcb-home-new #diferenciacion .gcb-difference__point,
  body.gcb-home-new #diferenciacion .gcb-difference__point:nth-child(-n+2) {
    grid-column:span 1;min-height:0;
  }
  body.gcb-home-new #diferenciacion .gcb-difference__point:last-child {
    grid-column:1/-1;
  }
}
@media (max-width:850px) {
  body.gcb-home-new #confianza .trust-editorial__header {
    display:flex;flex-direction:column;align-items:flex-start;
  }
  body.gcb-home-new #confianza .trust-editorial__header p {max-width:65ch}
}
@media (max-width:700px) {
  body.gcb-home-new #colabora .collaborate-refined__grid {
    grid-template-columns:minmax(0,1fr);
  }
  body.gcb-home-new #colabora .collaborate-refined__card:last-child {
    grid-column:auto;
  }
}
@media (max-width:650px) {
  body.gcb-home-new #contacto .gcb-footer__main {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.gcb-home-new #contacto .gcb-footer__brand {grid-column:1/-1}
  body.gcb-home-new .news-copy {padding:24px 19px}
  body.gcb-home-new .news-image {
    min-height:200px;max-height:290px;aspect-ratio:16/10;
  }
}
@media (max-width:540px) {
  body.gcb-home-new .shell {width:calc(100% - 36px)}
  body.gcb-home-new .masthead {height:80px;padding-inline:18px}
  body.gcb-home-new .brand {height:80px;width:112px}
  body.gcb-home-new .masthead .brand img {
    width:112px;max-height:70px;
  }
  body.gcb-home-new .language {top:25px;right:107px}
  body.gcb-home-new .nav-mobile {top:-65px;right:18px}
  body.gcb-home-new .hero-copy {padding:37px 18px 34px}
  body.gcb-home-new .hero-copy h1 {
    font-size:clamp(33px,9vw,43px);margin:12px 0 17px;
  }
  body.gcb-home-new .hero-copy p.body {
    font-size:14px;line-height:1.75;margin-bottom:23px;
  }
  body.gcb-home-new .hero-ctas {
    display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%;
  }
  body.gcb-home-new .hero-ctas .btn {
    display:flex;width:100%;min-height:47px;text-align:center;
  }
  body.gcb-home-new .hero-photo {height:clamp(224px,65vw,320px)}
  body.gcb-home-new .metrics-wrap {padding:15px 18px}
  body.gcb-home-new .metrics {padding:16px 3px}
  body.gcb-home-new .metric {padding-inline:5px}
  body.gcb-home-new .metric strong {font-size:clamp(21px,6.5vw,27px)}
  body.gcb-home-new .metric span {font-size:9px;letter-spacing:0}
  body.gcb-home-new .section {padding-block:48px}
  body.gcb-home-new #publicaciones .books {
    grid-auto-columns:clamp(142px,46vw,177px);gap:16px;
  }
  body.gcb-home-new #publicaciones .section-intro .text-link {
    white-space:normal;
  }
  body.gcb-home-new #contacto .gcb-footer__legal {
    grid-template-columns:minmax(0,1fr);
  }
}
@media (max-width:360px) {
  body.gcb-home-new .language {right:104px}
  body.gcb-home-new #contacto .gcb-footer__main {
    grid-template-columns:minmax(0,1fr);
  }
  body.gcb-home-new #contacto .gcb-footer__brand {grid-column:auto}
}
/* En iPad y pantallas táctiles, la cinta se desliza con el dedo
   y no se mueve mientras se intenta abrir un enlace. */
@media (hover:none) and (pointer:coarse) {
  body.gcb-home-new #confianza[data-ready="true"] .trust-editorial__viewport {
    overflow-x:auto;scrollbar-width:thin;
    -webkit-mask-image:none;mask-image:none;
    -webkit-overflow-scrolling:touch;
  }
  body.gcb-home-new #confianza[data-ready="true"] .trust-editorial__rail {
    animation:none;transform:none;will-change:auto;
  }
  body.gcb-home-new #confianza .trust-editorial__group--duplicate {
    display:none;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.gcb-home-new .nav-mobile summary,
  body.gcb-home-new .nav-mobile nav {transition:none}
}

/* Iconos vectoriales, sin dependencias de emojis o fuentes del dispositivo. */
body.gcb-home-new .gcb-ui-icon {
  display:inline-block;flex:0 0 auto;width:1.05em;height:1.05em;
  vertical-align:-.14em;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
body.gcb-home-new .gcb-ui-icon--star {width:1.25em;height:1.25em}
body.gcb-home-new .nav-mobile summary {gap:8px}
body.gcb-home-new .nav-mobile summary .gcb-ui-icon--menu {width:18px;height:18px}
body.gcb-home-new .gcb-carousel-controls {display:none}
@media (max-width:1100px) {
  body.gcb-home-new .gcb-carousel-controls {
    display:flex;justify-content:flex-end;align-items:center;gap:9px;
    margin-bottom:12px;
  }
  body.gcb-home-new .gcb-carousel-button {
    display:inline-flex;align-items:center;justify-content:center;
    width:42px;height:42px;min-width:42px;
    padding:0;color:#6e5639;background:#fff;
    border:1px solid #dcd1c1;border-radius:0;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }
  body.gcb-home-new .gcb-carousel-button .gcb-ui-icon {width:18px;height:18px}
  body.gcb-home-new .gcb-carousel-button:focus-visible {
    outline:2px solid #a17a4d;outline-offset:3px;
  }
  body.gcb-home-new .gcb-carousel-button:disabled {
    opacity:.38;cursor:default;
  }
  body.gcb-home-new #confianza .gcb-carousel-controls {margin-top:-10px;margin-bottom:10px}
  body.gcb-home-new #publicaciones .gcb-carousel-controls {margin-top:-8px;margin-bottom:12px}
  body.gcb-home-new #publicaciones .books {
    touch-action:pan-x pan-y;
    -webkit-overflow-scrolling:touch;
  }
}
/* En Safari táctil el carrusel debe desplazarse con scrollLeft nativo.
   Se conserva la lista duplicada para permitir la continuidad automática. */
@media (hover:none) and (pointer:coarse) {
  body.gcb-home-new #confianza[data-ready="true"] .trust-editorial__viewport {
    overflow-x:auto;overflow-y:hidden;
    -webkit-mask-image:none;mask-image:none;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-x pan-y;
  }
  body.gcb-home-new #confianza[data-ready="true"] .trust-editorial__rail {
    animation:none;transform:none;will-change:auto;
  }
  body.gcb-home-new #confianza .trust-editorial__group--duplicate {
    display:flex;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.gcb-home-new .gcb-carousel-button {transition:none!important}
}
