/* Gaby Rouge theme styles. Colors and fonts live in theme.json. */
:root{--gr-mute:rgba(18,18,18,.58);--gr-line:rgba(18,18,18,.12)}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{-webkit-font-smoothing:antialiased;overflow-x:clip}
.gr-main{margin-top:0}
.gr-main>*,.gr-band>*,.gr-hero>*{margin-block-start:0}

/* cabecera */
.gr-header{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--wp--preset--color--paper) 88%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--gr-line)}
.admin-bar .gr-header{top:32px}
@media (max-width:782px){.admin-bar .gr-header{top:46px}}
.gr-header-in{min-height:64px;align-items:center}
.gr-logo{font-family:var(--wp--preset--font-family--display);font-weight:500;font-size:19px;letter-spacing:-.01em;margin:0}
.gr-logo a{text-decoration:none}
.gr-logo a::after{content:".";color:var(--wp--preset--color--rouge)}
.gr-nav{font-size:15px;font-weight:500;gap:clamp(12px,2.4vw,32px)}
.gr-nav a{text-decoration:none}

/* etiquetas y títulos */
.gr-lbl{font-size:13px;color:var(--gr-mute);margin:0 0 18px}
.gr-lbl strong{font-weight:500;color:var(--wp--preset--color--ink)}
.gr-name{font-size:var(--wp--preset--font-size--huge)!important;margin:0 0 clamp(28px,4vw,48px)!important;text-wrap:balance}
.gr-h2{font-size:var(--wp--preset--font-size--x-large);margin:0 0 clamp(28px,4vw,48px)!important;text-wrap:balance}
.gr-h3{font-size:20px;line-height:1.25;margin:0!important}
.gr-big{font-size:var(--wp--preset--font-size--xx-large);margin:0 0 clamp(28px,4vw,48px)!important;text-wrap:balance}

/* fotos */
.gr-ph{margin:0!important;aspect-ratio:4/5;overflow:hidden;border-radius:4px;background:var(--wp--preset--color--sand)}
.gr-ph img{width:100%;height:100%!important;object-fit:cover;display:block;transition:transform .6s ease}
.gr-ph:hover img{transform:scale(1.03)}

/* portada */
.gr-hero{padding-top:clamp(40px,7vw,96px);padding-bottom:clamp(48px,7vw,96px)}
.gr-hero-g{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(0,1fr);gap:clamp(16px,2vw,28px);align-items:start}
.gr-hero-g>*{margin:0!important}
.gr-intro{font-size:20px;line-height:1.5;margin:0 0 28px!important;max-width:30ch}
.gr-low{margin-top:clamp(40px,8vw,120px)!important}
.gr-acts{gap:10px}
.wp-block-button.is-style-outline>.wp-block-button__link{background:transparent;color:var(--wp--preset--color--ink);border:1px solid currentColor}
.wp-block-button.is-style-outline>.wp-block-button__link:hover{color:var(--wp--preset--color--rouge);background:transparent}

/* secciones */
.gr-band{padding-top:clamp(56px,8vw,112px);padding-bottom:clamp(56px,8vw,112px);border-top:1px solid var(--gr-line)}
.gr-work{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
.gr-item{display:flex;flex-direction:column;gap:6px;margin:0!important}
.gr-item>.gr-ph{margin-bottom:8px!important}
.gr-item:nth-child(3n+2){margin-top:clamp(0px,4vw,56px)!important}
.gr-cat{margin:0!important;font-size:14px;color:var(--gr-mute)}
.gr-note{font-size:13px;color:var(--gr-mute);margin-top:24px!important}

.gr-about{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,5vw,80px)}
.gr-about>*{margin:0!important}
.gr-txt p:not([class]){font-size:18px;max-width:60ch;margin:0 0 16px}
.gr-about .gr-ph{align-self:start}
.gr-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 24px;margin-top:36px!important;padding-top:28px;border-top:1px solid var(--gr-line)}
.gr-facts>*,.gr-fact>*{margin:0!important}
.gr-dt{font-size:13px;color:var(--gr-mute);margin-bottom:6px!important}
.gr-dd{font-weight:500;font-size:15px}

.gr-svcs{border-top:1px solid var(--gr-line)}
.gr-svc{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:24px;padding:28px 0;border-bottom:1px solid var(--gr-line);margin:0!important}
.gr-svc>*{margin:0!important}
.gr-svc .gr-h3{font-size:26px;line-height:1.15}
.gr-svc p{color:var(--gr-mute);font-size:17px;max-width:56ch}

/* contacto */
.gr-contact{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--paper);border:0}
.gr-contact .gr-lbl,.gr-contact .gr-dt{color:rgba(245,243,239,.6)}
.gr-mail{margin:0!important}
.gr-mail a{font-family:var(--wp--preset--font-family--display);font-weight:500;font-size:clamp(22px,3.4vw,40px);line-height:1.1;text-decoration:none;border-bottom:1px solid currentColor;overflow-wrap:anywhere}
.gr-cg{grid-template-columns:repeat(3,minmax(0,1fr));border-top-color:rgba(245,243,239,.2);margin-top:clamp(40px,5vw,64px)!important}
.gr-contact .gr-acts{margin-top:36px!important}
.gr-contact .wp-block-button.is-style-fill>.wp-block-button__link{background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink);border-color:var(--wp--preset--color--paper)}
.gr-contact .wp-block-button.is-style-fill>.wp-block-button__link:hover{background:var(--wp--preset--color--rouge);border-color:var(--wp--preset--color--rouge);color:#fff}
.gr-contact .wp-block-button.is-style-outline>.wp-block-button__link{color:var(--wp--preset--color--paper)}

/* pie */
.gr-footer{padding-top:28px;padding-bottom:28px;font-size:13px;color:var(--gr-mute)}
.gr-footer p{margin:0}
.gr-footer a{text-decoration:none;margin-left:20px}
.gr-footer a:first-child{margin-left:0}

/* páginas internas */
.gr-page{padding-top:clamp(40px,6vw,80px);padding-bottom:clamp(56px,8vw,112px)}

/* animación suave al aparecer */
.gr-js .gr-item,.gr-js .gr-about .gr-ph{opacity:0;transform:translateY(18px);transition:opacity .8s ease,transform .8s ease}
.gr-js .is-in{opacity:1!important;transform:none!important}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.gr-js .gr-item,.gr-js .gr-about .gr-ph{opacity:1;transform:none;transition:none}.gr-ph img{transition:none}}

:where(a,button,.wp-block-button__link):focus-visible{outline:2px solid var(--wp--preset--color--rouge);outline-offset:3px}

@media (max-width:900px){
  .gr-hero-g{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .gr-copy{grid-column:1/-1}
  .gr-work{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gr-item:nth-child(3n+2){margin-top:0!important}
  .gr-item:nth-child(2n){margin-top:40px!important}
  .gr-about{grid-template-columns:minmax(0,1fr)}
  .gr-about .gr-ph{max-width:420px}
}
@media (max-width:600px){
  .gr-low{margin-top:32px!important}
  .gr-svc{grid-template-columns:minmax(0,1fr);gap:8px}
  .gr-facts,.gr-cg{grid-template-columns:minmax(0,1fr)}
  .gr-work{gap:16px 12px}
  .gr-item .gr-h3{font-size:16px}
}
