/*
Theme Name: Estudio Testa
Theme URI: https://estudiotesta.com
Author: Estudio Testa
Description: Tema de bloques para Estudio Testa, despachantes de aduana y comercio exterior. La portada usa el marcado estático. El resto de las páginas se editan con HTML de bloques y theme.json.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: testa
Tags: block-theme, full-site-editing, one-column, custom-colors, custom-logo, custom-menu
*/

@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Plus+Jakarta+Sans:ital,wght@0,400..800;1,400..800&display=swap");

*,
*::before,
*::after { box-sizing: border-box; }

body { margin: 0; }

html { scroll-behavior: smooth; }

:focus-visible {
  outline: 2px solid var(--wp--preset--color--cyan);
  outline-offset: 3px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wp--preset--color--base);
  box-shadow: 0 1px 0 rgba(16, 40, 63, 0.06);
}

.brand-logo { margin: 0; }

.brand-logo img {
  height: 58px;
  width: auto;
}

.site-header .wp-block-navigation { margin-left: auto; }

.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.wp-block-button__link:hover { transform: translateY(-1px); }

.wp-block-button .has-green-background-color:hover {
  background-color: var(--wp--custom--green-dark);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1.5px solid currentColor;
}

.hero { overflow: hidden; }

.hero .wp-block-cover__image-background { object-position: 62% center; }

.hero .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(7, 32, 58, 0.88) 0%, rgba(7, 36, 66, 0.62) 36%, rgba(7, 36, 66, 0.18) 64%, rgba(8, 28, 48, 0.28) 100%) !important;
  opacity: 1 !important;
}

.hero .wp-block-cover__inner-container {
  width: min(1140px, calc(100% - 3rem));
  margin-inline: auto;
  padding-bottom: 4.5rem;
}

.hero-copy { max-width: 620px; }

.hero-copy h1 {
  color: var(--wp--preset--color--base);
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero-copy h1 .has-cyan-color { font-weight: 560; }

.wp-block-cover.hero .hero-stat {
  position: absolute;
  z-index: 2;
  right: max(1.5rem, calc((100% - 1140px) / 2));
  bottom: 2.25rem;
  margin: 0;
}

.wp-block-cover.hero .hero-stat p { margin: 0; }

.services-grid > .wp-block-column {
  position: relative;
  padding-left: 1.75rem;
  padding-right: 1.5rem;
}

.services-grid > .wp-block-column + .wp-block-column::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--wp--preset--color--line);
}

.service .wp-block-html svg,
.icon {
  width: 36px;
  height: 36px;
  display: block;
}

.trajectory { position: relative; overflow: hidden; }

.trajectory-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.trajectory .wp-block-columns,
.trajectory .wp-block-group { position: relative; z-index: 1; }

.values {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding-left: 1.75rem;
}

.value { text-align: center; }

.value-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.value-icon svg { width: 26px; height: 26px; }

.value p { line-height: 1.3; }

.process-title { max-width: 13.5em; }

.process-photo { margin: 0; }

.process-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 18px;
}

.steps { margin-top: 0.5rem; }

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 750;
  line-height: 1;
}

.steps > .wp-block-column { position: relative; }

.steps > .wp-block-column:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 50px;
  right: 10px;
  border-top: 1.5px dotted #c3d0dc;
}

.steps > .wp-block-column:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 8px;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid #93a8ba;
  border-bottom: 1.6px solid #93a8ba;
  transform: rotate(-45deg);
}

.steps h3 { line-height: 1.25; }

.about-grid > .wp-block-column:first-child {
  padding: 4.5rem 3.5rem 4.5rem max(1.5rem, calc((100vw - 1140px) / 2));
}

.about-title { max-width: 10.5em; }

.about-photo { min-height: 430px; }

.about-photo .wp-block-cover__inner-container {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  height: 100%;
  padding: 12% 7% 0 8%;
}

.about-photo .script {
  text-shadow: 0 8px 22px rgba(8, 28, 48, 0.35);
  line-height: 1.05;
}

.cta-bar > .wp-block-column:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding-right: 1.25rem;
}

.cta-bar > .wp-block-column + .wp-block-column { padding-left: 1.25rem; }

svg.cta-icon {
  width: 28px;
  height: 28px;
  flex: none;
}

footer .brand-logo img { height: 54px; }

.footer-social .wp-social-link a {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--wp--preset--color--base);
}

.footer-social .wp-social-link a:hover { background: rgba(255, 255, 255, 0.1); }

@media (max-width: 1000px) {
  .services-grid,
  .steps,
  .values { flex-wrap: wrap; }

  .services-grid > .wp-block-column,
  .steps > .wp-block-column,
  .values > .wp-block-column {
    flex-basis: calc(50% - 1rem);
  }

  .services-grid > .wp-block-column::before,
  .values { border: 0; padding-left: 0; }

  .cta-bar > .wp-block-column:not(:last-child) { border-right: 0; }

  .about-grid > .wp-block-column:first-child { padding: 4rem 1.5rem; }

  .steps > .wp-block-column:nth-child(2)::after,
  .steps > .wp-block-column:nth-child(2)::before { display: none; }
}

@media (max-width: 781px) {
  .hero { min-height: 0 !important; }

  .wp-block-cover.hero .hero-stat {
    position: static;
    margin-top: 1.5rem;
  }

  .services-grid > .wp-block-column,
  .steps > .wp-block-column,
  .values > .wp-block-column { flex-basis: 100%; }

  .steps > .wp-block-column::after,
  .steps > .wp-block-column::before { display: none; }

  .brand-logo img,
  footer .brand-logo img { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .wp-block-button__link { transition: none; }
}
