/* ==========================================================
   GRUPO ARQUISOCIAL · OTROS COLECTIVOS
   Archivo: assets/css/arquisocial-otros-colectivos.css
   Base visual: familia de páginas de Personas
   Prefijo aislado: asotrv1-
   ========================================================== */

.asotrv1-page {
  --asotr-paper: #FFF9DC;
  --asotr-white: var(--as-white, #FBFBFB);
  --asotr-cream: var(--as-cream, #FFF9DC);
  --asotr-black: var(--as-black, #2A2A2A);
  --asotr-green: var(--as-green, #899F75);
  --asotr-yellow: var(--as-yellow, #F5D892);
  --asotr-red: var(--as-red, #AA4B4B);
  --asotr-line: rgba(137, 159, 117, 0.22);
  --asotr-shadow: 0 24px 70px rgba(42, 42, 42, 0.07);

  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: clip;
  background: var(--asotr-white);
  color: var(--asotr-black);
  font-family: var(--as-font-body, "Figtree", Arial, sans-serif) !important;
  isolation: isolate;
}

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

.asotrv1-page a {
  text-decoration: none !important;
}

.asotrv1-page button,
.asotrv1-page a {
  -webkit-tap-highlight-color: transparent;
}

.asotrv1-page h1,
.asotrv1-page h2,
.asotrv1-page h3 {
  max-width: 100%;
  font-family: var(--as-font-title, "Antikor", Georgia, serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.045em !important;
  text-wrap: balance;
}

.asotrv1-page p,
.asotrv1-page span,
.asotrv1-page strong,
.asotrv1-page button,
.asotrv1-page a {
  font-family: var(--as-font-body, "Figtree", Arial, sans-serif) !important;
}

.asotrv1-page [data-asotrv1-section] {
  scroll-margin-top: 96px;
}


/* ==========================================================
   LABEL
   ========================================================== */

.asotrv1-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--asotr-red) !important;
  font-size: 12px !important;
  line-height: 1;
  font-weight: 850 !important;
  letter-spacing: 0.115em !important;
  text-transform: uppercase;
}

.asotrv1-label::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
}


/* ==========================================================
   NAVEGACIÓN LATERAL
   ========================================================== */

.asotrv1-rail {
  position: fixed;
  right: 20px;
  top: 54%;
  z-index: 850;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.asotrv1-page.is-footer-visible .asotrv1-rail {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.asotrv1-rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--asotr-green) !important;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  opacity: 0.66;
  transition: opacity 0.22s ease;
}

.asotrv1-rail a span {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(8px);
  transition: max-width 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.asotrv1-rail a i {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(137, 159, 117, 0.62);
  border-radius: 999px;
  background: var(--asotr-white);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.asotrv1-rail a:hover,
.asotrv1-rail a.is-active {
  opacity: 1;
}

.asotrv1-rail a:hover span,
.asotrv1-rail a.is-active span {
  max-width: 190px;
  opacity: 1;
  transform: translateX(0);
}

.asotrv1-rail a:hover i,
.asotrv1-rail a.is-active i {
  background: var(--asotr-green);
  border-color: var(--asotr-green);
  transform: scale(1.2);
}


/* ==========================================================
   HERO
   ========================================================== */

.asotrv1-hero {
  position: relative;
  min-height: calc(100svh - 24px);
  padding: clamp(118px, 8vw, 148px) 7vw clamp(32px, 3vw, 48px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--asotr-black);
  color: var(--asotr-white);
  isolation: isolate;
}

.asotrv1-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-image:
    url("/wp-content/themes/divi-arquisocial-child/assets/img/otros_colectivos/hero.png");
  background-repeat: no-repeat;
  background-position: center 44%;
  background-size: cover;
  transform: scale(1.02);
}

.asotrv1-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(42, 42, 42, 0.93) 0%,
      rgba(42, 42, 42, 0.79) 34%,
      rgba(42, 42, 42, 0.48) 68%,
      rgba(42, 42, 42, 0.24) 100%
    ),
    linear-gradient(
      180deg,
      rgba(42, 42, 42, 0.12) 0%,
      rgba(42, 42, 42, 0.42) 100%
    );
}

.asotrv1-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(340px, 420px);
  gap: clamp(42px, 6vw, 88px);
  align-items: center;
}

.asotrv1-hero-copy .asotrv1-label {
  color: var(--asotr-yellow) !important;
}

.asotrv1-hero-copy h1 {
  max-width: 780px;
  margin: 26px 0 0;
  color: var(--asotr-white) !important;
  font-size: clamp(50px, 5.6vw, 84px) !important;
  line-height: 0.98 !important;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.24);
}

.asotrv1-hero-copy p {
  max-width: 650px;
  margin: 27px 0 0;
  color: rgba(251, 251, 251, 0.92) !important;
  font-size: clamp(17px, 1.28vw, 21px) !important;
  line-height: 1.55 !important;
  font-weight: 430 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.asotrv1-hero-card {
  position: relative;
  min-height: 350px;
  padding: clamp(30px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 0 38px 38px 38px;
  background: rgba(137, 159, 117, 0.95);
  color: var(--asotr-cream);
  box-shadow:
    16px 16px 0 rgba(245, 216, 146, 0.36),
    0 24px 70px rgba(0, 0, 0, 0.20);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.asotrv1-hero-card::after {
  content: "";
  position: absolute;
  left: clamp(30px, 3.4vw, 46px);
  top: clamp(30px, 3.4vw, 46px);
  width: 64px;
  height: 64px;
  background:
    url("/wp-content/themes/divi-arquisocial-child/assets/img/grupo-arquisocial-mariposa.svg")
    center / contain no-repeat;
  filter:
    brightness(0)
    saturate(100%)
    invert(94%)
    sepia(13%)
    saturate(560%)
    hue-rotate(343deg)
    brightness(108%)
    contrast(104%);
  opacity: 0.88;
}

.asotrv1-hero-card > * {
  position: relative;
  z-index: 2;
}

.asotrv1-hero-card span {
  color: rgba(255, 249, 220, 0.84);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.asotrv1-hero-card strong {
  display: block;
  margin-top: 22px;
  color: var(--asotr-cream);
  font-size: clamp(58px, 7vw, 94px);
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: -0.095em;
}

.asotrv1-hero-card p {
  max-width: 310px;
  margin: 26px 0 0;
  color: var(--asotr-cream) !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}


/* ==========================================================
   CABECERAS
   ========================================================== */

.asotrv1-section-head h2 {
  max-width: 820px;
  margin: 25px 0 0;
  color: var(--asotr-green) !important;
  font-size: clamp(40px, 4.8vw, 74px) !important;
  line-height: 0.99 !important;
}

.asotrv1-section-head > p {
  max-width: 650px;
  margin: 27px 0 0;
  color: var(--asotr-black) !important;
  font-size: clamp(16px, 1.15vw, 19px) !important;
  line-height: 1.58 !important;
}


/* ==========================================================
   SERVICIOS
   ========================================================== */

.asotrv1-services {
  position: relative;
  padding: clamp(92px, 9vw, 142px) 7vw clamp(100px, 10vw, 156px);
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      var(--asotr-white) 0%,
      rgba(255, 249, 220, 0.62) 100%
    );
  isolation: isolate;
}

.asotrv1-services::before {
  content: "";
  position: absolute;
  right: clamp(-220px, -12vw, -120px);
  bottom: clamp(-220px, -12vw, -120px);
  z-index: 0;
  width: clamp(430px, 42vw, 700px);
  aspect-ratio: 1;
  background:
    url("/wp-content/themes/divi-arquisocial-child/assets/img/grupo-arquisocial-mariposa.svg")
    center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
}

.asotrv1-services-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.asotrv1-services-experience {
  margin-top: clamp(54px, 6vw, 86px);
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(520px, 1.38fr);
  gap: clamp(24px, 3vw, 42px);
  align-items: stretch;
}

.asotrv1-service-tabs {
  display: grid;
  gap: 9px;
}

.asotrv1-service-tabs button {
  position: relative;
  width: 100%;
  min-height: 72px;
  padding: 15px 18px 15px 20px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--asotr-line);
  background: rgba(255, 249, 220, 0.46);
  color: var(--asotr-black);
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition:
    transform 0.24s ease,
    background 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.asotrv1-service-tabs button > span {
  color: var(--asotr-red);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.asotrv1-service-tabs button > strong {
  color: var(--asotr-green);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 850;
}

.asotrv1-service-tabs button > i {
  color: var(--asotr-green);
  font-size: 16px;
  line-height: 1;
  font-style: normal;
  transition: transform 0.22s ease;
}

.asotrv1-service-tabs button:hover,
.asotrv1-service-tabs button:focus-visible {
  z-index: 2;
  transform: translateX(4px);
  border-color: rgba(137, 159, 117, 0.42);
  background: var(--asotr-paper);
  box-shadow: 7px 7px 0 rgba(137, 159, 117, 0.12);
  outline: none;
}

.asotrv1-service-tabs button.is-active {
  background: var(--asotr-green);
  border-color: var(--asotr-green);
  color: var(--asotr-cream);
  box-shadow: 8px 8px 0 rgba(137, 159, 117, 0.16);
}

.asotrv1-service-tabs button.is-active > span,
.asotrv1-service-tabs button.is-active > strong,
.asotrv1-service-tabs button.is-active > i {
  color: var(--asotr-cream);
}

.asotrv1-service-tabs button:hover > i,
.asotrv1-service-tabs button.is-active > i {
  transform: translate(3px, -3px);
}

.asotrv1-service-panels {
  min-width: 0;
  min-height: 100%;
}

.asotrv1-service-panel[hidden] {
  display: none !important;
}

.asotrv1-service-panel {
  position: relative;
  min-height: 560px;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 249, 220, 0.13);
  border-radius: 0 44px 44px 44px;
  background:
    linear-gradient(
      108deg,
      #3f5538 0%,
      #526a48 48%,
      #748665 100%
    );
  color: var(--asotr-cream);
  box-shadow:
    16px 16px 0 rgba(137, 159, 117, 0.13),
    0 28px 70px rgba(42, 42, 42, 0.10);
  isolation: isolate;
}

.asotrv1-service-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle at 86% 18%,
      rgba(255, 249, 220, 0.08) 0%,
      rgba(255, 249, 220, 0) 35%
    );
  pointer-events: none;
}

.asotrv1-service-panel::after {
  content: "";
  position: absolute;
  left: 7.5%;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 4px;
  background: var(--asotr-red);
}

.asotrv1-service-panel.is-active {
  animation: asotrv1PanelIn 0.38s ease both;
}

@keyframes asotrv1PanelIn {
  0% {
    opacity: 0.25;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.asotrv1-service-panel-icon {
  position: absolute;
  left: clamp(42px, 4.6vw, 72px);
  top: clamp(68px, 6vw, 92px);
  z-index: 2;
  width: clamp(76px, 7vw, 102px);
  aspect-ratio: 1;
  display: block;
  background:
    url("/wp-content/themes/divi-arquisocial-child/assets/img/grupo-arquisocial-mariposa.svg")
    center / contain no-repeat;
  filter:
    brightness(0)
    saturate(100%)
    invert(94%)
    sepia(13%)
    saturate(560%)
    hue-rotate(343deg)
    brightness(108%)
    contrast(104%);
  opacity: 0.95;
  pointer-events: none;
}

.asotrv1-service-panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding:
    clamp(74px, 7vw, 100px)
    clamp(42px, 5vw, 70px)
    clamp(70px, 7vw, 94px)
    clamp(176px, 16vw, 226px);
}

.asotrv1-service-panel-content > span {
  display: block;
  color: rgba(255, 249, 220, 0.90);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.asotrv1-service-panel-content h3 {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--asotr-cream) !important;
  font-size: clamp(42px, 4.6vw, 68px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.05em !important;
}

.asotrv1-service-panel-content p {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 34px 0 0;
  color: rgba(255, 249, 220, 0.96) !important;
  font-size: clamp(16px, 1.15vw, 19px) !important;
  line-height: 1.58 !important;
  font-weight: 500 !important;
}

/* ==========================================================
   FRASE PROGRESIVA
   Misma base cromática de las páginas de Personas
   ========================================================== */

.asotrv1-wordline-section {
  position: relative;
  min-height: 66svh;
  padding: clamp(88px, 9vw, 140px) 5vw;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--asotr-green);
  isolation: isolate;
}

.asotrv1-wordline-section::before {
  content: "";
  position: absolute;
  right: clamp(-210px, -10vw, -110px);
  top: 50%;
  z-index: 0;
  width: clamp(520px, 52vw, 860px);
  aspect-ratio: 1;
  background:
    url("/wp-content/themes/divi-arquisocial-child/assets/img/grupo-arquisocial-mariposa.svg")
    center / contain no-repeat;
  filter:
    brightness(0)
    saturate(100%)
    invert(94%)
    sepia(13%)
    saturate(560%)
    hue-rotate(343deg)
    brightness(108%)
    contrast(104%);
  opacity: 0.075;
  transform: translateY(-50%);
  pointer-events: none;
}

.asotrv1-wordline {
  position: relative;
  z-index: 2;
  width: min(1380px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.13em 0.28em;
  color: var(--asotr-cream) !important;
  font-family: var(--as-font-title, "Antikor", Georgia, serif) !important;
  font-size: clamp(42px, 6vw, 88px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em !important;
  text-align: center;
}

.asotrv1-wordline span {
  display: inline-block;
  color: inherit;
  opacity: 0.14;
  transform: translateY(22px);
  filter: blur(4px);
  transition:
    opacity 0.42s ease,
    transform 0.42s ease,
    filter 0.42s ease;
}

.asotrv1-wordline span.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}


/* ==========================================================
   CONTACTO
   ========================================================== */

.asotrv1-final {
  position: relative;
  padding: clamp(76px, 7vw, 112px) 7vw;
  overflow: hidden;
  border-top: 1px solid rgba(137, 159, 117, 0.18);
  border-bottom: 1px solid rgba(137, 159, 117, 0.18);
  background: var(--asotr-cream);
  color: var(--asotr-black);
  isolation: isolate;
}

.asotrv1-final::before {
  content: "";
  position: absolute;
  right: clamp(-210px, -10vw, -110px);
  top: 50%;
  width: clamp(480px, 44vw, 720px);
  aspect-ratio: 1;
  background:
    url("/wp-content/themes/divi-arquisocial-child/assets/img/grupo-arquisocial-mariposa.svg")
    center / contain no-repeat;
  opacity: 0.045;
  transform: translateY(-50%);
  pointer-events: none;
}

.asotrv1-final-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(300px, 0.8fr);
  gap: clamp(42px, 6vw, 88px);
  align-items: center;
}

.asotrv1-final h2 {
  max-width: 630px;
  margin: 26px 0 0;
  color: var(--asotr-green) !important;
  font-size: clamp(38px, 4.2vw, 66px) !important;
  line-height: 1.02 !important;
}

.asotrv1-final-action {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.asotrv1-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  padding: 18px 22px;
  overflow: visible;
  border: 1px solid rgba(137, 159, 117, 0.35);
  background: var(--asotr-green);
  color: var(--asotr-cream) !important;
  box-shadow: 8px 8px 0 rgba(137, 159, 117, 0.16);
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    0 100%
  );
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    transform 0.24s ease,
    background 0.24s ease,
    color 0.24s ease,
    box-shadow 0.24s ease;
}

.asotrv1-cta::after {
  content: "→";
  display: inline-block;
  margin-left: 16px;
  color: currentColor;
  font-size: 16px;
  transition: transform 0.24s ease;
}

.asotrv1-cta:hover,
.asotrv1-cta:focus-visible {
  background: var(--asotr-paper);
  color: var(--asotr-green) !important;
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 rgba(137, 159, 117, 0.18);
  outline: none;
}

.asotrv1-cta:hover::after,
.asotrv1-cta:focus-visible::after {
  transform: translateX(5px);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1100px) {
  .asotrv1-services-experience {
    grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.3fr);
  }

  .asotrv1-service-panel {
    min-height: 590px;
  }
}


@media (max-width: 980px) {

  .asotrv1-hero {
    min-height: auto;
    padding-top: 138px;
  }

  .asotrv1-hero-inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .asotrv1-hero-card {
    width: min(100%, 390px);
    min-height: 300px;
  }

  .asotrv1-hero-bg {
    background-position: 58% center;
  }

  .asotrv1-services-experience {
    grid-template-columns: 1fr;
  }

  .asotrv1-service-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asotrv1-service-tabs button:hover,
  .asotrv1-service-tabs button:focus-visible {
    transform: none;
  }

  .asotrv1-service-panel {
    min-height: 0;
  }

  .asotrv1-final-inner {
    grid-template-columns: 1fr;
  }

  .asotrv1-final-action {
    justify-content: flex-start;
  }
}


@media (max-width: 680px) {

  .asotrv1-wordline-section {
    min-height: 58svh;
    padding: 76px 20px;
  }

  .asotrv1-wordline {
    font-size: clamp(38px, 10vw, 62px) !important;
  }

  .asotrv1-rail {
    display: none;
  }

  .asotrv1-hero {
    padding: 118px 20px 72px;
  }

  .asotrv1-hero-bg {
    background-position: 62% center;
  }

  .asotrv1-hero-bg::after {
    background:
      linear-gradient(
        180deg,
        rgba(42, 42, 42, 0.48) 0%,
        rgba(42, 42, 42, 0.66) 48%,
        rgba(42, 42, 42, 0.93) 100%
      );
  }

  .asotrv1-hero-copy h1 {
    font-size: clamp(44px, 13vw, 62px) !important;
  }

  .asotrv1-hero-card {
    min-height: 270px;
    padding: 28px;
    border-radius: 0 30px 30px 30px;
  }

  .asotrv1-services {
    padding: 74px 20px 86px;
  }

  .asotrv1-section-head h2,
  .asotrv1-final h2 {
    font-size: clamp(38px, 11vw, 54px) !important;
  }

  .asotrv1-service-tabs {
    grid-template-columns: 1fr;
  }

  .asotrv1-service-tabs button {
    min-height: 66px;
  }

  .asotrv1-service-panel {
    min-height: 470px;
    align-items: flex-start;
    border-radius: 0 30px 30px 30px;
  }

  .asotrv1-service-panel-icon {
    left: 28px;
    top: 34px;
    width: 72px;
  }

  .asotrv1-service-panel-content {
    padding: 128px 28px 58px;
  }

  .asotrv1-service-panel-content h3 {
    margin-top: 22px;
    font-size: clamp(36px, 10.5vw, 50px) !important;
  }

  .asotrv1-service-panel-content p {
    margin-top: 26px;
  }

  .asotrv1-service-panel::after {
    left: 28px;
  }

  .asotrv1-final {
    padding: 74px 20px 82px;
  }

  .asotrv1-cta {
    width: 100%;
    min-width: 0;
  }
}


@media (prefers-reduced-motion: reduce) {

  .asotrv1-page *,
  .asotrv1-page *::before,
  .asotrv1-page *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.001ms !important;
  }

  .asotrv1-wordline span {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
