/* ==========================================================
   GRUPO ARQUISOCIAL - PERSONAS MAYORES
   Archivo: assets/css/arquisocial-servicios-mayores.css
   Versión compacta con fotografía en apoyos
   Prefijo aislado: asmayv1-
   ========================================================== */

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

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

.asmayv1-page,
.asmayv1-page * {
  box-sizing: border-box;
}

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

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

.asmayv1-page h1,
.asmayv1-page h2,
.asmayv1-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;
}

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

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

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

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

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

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

.asmayv1-rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--asmay-green-dark) !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;
}

.asmayv1-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;
}

.asmayv1-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(--asmay-white);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

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

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

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

/* ==========================================================
   HERO
   Fondo fotografico: assets/img/mayores/hero.png
   ========================================================== */

.asmayv1-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(--asmay-black);
  color: var(--asmay-white);
  isolation: isolate;
}


/* Se eliminan los recursos decorativos anteriores */

.asmayv1-hero::before,
.asmayv1-hero::after {
  content: none;
  display: none;
}


/* Fotografia del hero */

.asmayv1-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/mayores/hero.png");

  background-repeat: no-repeat;
  background-position: center 44%;
  background-size: cover;

  transform: scale(1.015);
}


/* Oscurecimiento para asegurar la lectura */

.asmayv1-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(42, 42, 42, 0.91) 0%,
      rgba(42, 42, 42, 0.77) 34%,
      rgba(42, 42, 42, 0.43) 67%,
      rgba(42, 42, 42, 0.20) 100%
    ),
    linear-gradient(
      180deg,
      rgba(42, 42, 42, 0.10) 0%,
      rgba(42, 42, 42, 0.38) 100%
    );
  pointer-events: none;
}


/* Compatibilidad con el HTML anterior */

.asmayv1-hero-bg span {
  display: none !important;
}


.asmayv1-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;
}


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


.asmayv1-hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--asmay-white) !important;
  font-size: clamp(46px, 5.3vw, 80px) !important;
  line-height: 0.98 !important;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.24);
}


.asmayv1-hero-copy p {
  max-width: 610px;
  margin: 27px 0 0;
  color: rgba(251, 251, 251, 0.91) !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);
}




.asmayv1-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(--asmay-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);
}




.asmayv1-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;
}


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


.asmayv1-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;
}


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


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




/* Encuadre y contraste en tablet */

@media (max-width: 980px) {

  .asmayv1-hero-bg {
    background-position: 60% center;
    transform: scale(1.01);
  }

  .asmayv1-hero-bg::after {
    background:
      linear-gradient(
        90deg,
        rgba(42, 42, 42, 0.89) 0%,
        rgba(42, 42, 42, 0.72) 66%,
        rgba(42, 42, 42, 0.48) 100%
      ),
      linear-gradient(
        180deg,
        rgba(42, 42, 42, 0.16) 0%,
        rgba(42, 42, 42, 0.70) 100%
      );
  }

  .asmayv1-hero-card {
    background: rgba(137, 159, 117, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}


/* Encuadre y lectura en movil */

@media (max-width: 680px) {

  .asmayv1-hero-bg {
    background-position: 64% center;
  }

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


/* ==========================================================
   CABECERAS DE SECCIÓN
   ========================================================== */

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

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

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

.asmayv1-services {
  position: relative;
  padding: clamp(78px, 7vw, 112px) 7vw clamp(84px, 8vw, 122px);
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      var(--asmay-white) 0%,
      rgba(255, 249, 220, 0.62) 100%
    );
  isolation: isolate;
}

.asmayv1-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;
}

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

.asmayv1-services-head {
  display: block;
  max-width: 780px;
}

.asmayv1-services-head > p {
  max-width: 650px;
  margin: 28px 0 0;
}

.asmayv1-services-experience {
  margin-top: clamp(42px, 4.5vw, 62px);
  display: grid;
  grid-template-columns: minmax(270px, 0.54fr) minmax(520px, 1.46fr);
  gap: clamp(22px, 2.6vw, 34px);
  align-items: stretch;
}

.asmayv1-service-tabs {
  display: grid;
  gap: 8px;
  align-content: start;
}

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


.asmayv1-service-tabs button > span:first-child {
  position: relative;
  z-index: 2;
  color: var(--asmay-red);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.asmayv1-service-tab-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: block;
}

.asmayv1-service-tab-copy strong {
  display: block;
  color: var(--asmay-green);
  font-size: 14.5px;
  line-height: 1.15;
  font-weight: 850;
}


.asmayv1-service-tabs button > i {
  position: relative;
  z-index: 2;
  color: var(--asmay-green-dark);
  font-size: 16px;
  line-height: 1;
  font-style: normal;
  transition: transform 0.22s ease;
}

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

.asmayv1-service-tabs button.is-active {
  background: var(--asmay-green);
  border-color: var(--asmay-green);
  color: var(--asmay-cream);
  box-shadow: 6px 6px 0 rgba(137, 159, 117, 0.14);
}


.asmayv1-service-tabs button.is-active > span:first-child,
.asmayv1-service-tabs button.is-active > i {
  color: var(--asmay-cream);
}

.asmayv1-service-tabs button.is-active .asmayv1-service-tab-copy strong {
  color: var(--asmay-cream);
}

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

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

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

.asmayv1-service-panel {
  position: relative;
  min-height: 496px;
  height: 100%;
  padding: clamp(30px, 3.4vw, 46px);
  display: grid;
  grid-template-columns: minmax(64px, 0.2fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: end;
  overflow: hidden;
  border-radius: 0 40px 40px 40px;
  background: var(--asmay-green);
  color: var(--asmay-cream);
  box-shadow: 14px 14px 0 rgba(137, 159, 117, 0.13);
  isolation: isolate;
}

/* Fotografía de fondo de cada apoyo */
.asmayv1-service-panel-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.asmayv1-service-panel-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.asmayv1-service-panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(80, 97, 69, 0.91) 0%,
      rgba(92, 110, 79, 0.82) 48%,
      rgba(42, 42, 42, 0.48) 100%
    ),
    linear-gradient(
      180deg,
      rgba(42, 42, 42, 0.05) 0%,
      rgba(42, 42, 42, 0.42) 100%
    );
  pointer-events: none;
}



.asmayv1-service-panel::after {
  content: "";
  position: absolute;
  left: clamp(34px, 4vw, 58px);
  right: clamp(34px, 4vw, 58px);
  bottom: 0;
  height: 4px;
  background: var(--asmay-red);
}

.asmayv1-service-panel.is-active {
  animation: asmayv1PanelIn 0.42s ease both;
}

@keyframes asmayv1PanelIn {
  0% { opacity: 0.24; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

.asmayv1-service-panel-brand {
  position: relative;
  z-index: 3;
  align-self: start;
}

.asmayv1-service-panel-brand img {
  display: block;
  width: clamp(58px, 5.5vw, 82px);
  height: auto;
  filter: brightness(0) saturate(100%) invert(94%) sepia(13%) saturate(560%) hue-rotate(343deg) brightness(108%) contrast(104%);
  opacity: 0.9;
}

.asmayv1-service-panel-content {
  position: relative;
  z-index: 3;
  align-self: end;
}

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

.asmayv1-service-panel-content h3 {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--asmay-cream) !important;
  font-size: clamp(36px, 3.8vw, 58px) !important;
  line-height: 0.98 !important;
}

.asmayv1-service-panel-content > p {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--asmay-cream) !important;
  font-size: clamp(15px, 1.06vw, 18px) !important;
  line-height: 1.56 !important;
}

.asmayv1-service-panel-data {
  margin-top: 26px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 18px;
  border-top: 1px solid rgba(255, 249, 220, 0.25);
}

.asmayv1-service-panel-data div {
  min-width: 0;
}

.asmayv1-service-panel-data span {
  display: block;
  color: rgba(255, 249, 220, 0.74);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.asmayv1-service-panel-data strong {
  display: block;
  margin-top: 12px;
  color: var(--asmay-cream);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 0.95;
  font-weight: 850;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}

/* ==========================================================
   FRASE PROGRESIVA
   ========================================================== */

.asmayv1-quote {
  position: relative;
  min-height: 52svh;
  padding: clamp(72px, 7vw, 108px) 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--asmay-green);
}

.asmayv1-quote::before {
  content: "";
  position: absolute;
  right: clamp(-210px, -10vw, -110px);
  top: 50%;
  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;
  opacity: 0.075;
  transform: translateY(-50%);
  pointer-events: none;
}

.asmayv1-quote p.asmayv1-quote-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(--asmay-cream) !important;
  font-family: var(--as-font-title, "Antikor", Georgia, serif) !important;
  font-size: clamp(40px, 5.4vw, 76px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em !important;
  text-align: center;
}

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

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

/* ==========================================================
   GALERIA
   Slider horizontal + ampliacion CSS con :target
   ========================================================== */

.asmayv1-gallery {
  position: relative;
  padding: clamp(64px, 6vw, 92px) 7vw clamp(70px, 6vw, 96px);
  overflow: clip;
  background: var(--asmay-white);
  isolation: isolate;
}

.asmayv1-gallery::before {
  content: "";
  position: absolute;
  right: clamp(-220px, -11vw, -120px);
  bottom: clamp(-240px, -12vw, -130px);
  z-index: 0;
  width: clamp(480px, 44vw, 740px);
  aspect-ratio: 1;
  background:
    url("/wp-content/themes/divi-arquisocial-child/assets/img/grupo-arquisocial-mariposa.svg")
    center / contain no-repeat;
  opacity: 0.028;
  pointer-events: none;
}

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

.asmayv1-gallery-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.asmayv1-gallery-toolbar h2 {
  margin: 0;
  color: var(--asmay-green) !important;
  font-size: clamp(40px, 4.2vw, 64px) !important;
  line-height: 0.98 !important;
}

.asmayv1-gallery-controls {
  display: flex;
  gap: 8px;
}

.asmayv1-gallery-controls button {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(137, 159, 117, 0.28);
  border-radius: 999px;
  background: var(--asmay-cream);
  color: var(--asmay-green-dark);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.asmayv1-gallery-controls button:hover,
.asmayv1-gallery-controls button:focus-visible {
  transform: translateY(-2px);
  background: var(--asmay-green);
  color: var(--asmay-cream);
  outline: none;
}

.asmayv1-gallery-track {
  width: 100%;
  margin-top: clamp(28px, 3vw, 40px);
  padding: 0 0 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(330px, 42%);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(137, 159, 117, 0.45) transparent;
}

.asmayv1-gallery-track::-webkit-scrollbar {
  height: 5px;
}

.asmayv1-gallery-track::-webkit-scrollbar-track {
  background: transparent;
}

.asmayv1-gallery-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(137, 159, 117, 0.45);
}

.asmayv1-gallery-slide {
  position: relative;
  height: clamp(280px, 30vw, 410px);
  display: block;
  overflow: hidden;
  border-radius: 0 28px 28px 28px;
  background: var(--asmay-green);
  scroll-snap-align: start;
  isolation: isolate;
}

.asmayv1-gallery-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.asmayv1-gallery-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(42, 42, 42, 0.00) 45%, rgba(42, 42, 42, 0.22) 100%);
  pointer-events: none;
}

.asmayv1-gallery-slide::after {
  content: "+";
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 249, 220, 0.56);
  border-radius: 999px;
  background: rgba(42, 42, 42, 0.42);
  color: var(--asmay-cream);
  font-size: 22px;
  line-height: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.asmayv1-gallery-slide:hover img,
.asmayv1-gallery-slide:focus-visible img {
  transform: scale(1.035);
}

.asmayv1-gallery-slide:hover::after,
.asmayv1-gallery-slide:focus-visible::after {
  transform: scale(1.08);
  background: var(--asmay-green);
}

.asmayv1-gallery-slide:focus-visible {
  outline: 3px solid var(--asmay-yellow);
  outline-offset: 3px;
}

/* Lightbox sin JS */
.asmayv1-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.asmayv1-lightbox:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.asmayv1-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.asmayv1-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(1180px, 92vw);
  max-height: 88vh;
  display: grid;
  place-items: center;
}

.asmayv1-lightbox-dialog img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0 26px 26px 26px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.asmayv1-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 249, 220, 0.92);
  color: var(--asmay-black) !important;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

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

.asmayv1-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(--asmay-cream);
  isolation: isolate;
}

.asmayv1-final::before {
  content: "";
  position: absolute;
  right: clamp(-210px, -10vw, -110px);
  top: 50%;
  z-index: 0;
  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.055;
  transform: translateY(-50%);
  pointer-events: none;
}



.asmayv1-final-inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(380px, 0.8fr);
  gap: clamp(42px, 6vw, 88px);
  align-items: center;
}



.asmayv1-final-inner > div:last-child {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

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

.asmayv1-final p {
  max-width: 540px;
  margin: 0;
  color: var(--asmay-black) !important;
  font-size: clamp(16px, 1.1vw, 19px) !important;
  line-height: 1.58 !important;
}

.asmayv1-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 340px;
  margin-top: 0;
  padding: 18px 22px;
  overflow: visible;
  border: 1px solid rgba(137, 159, 117, 0.35);
  background: var(--asmay-green);
  color: var(--asmay-cream) !important;
  box-shadow: 6px 6px 0 rgba(137, 159, 117, 0.14);
  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;
}

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

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

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

/* ==========================================================
   REVEAL Y ANCLAJES
   ========================================================== */

.asmayv1-page [data-asmayv1-section] {
  scroll-margin-top: 142px;
}

@media (prefers-reduced-motion: no-preference) {
  .asmayv1-page [data-asmayv1-section] > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.68s ease, transform 0.68s ease;
  }

  .asmayv1-page [data-asmayv1-section].is-visible > * {
    opacity: 1;
    transform: translateY(0);
  }

  .asmayv1-hero > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

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

@media (max-width: 1180px) {
  .asmayv1-rail {
    display: none;
  }

  .asmayv1-services-experience {
    grid-template-columns: minmax(270px, 0.7fr) minmax(440px, 1.3fr);
  }

}

@media (max-width: 980px) {
  .asmayv1-page {
    width: 100%;
    margin-left: 0;
  }

  .asmayv1-hero {
    min-height: auto;
    padding: 132px 24px 64px;
    display: block;
  }

  .asmayv1-hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .asmayv1-hero-copy h1 {
    font-size: clamp(40px, 11vw, 62px) !important;
  }

  .asmayv1-hero-card {
    min-height: 310px;
  }

  .asmayv1-scroll-hint {
    display: none;
  }

  .asmayv1-services,
  .asmayv1-gallery,
  .asmayv1-final {
    padding-left: 24px;
    padding-right: 24px;
  }

  .asmayv1-services-head,
  .asmayv1-services-experience,
  .asmayv1-final-inner {
    grid-template-columns: 1fr;
  }

  .asmayv1-services-head {
    gap: 28px;
  }

  .asmayv1-services-experience {
    gap: 26px;
  }

  .asmayv1-service-tabs {
    display: flex;
    gap: 12px;
    width: calc(100vw - 24px);
    margin-right: -24px;
    padding: 0 24px 16px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .asmayv1-service-tabs::-webkit-scrollbar {
    display: none;
  }

  .asmayv1-service-tabs button {
    flex: 0 0 min(72vw, 280px);
    min-height: 72px;
    scroll-snap-align: start;
  }

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

  .asmayv1-service-panel {
    min-height: 500px;
    grid-template-columns: 1fr;
    align-content: space-between;
    gap: 34px;
    border-radius: 0 32px 32px 32px;
  }

  .asmayv1-service-panel-brand img {
    width: 58px;
  }

  .asmayv1-service-panel-content h3 {
    font-size: clamp(36px, 9vw, 54px) !important;
  }

  .asmayv1-quote {
    min-height: 46svh;
    padding-left: 24px;
    padding-right: 24px;
  }

  .asmayv1-quote p.asmayv1-quote-wordline {
    font-size: clamp(36px, 9.5vw, 58px) !important;
  }




  .asmayv1-gallery-track {
    grid-auto-columns: minmax(300px, 64vw);
  }

  .asmayv1-gallery-slide {
    height: clamp(270px, 48vw, 390px);
  }

  .asmayv1-final-inner {
    gap: 32px;
  }
}

@media (max-width: 680px) {




  .asmayv1-service-panel {
    padding: 30px 24px;
  }

  .asmayv1-service-panel::after {
    left: 24px;
    right: 24px;
  }

  .asmayv1-service-panel-data {
    grid-template-columns: 1fr;
  }

  .asmayv1-service-panel-data strong {
    font-size: clamp(30px, 10vw, 44px);
  }




  .asmayv1-gallery-toolbar {
    align-items: center;
  }

  .asmayv1-gallery-controls button {
    width: 42px;
    height: 42px;
  }

  .asmayv1-gallery-track {
    width: calc(100vw - 24px);
    margin-right: -24px;
    padding-right: 24px;
    grid-auto-columns: min(82vw, 340px);
    gap: 12px;
    scrollbar-width: none;
  }

  .asmayv1-gallery-track::-webkit-scrollbar {
    display: none;
  }

  .asmayv1-gallery-slide {
    height: 320px;
  }

  .asmayv1-final-inner > div:last-child {
    justify-content: flex-start;
  }

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

@media (max-width: 420px) {
  .asmayv1-hero,
  .asmayv1-services,
  .asmayv1-gallery,
  .asmayv1-final {
    padding-left: 20px;
    padding-right: 20px;
  }

  .asmayv1-hero {
    padding-top: 124px;
    padding-bottom: 52px;
  }

  .asmayv1-hero-copy h1 {
    font-size: clamp(38px, 11.8vw, 52px) !important;
  }

  .asmayv1-hero-card {
    min-height: 292px;
  }

  .asmayv1-service-tabs {
    width: calc(100vw - 20px);
    margin-right: -20px;
    padding-right: 20px;
  }




  .asmayv1-gallery-track {
    width: calc(100vw - 20px);
    margin-right: -20px;
    padding-right: 20px;
  }

  .asmayv1-service-tabs button {
    flex-basis: 82vw;
  }

  .asmayv1-service-panel-content h3 {
    font-size: clamp(34px, 10vw, 46px) !important;
  }
}

/* AFINADO CROMATICO Y MARCA */

@media (max-width: 680px) {


  .asmayv1-final::before {
    right: -250px;
    width: 520px;
    opacity: 0.045;
  }
}

@media (prefers-reduced-motion: reduce) {
  .asmayv1-page *,
  .asmayv1-page *::before,
  .asmayv1-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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


/* ==========================================================
   CONTINUIDAD VISUAL ENTRE PAGINAS DE SERVICIOS
   ========================================================== */
@media (max-width: 980px) {
  .asmayv1-service-tabs button:hover,
  .asmayv1-service-tabs button:focus-visible {
    transform: none;
    background: var(--asmay-paper);
    box-shadow: 7px 7px 0 rgba(137, 159, 117, 0.12);
  }

  .asmayv1-service-tabs button.is-active {
    background: var(--asmay-green);
    box-shadow: 7px 7px 0 rgba(137, 159, 117, 0.14);
  }
}


/* ==========================================================
   AFINADO FINAL 2026-09 - 7 APOYOS + FOTOGRAFÍA + GALERÍA
   ========================================================== */

@media (min-width: 981px) {
  .asmayv1-service-tabs {
    grid-template-rows: repeat(7, minmax(0, 1fr));
  }

  .asmayv1-service-tabs button {
    min-height: 0;
    height: 100%;
  }

  .asmayv1-services-experience {
    align-items: stretch;
  }

  .asmayv1-service-panels,
  .asmayv1-service-panel {
    min-height: 500px;
  }
}

@media (max-width: 980px) {
  .asmayv1-service-panel-overlay {
    background:
      linear-gradient(180deg, rgba(75, 91, 66, 0.67) 0%, rgba(52, 62, 47, 0.90) 100%),
      linear-gradient(90deg, rgba(137, 159, 117, 0.35), rgba(42, 42, 42, 0.30));
  }
}
/* ==========================================================
   HERO MAYORES - TARJETA COMPACTA FINAL
   ========================================================== */

@media (min-width: 981px) {

  .asmayv1-hero-card {
    width: 260px;
    min-height: 220px;
    padding: 24px;

    justify-self: end;
    align-self: center;

    transform: translate(95px, 58px);

    border-radius: 0 30px 30px 30px;

    background:
      linear-gradient(
        145deg,
        rgba(112, 136, 94, 0.98) 0%,
        rgba(137, 159, 117, 0.96) 100%
      );

    box-shadow:
      11px 11px 0 rgba(245, 216, 146, 0.30),
      0 18px 44px rgba(0, 0, 0, 0.16);

    overflow: hidden;
    isolation: isolate;
  }


  /* Mariposa grande de fondo */
  .asmayv1-hero-card::before {
    content: "";
    position: absolute;

    right: -48px;
    bottom: -58px;

    width: 185px;
    height: 185px;

    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.10;
    pointer-events: none;
  }


  /* Mariposa pequeña */
  .asmayv1-hero-card::after {
    left: 24px;
    top: 24px;

    width: 45px;
    height: 45px;

    opacity: 0.92;
  }


  .asmayv1-hero-card span {
    margin-top: auto;

    max-width: 190px;

    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 0.09em;
  }


  .asmayv1-hero-card strong {
    margin-top: 15px;

    font-size: 49px;
    line-height: 0.92;
    letter-spacing: -0.065em;

    white-space: nowrap;
  }

}