/*
Theme Name: MR Graphics
Description: Portada, cat?logo y cotizador de demostraci?n de MR Graphics.
Version: 1.0.31
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: mr-graphics
*/
:root {
  color-scheme: dark;
  --ink: #151418;
  --paper: #faf9f7;
  --magenta: #ff369d;
  --cyan: #44e5f3;
  --yellow: #ffdf52;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--paper);
  background: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
main:focus { outline: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 4px;
}
.skip { position: fixed; z-index: 10; top: 0; left: 1rem; transform: translateY(-110%); background: var(--yellow); color: var(--ink); padding: .75rem; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header {
  position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem; justify-items: start; padding: .55rem max(4vw, 1rem);
  background: #101014; border-bottom: 1px solid #38333c;
}
.brand { display: block; padding: .2rem .45rem; border-radius: .28rem; }
.brand img { width: 124px; height: 59px; object-fit: contain; }
.header nav { display: flex; align-items: center; justify-content: center; gap: clamp(.65rem, 2vw, 2rem); }
.header nav a { font-weight: 650; text-decoration: none; font-size: .95rem; padding: .55rem 0; }
.header nav a:hover, .header nav a[aria-current] { color: var(--cyan); }
.quote { justify-self: end; white-space: nowrap; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .72rem 1.1rem;
  border: 0; border-radius: .25rem; background: var(--magenta); color: #131015;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--yellow); }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(29rem, 56vw, 43rem); background: #101014; border-bottom: 1px solid #3c3540; }
.hero-copy { position: relative; z-index: 1; justify-self: start; padding: clamp(2rem, 6vw, 6.5rem) clamp(1.15rem, 5vw, 5rem) max(5.25rem, 6vw); }
.eyebrow { font-weight: 750; color: var(--cyan); font-size: .86rem; letter-spacing: .085em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 5.8rem); letter-spacing: -.055em; line-height: .99; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(3.3rem, 8vw, 8.5rem); }
.hero h1 em { color: var(--magenta); font-style: normal; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.35rem); letter-spacing: -.025em; }
p, li { line-height: 1.65; }
.hero-copy > p:not(.eyebrow), .intro { color: #dbd4dd; max-width: 52ch; font-size: 1.12rem; }
.product-photo { margin: 0; position: relative; overflow: hidden; background: #221d27; }
figcaption { position: absolute; right: .75rem; bottom: .75rem; background: #161319; color: white; padding: .35rem .65rem; font-size: .82rem; }
.wrap { width: min(92%, 1220px); margin-inline: auto; }
.section { padding-block: clamp(2rem, 5vw, 4.5rem); }
.about-page {
  background: linear-gradient(#60495326, #60495326), var(--magenta);
  color: var(--ink);
}
.about-page .button { background: var(--ink); color: var(--paper); }
.about-page .button:hover { background: var(--yellow); color: var(--ink); }
.product-catalog { background: var(--cyan); color: var(--ink); }
.product-catalog h1 { margin-bottom: clamp(1.25rem, 3vw, 2.5rem); }
.catalog-all { display: inline-block; margin-bottom: 1.25rem; font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.35rem; }
.product-tile { background: var(--paper); border-radius: .75rem; overflow: hidden; box-shadow: 0 .3rem 0 var(--ink); }
.product-tile-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #f0eff0; }
.product-tile-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-tile-copy { padding: 1.1rem 1.2rem 1.25rem; }
.product-tile-copy h2 { display: flex; gap: .55rem; align-items: center; margin-bottom: .65rem; font-size: 1.2rem; }
.product-tile-icon { flex: none; font-size: 1.4rem; }
.product-tile-copy a { font-weight: 650; text-underline-offset: .2em; }
.product-tile-copy ul { padding-left: 1.15rem; margin-bottom: 0; }
.product-catalog a:focus-visible { outline-color: var(--ink); }
.home-services {
  padding-block: clamp(3rem, 7vw, 6rem);
  text-align: center;
  background: var(--cyan);
  color: var(--ink);
}
.home-services h2 { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .85rem; }
@media (min-width: 1100px) {
  .home-services .wrap { width: min(94%, 1440px); }
  .service-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
.service-card {
  display: flex; flex-direction: column; text-align: left; overflow: hidden;
  border-radius: .75rem; background: var(--yellow); color: var(--ink); text-decoration: none;
  box-shadow: 0 .35rem 0 #151418;
}
.service-card-media { overflow: hidden; aspect-ratio: 4 / 3; background: #29242e; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.service-card:first-child img { object-fit: contain; background: #fff; }
.service-card-copy { position: relative; flex: 1; display: flex; flex-direction: column; padding: 1.8rem .85rem .95rem; }
.service-card h3 { font-size: clamp(1rem, 1.25vw, 1.25rem); margin-bottom: .45rem; overflow-wrap: anywhere; }
.service-card p { font-size: .89rem; line-height: 1.45; margin-bottom: .75rem; }
.service-icon {
  position: absolute; top: -1.25rem; left: .85rem; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; border: 2px solid var(--yellow); border-radius: .65rem;
  background: var(--ink); color: var(--cyan); transform: rotate(-6deg); transition: transform .25s ease;
}
.service-icon svg { width: 1.65rem; height: 1.65rem; }
.service-card:focus-visible { outline-color: var(--ink); }
.service-card-action { margin-top: auto; font-size: .89rem; font-weight: 750; }
.service-card:hover img, .service-card:focus-visible img { transform: scale(1.06); }
.service-card:hover .service-icon, .service-card:focus-visible .service-icon { transform: rotate(5deg); }
.service-card:hover .service-card-action, .service-card:focus-visible .service-card-action { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .service-card-media img, .service-icon { transition: none; }
}
#formulario-contacto { scroll-margin-top: 7rem; }
.families, .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.families a, .card { background: #201e24; border: 1px solid #3f3743; border-top: 4px solid var(--accent, var(--cyan)); padding: 1.25rem; }
.families a { display: grid; gap: .35rem; text-decoration: none; font-weight: 750; font-size: 1.16rem; }
.families a:hover { background: #302934; }
.families span { font-size: .9rem; color: #d1c8d5; font-weight: 500; }
.families a:nth-child(2), .sublimacion { --accent: var(--magenta); }
.families a:nth-child(3), .bordado { --accent: var(--yellow); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 1.6rem 2.3rem; }
.filters a { text-decoration: none; border: 1px solid #62596a; border-radius: .25rem; padding: .62rem .8rem; }
.filters a:hover, .filters a[aria-current] { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
.catalog-group + .catalog-group { margin-top: 2rem; }
.card h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.card a, .back { color: var(--cyan); text-underline-offset: .2em; }
.feature { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 4rem); align-items: center; }
.feature h1 { font-size: clamp(2.25rem, 4vw, 4.25rem); }
.feature ul { padding-left: 1.2rem; margin-bottom: 1.5rem; }
.product-photo img { width: 100%; }
.real-photo img { width: 100%; height: auto; object-fit: contain; }
.prose p { max-width: 57ch; }
form { display: grid; gap: 1rem; max-width: 680px; padding: clamp(1rem, 4vw, 2rem); border: 1px solid #483b4d; background: #211c25; }
.fields { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
label { display: grid; gap: .45rem; font-weight: 650; }
label span { color: #d3c9d8; font-weight: 400; }
input, textarea, select { width: 100%; padding: .68rem; font: inherit; color: inherit; background: #161319; border: 1px solid #726678; border-radius: .25rem; }
form button { justify-self: start; }
#resumen { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--cyan); }
#resumen:empty { display: none; }
@media (max-width: 760px) {
  .header { grid-template-columns: 1fr auto; gap: .15rem .6rem; }
  .brand img { width: 101px; height: 43px; }
  .header nav { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; flex-wrap: wrap; gap: 0 .48rem; }
  .header nav a { font-size: .86rem; min-height: 38px; }
  .quote { font-size: .9rem; }
  .feature { grid-template-columns: 1fr; }
  .families, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .families, .cards, .fields { grid-template-columns: 1fr; }
}

.wp-admin-bar .header { top: var(--wp-admin--admin-bar--height, 32px); }
.catalog-notice { color: var(--yellow); }
.content img { height: auto; }
.feature .product-photo { align-self: start; }




.footer-contact { display: grid; gap: .55rem; font-style: normal; line-height: 1.55; }
.footer-contact a { color: var(--cyan); text-underline-offset: .2em; overflow-wrap: anywhere; }

.quote-trap { position: absolute; left: -10000px; }
.footer-social { color: var(--cyan); text-underline-offset: .2em; }



body:has(.whatsapp-dock) { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
.whatsapp-dock {
  position: fixed; inset: auto 0 0; z-index: 6; display: flex; justify-content: flex-end;
  padding: .65rem max(1rem, env(safe-area-inset-right)) calc(.65rem + env(safe-area-inset-bottom));
  pointer-events: none;
}
.whatsapp-link {
  pointer-events: auto; display: inline-flex; align-items: center; min-height: 44px;
  padding: .55rem .95rem; border-radius: 999px; background: #25d366; color: #092613;
  font-weight: 750; text-decoration: none; box-shadow: 0 .2rem 1rem #0007;
}
.whatsapp-link:hover { background: #58e489; }
html:has(.whatsapp-dock) { scroll-padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }


.contact-page-details { display: grid; gap: .9rem; margin-bottom: 1.6rem; }




.organization-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; padding: 0; list-style: none; }
.organization-grid li { display: grid; align-content: start; gap: .8rem; padding: 1rem; border: 1px solid #3f3743; background: #201e24; font-weight: 650; }
.organization-logo { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: .75rem; background: var(--paper); }
.organization-logo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }


.home-organizations { background: #fff; color: var(--ink); text-align: center; }
.home-organizations .organization-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(.65rem, 2vw, 1.5rem);
  margin-block: 1.5rem 0;
}
.home-organizations .organization-grid li { padding: 0; border: 0; background: #fff; }
.home-organizations .organization-logo { height: clamp(4rem, 9vw, 6.25rem); aspect-ratio: auto; padding: .25rem; background: #fff; }
.home-organizations .organization-logo img { max-width: 7.75rem; }
@media (max-width: 760px) {
  .home-organizations .organization-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .home-organizations .organization-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


.contact-socials { display: flex; flex-wrap: wrap; align-content: start; gap: .35rem 1rem; }

.footer-social { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; }
.footer-social svg { width: 1.25rem; height: 1.25rem; flex: none; }


.footer {
  color: #f4f6f8;
  background: repeating-linear-gradient(-24deg, transparent 0 10px, #ffffff07 10px 11px), #1b1b22;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr) minmax(0, 1fr);
  align-items: start;
  gap: 2.5rem clamp(1.5rem, 4vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5.5rem);
}
.footer-grid-with-policies {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr) minmax(0, .8fr) minmax(0, 1fr);
}
.footer-brand img { display: block; width: min(100%, 230px); height: auto; }
.footer-brand p { max-width: 36ch; margin: 1.65rem 0 0; line-height: 1.75; }
.footer-links h2 { font-size: 1.2rem; text-transform: uppercase; margin: 0 0 1rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.footer-links a::before { content: ''; display: inline-block; width: .35em; height: .35em; border: solid var(--cyan); border-width: .12em .12em 0 0; transform: rotate(45deg); margin: 0 .6em .13em .1em; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--cyan); text-decoration: underline; }
.footer .footer-contact { gap: 1rem; }
.footer-bottom { background: #09090c; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .75rem; }
.footer-bottom p { margin: 0; }
.footer-credit { display: inline-block; margin-inline-start: .35rem; }
.footer-bottom .contact-socials { align-items: center; }
.footer-bottom .footer-social { color: inherit; }
.contact-row { display: flex; align-items: flex-start; gap: .5rem; }
.contact-row svg { color: var(--cyan); flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; }
.contact-row span, .contact-row a { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 850px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

.form-notice { color: var(--cyan); margin-block: 0 1rem; }
.contact-quote { margin-top: 1rem; }
.contact-page-details .contact-socials { display: grid; justify-items: start; }




.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem); align-items: start;
}
.contact-map { display: block; width: 100%; height: clamp(13rem, 28vw, 15.3125rem); border: 1px solid #483b4d; border-radius: .25rem; }
.contact-directions { display: inline-flex; align-items: center; min-height: 44px; margin-top: .35rem; color: var(--cyan); text-underline-offset: .2em; }
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}


.hero-slideshow { position: absolute; inset: 0; }
.hero-slides { display: grid; width: 100%; height: 100%; }
.hero-slide {
  position: relative; grid-area: 1 / 1; margin: 0; min-width: 0; min-height: 0;
  opacity: 0; transition: opacity .75s ease-in-out; pointer-events: none;
}
.hero-slide.is-current { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, #101014f5 0%, #101014d9 29%, #10101475 61%, #10101436 100%); }
.hero-slide figcaption { z-index: 1; inset: auto 1rem 4rem auto; }
.hero-slide-controls:not([hidden]) { position: absolute; z-index: 2; inset: auto 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; padding: .7rem 1rem; }
.hero-slide-controls button { border: 1px solid #62596a; background: #201e24; color: var(--paper); padding: .45rem .7rem; min-height: 44px; font: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

@media (max-width: 760px) {
  .hero { min-height: 29rem; }
  .hero-slide::after { background: linear-gradient(90deg, #101014d9, #1010148c); }
  .hero-slide figcaption { max-width: calc(100% - 2rem); }
}


.hero-slide-facade img { object-position: center 12%; }
@media (min-width: 761px) {
  .hero-slide-artwork img { object-position: right center; }
}
@media (max-width: 760px) {
  .hero-slide-facade img { object-position: 45% 12%; }
}

