/* Shared studio identity and readable surfaces across the WordPress theme. */
.teraby-studio {
  --studio-paper: #fafaf8; --studio-ink: #141612; --studio-mist: #f0f2ed;
  --font-heading: 'Clash Display Variable', 'Switzer', sans-serif;
  background-color: var(--studio-paper);
}
.teraby-studio .site-header {
  position: sticky; top: 0; z-index: 50; border: 0; box-shadow: none;
  background: var(--studio-paper); backdrop-filter: none;
}
.teraby-studio .site-header.is-scrolled {
  background: rgb(250 250 248 / .4);
  -webkit-backdrop-filter: blur(18px) contrast(.75) brightness(1.25); backdrop-filter: blur(18px) contrast(.75) brightness(1.25);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .teraby-studio .site-header.is-scrolled { background: var(--studio-paper); }
}
@media (prefers-reduced-transparency: reduce) {
  .teraby-studio .site-header.is-scrolled { background: var(--studio-paper); backdrop-filter: none; }
}
.teraby-studio.admin-bar .site-header { top: var(--wp-admin--admin-bar--height,32px); }
.teraby-studio .teraby-wordmark {
  display: inline-flex; width: fit-content; align-items: center; min-height: 44px;
  padding-inline: .13em; margin-left: -.13em; border-radius: .17em;
  font: 570 clamp(1.48rem,1.88vw,2rem)/1 'Clash Display Variable',sans-serif;
  color: var(--studio-ink); letter-spacing: -.065em; text-decoration: none;
  transition: color .16s, background-color .16s;
}
.teraby-studio .site-footer .teraby-wordmark { color: #f8f9f5; }
.teraby-studio .site-header .teraby-wordmark:is(:hover,:focus-visible) { color: var(--studio-ink); background: transparent; text-decoration: none; }
.teraby-studio .site-footer .teraby-wordmark:is(:hover,:focus-visible) { color: #c7fa37; }
.teraby-studio .site-header .main-nav { gap: clamp(.65rem,1.65vw,1.85rem); }
.teraby-studio .site-header .nav-group-panel-inner, .teraby-studio .site-header .main-nav.is-open { background-color: #fafaf8; }
.teraby-interior {
  --bg-primary: #fafaf8; --bg-raised: #f0f2ed; --surface-green: #e6ebdc; --text-hi: #151814;
  --text-body: #333a32; --text-dim: #4c554b; --text-faint: #556050;
  --card:#f0f2ed; --card-hover:#e8ede4; --border:#cbd1c6; --border-strong:#9da797; --border-field:#747f70;
  --accent:#454a9f; --accent-ink:#f7f8f4; --radius:1.2rem; --radius-sm:.8rem;
}
.teraby-interior #brx-content { color: var(--text-hi); }
.teraby-interior #brx-content :is(h1,h2,h3,h4,h5,h6) { font-family:var(--font-heading); font-weight:500; }
.teraby-interior #brx-content :is(h1,h2) { text-wrap:balance; }
.teraby-interior .section { padding-block:clamp(3.4rem,6.8vw,7rem); }
.teraby-interior .section--hairline { border-top-color: #d7dbd2; }
.teraby-interior .container:not(.post-cuerpo):not(.studio-wrap):not(.header-inner) { width:var(--studio-width); max-width:82rem; margin-inline:auto; padding-inline:0; }
.teraby-interior .section:nth-of-type(3n):not(.section--final) { background-color:#f1f3ee; }
.teraby-interior #brx-content .page-hero {
  width:var(--studio-width); max-width:90rem; margin:1rem auto 0; box-sizing:border-box;
  min-height:0; padding:clamp(2.3rem,5vw,5.75rem); background:var(--studio-paper); color:#171a16;
  border-radius:clamp(.9rem,1.6vw,1.5rem); isolation:isolate;
}
.teraby-interior #brx-content .page-hero::before { content:none; }
.teraby-interior #brx-content .page-hero .container { width:100%; max-width:none; padding:0; }
.teraby-interior .page-hero-copy { gap:1.2rem; }
.teraby-interior #brx-content .h1-page { max-width:23ch; color:inherit; font-size:clamp(2.4rem,4.7vw,4.8rem); line-height:1.04; letter-spacing:-.035em; }
.teraby-interior #brx-content .page-hero:is(.page-hero--image,.page-hero--video) {
  --text-hi:#fafaf7; --text-body:#ecede9; --text-dim:#d5d9d1; --border-strong:#a6ada2;
  background:#171c19; color:#fafaf7;
}
.teraby-interior .page-hero .lead { color:var(--text-body); line-height:1.55; }
.teraby-interior #brx-content .page-hero .page-hero-veil {
  display:block; position:absolute; z-index:1; inset:0; width:100%; height:100%; pointer-events:none;
  background:linear-gradient(90deg,rgba(13,17,16,.9),rgba(13,17,16,.80) 48%,rgba(13,17,16,.36));
}
.teraby-interior #brx-content .page-hero :is(.page-hero-video,.page-hero-image) { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; pointer-events:none; }
.teraby-interior #brx-content .page-hero > .container { position:relative; z-index:2; }
.teraby-interior .btn { min-height:44px; border-radius:5rem; }
.teraby-interior #brx-content .btn-primary { background:#171b16; color:#fafaf7; border:1px solid #171b16; }
.teraby-interior #brx-content .page-hero:is(.page-hero--image,.page-hero--video) :is(.btn-primary,.studio-action) { color:#151914; background:#f8f9f5; border:1px solid #f8f9f5; }
.teraby-interior .page-hero .btn-ghost { color:inherit; background:transparent; border-color:currentColor; }
.teraby-interior #brx-content .section--final { background:var(--studio-acid); color:#151914; }
.teraby-interior #brx-content .section--final::before { content:none; }
.teraby-interior .section--final :is(h2,p,.lead) { color:#1f281a; }
.teraby-interior .section--final .btn-ghost { border-color:#454d3c; color:#162012; }
.teraby-interior :is(.serv-card,.service-card,.nivel,.ruta,.blog-tarjeta,.blog-destacado,.post-indice,.cq-bloque) { border-radius:1.1rem; }
.teraby-interior .post-cabecera { padding-block:clamp(2.5rem,5vw,5rem) 1.2rem; background:var(--studio-paper); }
.teraby-interior .post-cabecera .post-titulo { margin-inline:auto; max-width:24ch; font-size:clamp(2.25rem,4.8vw,4.7rem); line-height:1.055; letter-spacing:-.033em; }
.teraby-interior .post-cabecera .post-meta { color:#4c5749; }
.teraby-interior .post-cuerpo { max-width:min(75ch,calc(100% - 2.5rem)); margin-inline:auto; }
.teraby-interior .post-cuerpo :is(.post-indice-titulo,.post-num,.post-nota,.post-tabla th,.post-datos strong,.post-pie a), .teraby-interior .blog-categoria { color:#454a99; }
.teraby-interior .post-cuerpo :is(.post-consejo,.post-indice,.post-cta) { background:#eff2e9; }
.teraby-interior .post-cuerpo a:not(.btn) { color:#3c438e; text-decoration:underline; }
.teraby-interior .post-cuerpo .post-tabla :is(td,th) { border-color:var(--border); }
.teraby-interior #brx-content :is(input:not([type=radio]):not([type=checkbox]):not([type=range]),textarea,select) { background-color:#fafaf8; color:#171b16; border-color:#82907b; }
.teraby-interior main .teraby-message { padding:1.5rem; border-radius:1rem; background:#20251f; }
.teraby-interior .nf { background:var(--studio-ink); --text-hi:#f6f8f3; --text-body:#dce1d7; --accent:#d4fa32; }
.teraby-interior #brx-content .dm { --dm-ink:#182117; --dm-ink-soft:#40503d; --dm-navy:#141b15; --dm-blue:#4a4fa5; --dm-blue-deep:#343880; --dm-cyan-soft:#d4fa32; --dm-line:#ccd3c7; --dm-tint:#eef1e9; --dm-bg:#fafaf8; --dm-card:#fafaf7; }
.teraby-interior .dm .dm-btn { border-radius:5rem; }
.teraby-interior .dm .dm-cta { background:#4e52a9; }
.teraby-interior .dm .dm-brand__word { filter:none; }
.teraby-studio :is(.site-footer,.eval-dialog,.cc) {
  --text-hi:#f6f8f2; --text-body:#dce1d6; --text-dim:#bdc5b7; --text-faint:#a9b2a4;
  --bg-primary:#151914; --bg-raised:#242a22; --accent:#d2f94c; --accent-ink:#17200d;
  --card:#292f27; --border:#454d42; --border-strong:#75806f;
}
.teraby-studio .site-footer { background:#151914; color:#f3f5ef; }
.teraby-studio .site-footer a:not(.btn):not(.teraby-wordmark):hover { color:#d4fa32; }
.teraby-studio .teraby-contact-dialog { background:#1b201b; }
.teraby-studio .teraby-dialog-head h2 { font-family:var(--font-heading); font-weight:500; }
.teraby-studio .teraby-message [type=submit] { color:#18200f; background:var(--studio-acid); }
.teraby-interior .page-hero [data-hero-motion] {
  position:absolute; bottom:.55rem; right:.65rem; z-index:3; width:44px; height:44px; color:#fafaf8; background:transparent; border:0;
  padding:0; border-radius:.4rem; display:grid; place-items:center; cursor:pointer; font-size:0;
}
.teraby-interior .page-hero [data-hero-motion][hidden] { display:none; }
.teraby-interior .page-hero [data-hero-motion]::before { content:''; width:0; height:0; border-block:5px solid transparent; border-left:8px solid currentColor; filter:drop-shadow(0 1px 2px #131510); }
.teraby-interior .page-hero [data-hero-motion][data-playing=true]::before { width:8px; height:8px; border:none; background:currentColor; }
.commerce-hero, .commerce-section { width:100%; display:block; }
.commerce-hero { padding:clamp(3rem,7vw,7rem) 0 clamp(2.5rem,5vw,5rem); background:var(--studio-paper); }
.commerce-hero h1 { max-width:18ch; margin:0; font-size:clamp(3.2rem,7vw,7.5rem); line-height:1; letter-spacing:-.045em; }
.commerce-hero p,.commerce-lead { max-width:62ch; color:#354030; margin:1.15rem 0 1.65rem; font-size:clamp(1.05rem,1.45vw,1.3rem); line-height:1.5; }
.commerce-section-links { display:flex; flex-wrap:wrap; gap:.65rem; }
.commerce-section-links a { padding:.55rem 1rem; border-radius:5rem; border:1px solid #737f6a; min-height:44px; color:#1e271a; display:inline-flex; align-items:center; }
.commerce-section-links a:hover { background:var(--studio-acid); }
.teraby-interior #brx-content .page-hero:has(.commerce-section-links) {
  min-height: clamp(24rem, 34vw, 32rem); align-content: center;
}
.page-hero:has(.commerce-section-links) .page-hero-copy { max-width: 53ch; }
.page-hero:has(.commerce-section-links) .page-hero-image { object-position: 74% 57%; }
.commerce-section { padding-block:clamp(3.5rem,6vw,6.5rem); }
.commerce-section h2 { font-size:clamp(2.2rem,4.4vw,4.25rem); line-height:1.06; letter-spacing:-.035em; margin:0 0 1rem; }
.commerce-section .studio-wrap { width:var(--studio-width); }
.commerce-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(.9rem,1.5vw,1.8rem); align-items:stretch; }
.commerce-plan { display:flex; flex-direction:column; align-items:start; gap:.85rem; padding:clamp(1.25rem,2.4vw,2.4rem); border:1px solid #d1d8cb; border-radius:1.25rem; background:#f5f6f2; }
.commerce-plan.commerce-plan-acid { background:var(--studio-acid); border-color:var(--studio-acid); }
.commerce-plan h3,.web-step h3 { color:inherit; font-size:clamp(1.5rem,2.4vw,2.4rem); line-height:1.08; letter-spacing:-.035em; margin:0; }
.commerce-plan p,.web-step p,.web-invest p { margin:0; line-height:1.55; color:#374232; }
.commerce-plan .commerce-price { display:flex; gap:.36rem .6rem; align-items:baseline; flex-wrap:wrap; margin-top:.8rem; color:#20271b; }
.commerce-price strong,.commerce-quote { font:520 clamp(2.05rem,3.5vw,3.8rem)/1.04 var(--font-heading); letter-spacing:-.04em; }
.commerce-plan .commerce-usd { margin-top:-.55rem; }
.commerce-plan .commerce-extra { align-self:stretch; border-top:1px solid #9fa997; padding-top:.8rem; }
.commerce-plan ul { margin:0 0 .6rem; padding-left:1.15rem; color:#303b2c; line-height:1.5; }
.commerce-plan li + li { margin-top:.4rem; }
.commerce-plan .studio-action { margin-top:auto; }
.commerce-tint { background:#eff1ec; }
.commerce-tint .commerce-plan { background:#fafaf8; }
.commerce-faq,.commerce-violet { color:#f8f9f4; background:var(--studio-violet); }
.commerce-faq h2,.commerce-violet h2,.commerce-violet p { color:#f8f9f4; }
.commerce-section .studio-principles { margin-top:2rem; }
.web-step { padding-block:1.15rem; border-top:1px solid #c2c4e6; }
.web-step p { margin-top:.6rem; }
.web-invest { background:var(--studio-acid); border-radius:1.25rem; padding:clamp(1.4rem,4vw,4rem)!important; }
.web-invest p { max-width:62ch; }
body:not(.teraby-editing) .web-portfolio:not(:has(.web-projects > *)) { display:none; }
@media(max-width:1000px) and (min-width:861px) { .teraby-studio .site-header .main-nav { gap:.65rem; } .teraby-studio .site-header .main-nav a:not(.btn) { font-size:.84rem; } }
@media(max-width:850px) { .commerce-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:680px) {
  .commerce-grid { grid-template-columns:1fr; }
  .teraby-interior #brx-content .page-hero { padding:2rem 1.2rem 2.8rem; margin-top:.5rem; }
  .teraby-interior #brx-content .page-hero .page-hero-veil { background:rgba(12,17,15,.8); }
  .teraby-interior .post-cabecera .post-titulo { font-size:clamp(2.08rem,8.5vw,3rem); }
}

.teraby-interior #brx-content .cap-id { color:#354031; }
.teraby-interior .diag-panel-head { flex-wrap:wrap; }
.teraby-interior .diag-tag { width:fit-content; max-width:100%; white-space:normal; line-height:1.4; }
.teraby-interior main :is(p,li) { text-wrap:pretty; }
.teraby-interior .commerce-faq summary { line-height:1.3; }
@supports(grid-template-rows:subgrid) {
  @media(min-width:851px) {
    #planes .commerce-plan { display:grid; grid-row:span 7; grid-template-rows:subgrid; align-items:start; row-gap:.85rem; }
    #planes .commerce-plan .studio-action { align-self:end; }
  }
}
.teraby-interior #brx-content .dm-bar {
  position:sticky; top:0; z-index:45; background:rgba(250,250,248,.4);
  -webkit-backdrop-filter:blur(18px) contrast(.5) brightness(1.55); backdrop-filter:blur(18px) contrast(.5) brightness(1.55);
}
.teraby-interior .dm-bar .dm-brand__word { filter:brightness(.14); }
.teraby-interior .dm-bar .dm-bar__by { color:#434b40; border-color:#9da597; }
.teraby-interior .dm-bar__by .teraby-wordmark { font-size:1.12rem; letter-spacing:-.05em; }
.teraby-interior .dm-footer .teraby-wordmark { color:#f8f9f4; }
.teraby-interior .dm-footer .teraby-wordmark:hover { color:#c7fa37; }
.teraby-interior #brx-content .dm-hero { width:var(--studio-width); margin:1rem auto 0; border-radius:1.25rem; overflow:hidden; }
.teraby-interior #brx-content .nf { background:#fafaf8; --text-hi:#171b16; --text-body:#384233; --accent:#454a9f; }
.teraby-interior .nf-logo.teraby-wordmark { align-self:start; }
@media(max-width:680px) {
  .teraby-interior #brx-content .dm-hero { padding-top:3.5rem; }
  .teraby-interior .dm-bar .dm-brand__word { width:clamp(5.25rem,23vw,8rem); }
  .teraby-interior .dm-bar .dm-bar__by { display:inline-flex; padding-left:.4rem; gap:.25rem; }
  .teraby-interior .dm-bar .dm-bar__inner { gap:.45rem; }
  .teraby-interior .dm-bar__by .teraby-wordmark { font-size:.88rem; }
}

/* The free assessment uses a green background on hover and keyboard focus. */
.teraby-studio :is(.site-header .btn,.studio-action,.bricks-button.bricks-background-dark) {
  --button-hover-bg: var(--studio-ink);
  --button-hover-text: var(--studio-acid);
}
.teraby-interior #brx-content .btn-primary {
  --button-hover-bg: #171b16;
  --button-hover-text: var(--studio-acid);
}
.teraby-studio .studio-hero .studio-action,
.teraby-interior #brx-content .page-hero:is(.page-hero--image,.page-hero--video) :is(.btn-primary,.studio-action),
.teraby-studio :is(.commerce-section-links a,.bricks-button.bricks-background-light,.dm-btn--light) {
  --button-hover-bg: var(--studio-acid);
  --button-hover-text: var(--studio-ink);
}
.teraby-studio :is(.btn,.btn-link)[data-teraby-topic="rapido"],
.teraby-interior #brx-content .btn[data-teraby-topic="rapido"],
.teraby-studio .dm-btn[data-teraby-topic="medico"],
.teraby-interior #brx-content .btn-primary[data-teraby-topic="roi"] {
  --assessment-hover-bg: var(--studio-acid);
  --assessment-hover-text: var(--studio-ink);
}
.teraby-studio :is(.site-header .btn,.studio-action,.bricks-button:is(.bricks-background-light,.bricks-background-dark),.commerce-section-links a,.dm-btn--light,.dm-btn[data-teraby-topic="medico"],[data-teraby-topic="rapido"]:is(.btn,.btn-link)):is(:hover,:focus-visible),
.teraby-interior #brx-content .btn-primary:not(:disabled):is(:hover,:focus-visible),
.teraby-interior #brx-content .page-hero:is(.page-hero--image,.page-hero--video) :is(.btn-primary,.studio-action):is(:hover,:focus-visible) {
  background-color: var(--assessment-hover-bg, var(--button-hover-bg));
  border-color: var(--assessment-hover-bg, var(--button-hover-bg));
  color: var(--assessment-hover-text, var(--button-hover-text));
}
.teraby-studio .site-header .btn[data-teraby-topic="rapido"] {
  border-color: transparent;
}
.teraby-studio .site-header .btn[data-teraby-topic="rapido"]:hover {
  border-color: var(--studio-ink);
}
.teraby-interior #brx-content .marquee-seccion {
  --text-hi: var(--studio-paper); --text-body: var(--studio-paper); --text-dim: #f0effb;
  background: var(--studio-violet); color: var(--studio-paper); border-top: 0;
}
.teraby-interior .marquee-seccion .marquee-titulo { color: inherit; }
.teraby-interior .ruta-card { --accent: var(--studio-acid); }
.teraby-interior .marquee-seccion .marquee {
  display: block; width: var(--studio-width); max-width: 82rem; margin-inline: auto;
  overflow: visible; mask-image: none; -webkit-mask-image: none;
}
.teraby-interior .marquee-seccion .marquee-track {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
  gap: 1rem clamp(1rem, 3vw, 3rem); padding: 0; margin: 0; animation: none;
}
.teraby-interior .marquee-seccion .marquee-track[aria-hidden="true"] { display: none; }
.teraby-interior .marquee-seccion .marquee-item { justify-content: center; }
@media (max-width: 660px) {
  .teraby-interior .marquee-seccion .marquee-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; }
}
.teraby-interior .marquee-seccion .marquee-item img {
  max-width: none; width: auto; height: clamp(3.25rem, 4.3vw, 4.25rem);
}
.web-hero .hero-actions .web-portfolio-jump {
  display: inline-flex; min-height: 44px; align-items: center; width: fit-content;
  color: var(--studio-paper); text-decoration: underline; text-underline-offset: .2em;
}
.web-hero .hero-actions .web-portfolio-jump:hover { color: var(--studio-acid); }

.web-portfolio h2 { margin-bottom: clamp(1.5rem, 3.5vw, 3.5rem); }
.web-projects, .web-projects-rest {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem) clamp(1rem, 2.4vw, 2.5rem);
}
.web-project { min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.web-project-preview { display: block; width: 100%; border-radius: .75rem; }
.teraby-studio #brx-content .web-project-preview:focus-visible { outline-offset: -4px; }
.web-project .web-project-image {
  display: block; width: 100%; height: auto; aspect-ratio: 8 / 5;
  border: 1px solid #d4d8d0; border-radius: .75rem; object-fit: cover; background: var(--studio-mist);
}
.web-project-copy { display: flex; flex: 1; flex-direction: column; align-items: start; padding-top: 1rem; }
.web-project h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.1; letter-spacing: -.03em; }
.web-project p { margin: .55rem 0 1rem; max-width: 48ch; line-height: 1.5; color: #374031; }
.web-project .portfolio-link { margin-top: auto; max-width: 100%; overflow-wrap: anywhere; }
.web-project-featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center; gap: clamp(1.5rem, 4vw, 4rem); background: var(--studio-mist);
  border-radius: 1rem; overflow: hidden;
}
.web-project-featured .web-project-image { border-radius: 0; border: 0; }
.web-project-featured .web-project-copy { padding: clamp(1.25rem, 3vw, 3rem); padding-inline-start: 0; }
.web-project-featured h3 { font-size: clamp(2.4rem, 4.5vw, 4.8rem); }
.web-project-featured p { max-width: 34ch; font-size: clamp(1.1rem, 1.5vw, 1.4rem); }
.portfolio-more { display: block; grid-column: 1 / -1; border-top: 1px solid #bdc6b7; }
.portfolio-more > summary {
  display: list-item; width: fit-content; padding: 1.15rem .25rem; cursor: pointer;
  color: var(--studio-ink); font-weight: 550; font-size: 1.06rem;
}
.portfolio-more > summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.portfolio-more[open] .web-projects-rest { margin-top: 1rem; }
@media (max-width: 900px) {
  .web-projects, .web-projects-rest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .web-projects, .web-projects-rest, .web-project-featured { grid-template-columns: minmax(0, 1fr); }
  .web-project-featured { gap: 0; }
  .web-project-featured .web-project-copy { padding: 1.25rem; }
}
