@font-face {
  font-family: "JV Display";
  src: url("../fonts/jv-display.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "JV Sans";
  src: url("../fonts/jv-sans.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "JV Sans";
  src: url("../fonts/jv-sans.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --jv-purple: #111111;
  --jv-purple-soft: #2c2c2c;
  --jv-charcoal: #101010;
  --jv-gray: #6a6a6a;
  --jv-line: #dedede;
  --jv-paper: #fff;
  --jv-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  --jv-radius: 4px;
  --jv-shell: 1260px;
  --jv-header-height: 92px;
}

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

html {
  scroll-behavior: smooth;
}

html.jv-anchor-scroll-lock {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  color: var(--jv-charcoal);
  background: linear-gradient(180deg, #fff 0%, #f6f6f6 52%, #fff 100%);
  font-family: "JV Sans", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.52;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-is-open {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--jv-purple);
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  font-family: "JV Display", "Avenir Next", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  color: var(--jv-purple);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

h2 {
  color: var(--jv-purple);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1.15em;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  color: #111;
  box-shadow: var(--jv-shadow);
}

.section-shell {
  width: min(calc(100% - 48px), var(--jv-shell));
  margin-inline: auto;
  padding-block: clamp(70px, 8vw, 125px);
}

.section-shell--narrow {
  max-width: 1080px;
}

.eyebrow,
.project-card__category,
.post-meta {
  color: var(--jv-gray);
  font-family: "JV Display", "Avenir Next", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 2px;
  background: #111;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: #303030;
  color: #fff;
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--jv-charcoal);
}

/* Cabecera */
.site-header {
  position: relative;
  z-index: 100;
  min-height: var(--jv-header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.site-header__inner {
  width: calc(100% - 40px);
  max-width: 1920px;
  min-height: var(--jv-header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.site-branding,
.site-logo-link,
.custom-logo-link {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.site-header .site-logo,
.site-header .custom-logo {
  width: min(29vw, 292px);
  height: auto;
  max-width: 292px;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}

.site-header__navigation {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav .menu,
.legal-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  position: relative;
  display: block;
  padding: 10px 0;
  color: var(--jv-charcoal);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--jv-purple);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--jv-purple);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--jv-purple);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--jv-purple);
  color: #fff;
  transform: translateY(-2px);
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-links svg rect,
.social-links svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.social-links svg .dot {
  fill: currentColor;
  stroke: none;
}

.social-links svg .play {
  fill: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--jv-charcoal);
  transition: transform 180ms ease, opacity 180ms ease;
}

/* Portada simplificada */
.home-hero {
  position: relative;
  height: clamp(540px, 66svh, 680px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111;
}

.home-hero__media,
.home-hero__shade {
  position: absolute;
  inset: 0;
}

.home-hero__media {
  display: flex;
  justify-content: center;
  background: #030303;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.home-hero__shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.56) 46%, rgba(0, 0, 0, 0.12) 78%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.66) 0%, transparent 50%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--jv-shell));
  margin-inline: auto;
  padding: clamp(52px, 7vw, 86px) 0;
  color: #fff;
}

.home-hero__content .eyebrow {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.74);
}

.home-hero__content h1 {
  max-width: 820px;
  margin-bottom: 0.2em;
  color: #fff;
  font-size: clamp(3.4rem, 7.2vw, 6.8rem);
  letter-spacing: -0.025em;
}

.home-hero__content > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.45;
}

.home-hero__intro span {
  display: block;
}

.home-hero__intro span + span {
  margin-top: 0.22em;
}

.home-hero__intro-secondary {
  color: #b8b4d6;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.home-hero__actions .button:not(.button--ghost) {
  background: #fff;
  color: #111;
}

.home-hero__actions .button:not(.button--ghost):hover,
.home-hero__actions .button:not(.button--ghost):focus-visible {
  background: #d8d8d8;
  color: #000;
}

.home-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.2vw, 28px);
  padding-block: clamp(36px, 5vw, 64px);
}

.home-path {
  position: relative;
  min-height: clamp(340px, 33vw, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--jv-radius);
  color: #fff;
  text-decoration: none;
}

.home-path img,
.home-path__media,
.home-path__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-path img,
.home-path__media {
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-path__media {
  pointer-events: none;
}

.home-path--video .home-path__media {
  object-position: 46% center;
}

.home-path--photo img {
  object-position: center 32%;
}

.home-path__shade {
  background: linear-gradient(to top, rgba(12, 10, 18, 0.76), rgba(12, 10, 18, 0.02) 62%);
}

.home-path__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 38px);
}

.home-path__copy small {
  margin-bottom: 6px;
  font-family: "JV Display", "Avenir Next", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-path__copy strong {
  font-family: "JV Display", "Avenir Next", sans-serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.95;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.home-path:hover,
.home-path:focus-visible {
  color: #fff;
}

.home-path:hover img,
.home-path:hover .home-path__media,
.home-path:focus-visible img,
.home-path:focus-visible .home-path__media {
  transform: scale(1.04);
}

.home-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(102, 94, 168, 0.22), transparent 32%),
    linear-gradient(135deg, #080808 0%, #181818 52%, #090909 100%);
  color: #fff;
}

.home-cta__inner {
  position: relative;
  max-width: 960px;
  padding-block: clamp(54px, 6vw, 76px);
  text-align: center;
}

.home-cta__inner h2 {
  max-width: 820px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  letter-spacing: -0.055em;
}

.home-cta__button {
  min-height: 46px;
  margin-top: 24px;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
}

.home-cta__button:hover,
.home-cta__button:focus-visible {
  background: #dedede;
  color: #000;
}

/* Portfolio por medio */
.medium-portfolio__header {
  max-width: 760px;
  margin-bottom: clamp(64px, 9vw, 110px);
}

.medium-portfolio__header h1 {
  margin-bottom: 0.2em;
  font-size: clamp(4rem, 11vw, 9rem);
  letter-spacing: -0.065em;
}

.medium-portfolio__header > p:last-child {
  max-width: 680px;
  color: #4f4d55;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.medium-portfolio {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100% - var(--jv-shell)) / 2));
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 242, 242, 0.74) 48%, rgba(255, 255, 255, 0.98));
}

.jv-photo-gallery {
  columns: 3;
  column-gap: clamp(12px, 1.8vw, 24px);
}

.jv-photo-gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 clamp(12px, 1.8vw, 24px);
  overflow: hidden;
  break-inside: avoid;
  border-radius: 3px;
  background: #e8e8e8;
  cursor: zoom-in;
}

.jv-photo-gallery__item img {
  width: 100%;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 300ms ease;
}

.jv-photo-gallery__item:hover img,
.jv-photo-gallery__item:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

body.lightbox-is-open {
  overflow: hidden;
}

.jv-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px 74px;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(10px);
}

.jv-lightbox[hidden] {
  display: none;
}

.jv-lightbox__image {
  max-width: min(94vw, 1700px);
  max-height: 92vh;
  object-fit: contain;
}

.jv-lightbox__close,
.jv-lightbox__nav {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.jv-lightbox__close {
  top: 18px;
  right: 22px;
  width: 48px;
  height: 48px;
  font-size: 2.4rem;
  line-height: 1;
}

.jv-lightbox__nav {
  top: 50%;
  width: 58px;
  height: 80px;
  font-size: 3.2rem;
  transform: translateY(-50%);
}

.jv-lightbox__nav--prev {
  left: 8px;
}

.jv-lightbox__nav--next {
  right: 8px;
}

.jv-lightbox__close:hover,
.jv-lightbox__close:focus-visible,
.jv-lightbox__nav:hover,
.jv-lightbox__nav:focus-visible {
  color: #c4bfec;
}

.portfolio-groups {
  display: grid;
  gap: clamp(78px, 11vw, 145px);
}

.portfolio-group > h2 {
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--jv-line);
  color: var(--jv-charcoal);
  font-size: clamp(1.75rem, 3.2vw, 2.8rem);
}

.portfolio-empty {
  padding: 30px 0;
  border-top: 1px solid var(--jv-line);
  border-bottom: 1px solid var(--jv-line);
  color: var(--jv-gray);
}

/* Portada anterior y tarjetas reutilizables */
.home-portfolio {
  padding-top: clamp(65px, 8vw, 118px);
}

.jv-portfolio--masonry {
  columns: 3;
  column-gap: clamp(22px, 3vw, 42px);
}

.jv-portfolio--masonry .project-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(22px, 3vw, 42px);
  break-inside: avoid;
}

.project-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--jv-radius);
  background: #efeff2;
}

.project-card--portrait .project-card__media {
  aspect-ratio: 4 / 5;
}

.project-card--square .project-card__media {
  aspect-ratio: 1 / 1;
}

.project-card--landscape .project-card__media {
  aspect-ratio: 16 / 9;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 350ms ease;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(20, 16, 28, 0.75), transparent 58%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 240ms ease;
}

.project-card a:hover .project-card__media img,
.project-card a:focus-visible .project-card__media img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.project-card a:hover .project-card__overlay,
.project-card a:focus-visible .project-card__overlay {
  opacity: 1;
}

.project-card__copy {
  padding-top: 16px;
}

.project-card__copy h2 {
  margin: 4px 0 0;
  color: var(--jv-charcoal);
  font-size: 1.12rem;
}

.project-grid,
.jv-portfolio--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 70px) clamp(22px, 3vw, 42px);
}

.archive-heading {
  margin-bottom: clamp(42px, 6vw, 74px);
}

.archive-heading h1 {
  margin-bottom: 0;
}

.project-archive .archive-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.navigation.pagination {
  margin-top: 70px;
  text-align: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.page-numbers {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--jv-line);
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: var(--jv-purple);
  background: var(--jv-purple);
  color: #fff;
}

/* Proyecto individual */
.single-project__header {
  max-width: 790px;
  margin-bottom: clamp(46px, 6vw, 70px);
}

.single-project__header h1 {
  font-size: clamp(2rem, 4vw, 3.75rem);
}

.single-project__intro {
  font-size: 1.05rem;
}

.single-project__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 42px);
  margin-bottom: clamp(42px, 6vw, 72px);
}

.single-project__gallery figure,
.single-project__hero,
.single-post-page__hero {
  margin: 0;
  overflow: hidden;
  border-radius: var(--jv-radius);
}

.single-project__gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.single-project__content {
  max-width: 840px;
  margin-top: 50px;
}

.project-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid var(--jv-line);
  font-weight: 700;
}

.project-navigation > div:last-child {
  text-align: right;
}

/* Vídeo */
.jv-video-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.jv-video-card__media {
  position: relative;
}

.jv-video-card .jv-video {
  border-radius: 3px;
  box-shadow: none;
}

.jv-video-card__description {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: -webkit-box;
  margin: 0;
  padding: 48px 18px 15px;
  overflow: hidden;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), transparent);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px);
  transition: opacity 220ms ease, transform 220ms ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.jv-video-card:hover .jv-video-card__description,
.jv-video-card:focus-within .jv-video-card__description {
  opacity: 1;
  transform: translateY(0);
}

.jv-video-card.is-playing .jv-video-card__description {
  opacity: 0;
}

.jv-video {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--jv-radius);
  background: #111;
  aspect-ratio: 16 / 9;
  box-shadow: var(--jv-shadow);
}

.jv-video__poster,
.jv-video iframe,
.jv-video video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.jv-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.jv-video__play svg rect {
  fill: #ff0033;
}

.jv-video__play svg path {
  fill: #fff;
}

.jv-video__play:hover,
.jv-video__play:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Sobre mí */
body.javalooya-about-page .site-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fafafa;
}

body.javalooya-about-page .site-main::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("../demo/about-park.webp") center 46% / cover no-repeat;
  content: "";
  opacity: 0.075;
  pointer-events: none;
}

body.javalooya-about-page .site-main > * {
  position: relative;
  z-index: 1;
}

.about-intro {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: center;
  gap: clamp(38px, 4.5vw, 72px);
}

@media (min-width: 761px) {
  .about-page.section-shell {
    width: min(calc(100% - 48px), 1400px);
  }
}

.about-intro__copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.about-intro__copy {
  width: 100%;
  max-width: 610px;
}

.about-intro__copy .entry-content {
  max-width: 58ch;
  line-height: 1.58;
}

.about-intro__copy .entry-content p {
  margin-bottom: 1em;
}

.about-intro__copy .entry-content p:last-child {
  margin-bottom: 0;
}

.about-intro__image {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: var(--jv-radius);
  background: #e8e7e4;
  touch-action: pan-y;
  user-select: none;
}

.about-carousel__viewport,
.about-carousel__slide {
  position: absolute;
  inset: 0;
}

.about-carousel__viewport {
  overflow: hidden;
}

.about-carousel__slide {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s cubic-bezier(0.42, 0, 0.28, 1);
}

.about-carousel__slide.is-active {
  z-index: 1;
  opacity: 1;
}

.about-carousel__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--about-position, 50% 50%);
  pointer-events: none;
  transform: none;
}

.about-carousel__control {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(22, 20, 24, 0.32);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.42;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.about-carousel__control--previous {
  left: 12px;
}

.about-carousel__control--next {
  right: 12px;
}

.about-carousel:hover .about-carousel__control,
.about-carousel__control:focus-visible {
  background: rgba(22, 20, 24, 0.48);
  opacity: 0.88;
}

.about-carousel__control:active {
  transform: translateY(-50%) scale(0.94);
}

.about-intro__reviews {
  margin: clamp(22px, 3vw, 30px) 0 0;
}

.about-intro__reviews a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(27, 25, 31, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--jv-charcoal);
  font-size: 0.86rem;
  letter-spacing: 0.025em;
  line-height: 1;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.about-intro__reviews a:hover,
.about-intro__reviews a:focus-visible {
  border-color: var(--jv-purple);
  background: rgba(65, 49, 146, 0.07);
  color: var(--jv-purple);
}

.about-section {
  margin-top: clamp(70px, 9vw, 125px);
}

.about-section > h2 {
  margin-bottom: 32px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 36px);
}

.info-card {
  min-height: 230px;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid rgba(65, 49, 146, 0.06);
  background: #fff;
  box-shadow: var(--jv-shadow);
}

.info-card__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--jv-purple);
  font-size: 1.35rem;
}

.info-card h3 {
  margin-bottom: 0.35em;
}

.info-card p {
  margin: 0;
}

.faq-list {
  border-top: 1px solid var(--jv-charcoal);
}

.faq-list details {
  border-bottom: 1px solid var(--jv-charcoal);
}

.faq-list summary {
  position: relative;
  padding: 20px 48px 20px 0;
  list-style: none;
  font-weight: 700;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--jv-purple);
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 1000px;
  padding: 0 48px 20px 0;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px 32px;
}

.blog-card {
  border: 1px solid var(--jv-line);
  background: #fff;
  box-shadow: 0 14px 32px rgba(34, 30, 50, 0.07);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.blog-card:hover {
  box-shadow: var(--jv-shadow);
  transform: translateY(-4px);
}

.blog-card a {
  display: block;
  text-decoration: none;
}

.blog-card__image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__copy {
  padding: 26px;
}

.blog-card h2 {
  color: var(--jv-purple);
  font-size: 1.45rem;
}

.blog-card p:last-child {
  margin-bottom: 0;
  color: var(--jv-charcoal);
}

.single-post-page__hero {
  margin-bottom: 34px;
}

.single-post-page__hero img {
  width: 100%;
  max-height: 660px;
  object-fit: cover;
}

.single-post-page__header h1 {
  margin-bottom: 0.25em;
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
}

.post-meta a {
  color: inherit;
}

.entry-content {
  font-size: 1.03rem;
}

.entry-content > * {
  max-width: 900px;
}

.entry-content > .alignwide {
  max-width: 1180px;
}

.entry-content > .alignfull {
  max-width: none;
}

.entry-content blockquote {
  margin: 2em 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 4px solid var(--jv-purple);
  color: #46434b;
  font-size: 1.25rem;
}

.standard-page > header {
  margin-bottom: 40px;
}

.not-found {
  min-height: 58vh;
}

/* Pie */
.site-footer {
  padding: clamp(48px, 5vw, 62px) 0 24px;
  background: linear-gradient(135deg, #050505 0%, #171717 58%, #2a2a2a 100%);
  color: #fff;
}

.site-footer__inner,
.site-footer__bottom,
.site-footer__rule {
  width: calc(100% - 40px);
  max-width: 1920px;
  margin-inline: auto;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) minmax(190px, 0.8fr) minmax(110px, 0.5fr) minmax(190px, 0.85fr);
  align-items: start;
  gap: clamp(24px, 3vw, 44px);
}

.site-footer .site-logo {
  width: min(100%, 300px);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__column strong,
.site-footer__about-link {
  font-size: 1.05rem;
}

.site-footer__column p,
.site-footer__column a {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer__column a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__about-link {
  margin-top: 0 !important;
  font-weight: 700;
}

.site-footer__availability-copy {
  margin: 0 !important;
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.site-footer__availability-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 12px !important;
  padding: 0.48rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.15;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-footer__availability-link:hover,
.site-footer__availability-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.11);
  text-decoration: none !important;
}

.site-footer__rule {
  height: 1px;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.34);
}

.site-footer__bottom {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer .legal-menu {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.site-footer .legal-menu a {
  color: #fff;
}

.site-footer__social {
  display: none;
}

.whatsapp-button {
  position: fixed;
  z-index: 90;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #21c063;
  color: #fff;
  box-shadow: 0 8px 22px rgba(23, 32, 26, 0.24);
  transition: transform 180ms ease;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

.whatsapp-button svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

/* Galerías editoriales de Foto y Vídeo */
.media-portfolio {
  min-height: 56vh;
  padding: clamp(14px, 2.2vw, 32px);
  background: #fff;
}

.media-gallery {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
}

.media-gallery--empty {
  min-height: 48vh;
}

.media-gallery__toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  margin-bottom: clamp(10px, 1.5vw, 22px);
}

.media-gallery__toolbar[hidden] {
  display: none;
}

.media-gallery__all {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #303030;
  cursor: pointer;
  font-family: "JV Sans", "Avenir Next", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.media-gallery__all:hover,
.media-gallery__all:focus-visible {
  color: #000;
}

.media-gallery__floating-nav {
  position: fixed;
  z-index: 80;
  left: calc(11px + env(safe-area-inset-left, 0px));
  bottom: calc(15px + env(safe-area-inset-bottom, 0px));
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms cubic-bezier(0.2, 0.72, 0.2, 1), visibility 0s linear 300ms;
}

.media-gallery__floating-nav.is-visible {
  opacity: 0.82;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.media-gallery__floating-nav-surface {
  min-width: 34px;
  max-width: 100%;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(57, 58, 62, 0.56);
  box-shadow: 0 3px 12px rgba(18, 18, 20, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 180ms ease, border-color 180ms ease;
}

.media-gallery__floating-nav-icon {
  width: 17px;
  height: 17px;
  display: block;
}

.media-gallery__floating-nav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-gallery__floating-nav-label {
  display: none;
  font-family: "JV Sans", "Avenir Next", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
}

.media-gallery__floating-nav-separator,
.media-gallery__floating-nav-category {
  display: none;
  font-family: "JV Sans", "Avenir Next", Arial, sans-serif;
  line-height: 1;
  white-space: nowrap;
}

.media-gallery__floating-nav.is-category-action {
  width: auto;
  max-width: calc(100vw - 96px);
}

.media-gallery__floating-nav.is-category-action .media-gallery__floating-nav-surface {
  padding-inline: 12px;
  border-radius: 999px;
}

.media-gallery__floating-nav.is-category-action .media-gallery__floating-nav-icon {
  display: none;
}

.media-gallery__floating-nav.is-category-action .media-gallery__floating-nav-label {
  display: block;
  opacity: 0.78;
}

.media-gallery__floating-nav.is-category-action .media-gallery__floating-nav-separator {
  display: block;
  margin-inline: 7px;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.52;
}

.media-gallery__floating-nav.is-category-action .media-gallery__floating-nav-category {
  min-width: 0;
  display: block;
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  opacity: 0.98;
}

.media-gallery__floating-nav:hover,
.media-gallery__floating-nav:focus-visible {
  opacity: 0.96;
}

.media-gallery__floating-nav:hover .media-gallery__floating-nav-surface,
.media-gallery__floating-nav:focus-visible .media-gallery__floating-nav-surface {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(47, 48, 52, 0.66);
}

.media-gallery__floating-nav:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.76);
  outline-offset: 1px;
}

.lightbox-is-open .media-gallery__floating-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.media-gallery__filters {
  position: sticky;
  z-index: 70;
  top: 0;
  margin-bottom: clamp(12px, 1.7vw, 24px);
  padding: clamp(11px, 1.2vw, 16px) 0 9px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-bar .media-gallery__filters {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.media-gallery__filter-scroll {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(18px, 2.5vw, 38px);
  overflow: visible;
  padding: 0 2px 3px;
}

.media-gallery__filter-break {
  display: none;
}

.media-gallery__filter {
  position: relative;
  flex: 0 0 auto;
  padding: 5px 0 9px;
  border: 0;
  background: transparent;
  color: rgba(23, 23, 23, 0.66);
  cursor: pointer;
  font-family: "JV Sans", "Avenir Next", Arial, sans-serif;
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 220ms ease;
}

.media-gallery__filter::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.media-gallery__filter:hover,
.media-gallery__filter:focus-visible,
.media-gallery__filter.is-active {
  color: #171717;
}

.media-gallery__filter.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.media-gallery__filter:focus-visible {
  outline: 1px solid rgba(23, 23, 23, 0.38);
  outline-offset: 4px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 22px);
  align-items: stretch;
}

.media-gallery--foto .media-grid {
  position: relative;
  display: block;
  min-height: 1px;
  transition: height 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.media-gallery--foto {
  overflow-x: clip;
}

.media-gallery--video {
  position: relative;
}

.media-gallery--foto .media-grid:not(.is-layout-ready) .media-card {
  transition: none;
}

.media-card {
  position: relative;
  width: 100%;
  min-width: 0;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: #ececec;
  color: #fff;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 450ms cubic-bezier(0.2, 0.72, 0.2, 1), transform 450ms cubic-bezier(0.2, 0.72, 0.2, 1), filter 240ms ease, translate 450ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.media-card.is-reveal-pending {
  opacity: 0;
  pointer-events: none;
  translate: 0 8px;
}

.media-card.is-revealed {
  translate: 0 0;
}

.media-card--photo.is-reveal-pending,
.media-card--photo.is-revealed {
  transition: opacity 800ms ease, transform 450ms cubic-bezier(0.2, 0.72, 0.2, 1), filter 240ms ease, translate 800ms ease;
}

.media-card--photo.is-reveal-pending {
  translate: 0 25px;
}

.media-card[hidden] {
  display: none;
}

.media-card.is-leaving {
  opacity: 0;
}

.media-card.is-filter-entering {
  opacity: 0;
}

.media-card--photo {
  position: absolute;
  top: 0;
  left: 0;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  will-change: transform, opacity;
}

.media-card--photo.is-anchor-card {
  z-index: 4;
  transition: opacity 170ms ease, transform 390ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.media-gallery--foto.is-filter-relocating .media-card--photo:not(.is-anchor-card) {
  opacity: 0.18;
  translate: 0 4px;
}

.media-gallery--foto.is-filter-relocating .media-card--photo.is-filter-entering:not(.is-anchor-card) {
  opacity: 0;
}

.media-gallery--foto.is-filter-relocating .media-card--photo,
.media-gallery--video.is-filter-relocating .media-card--video {
  transition: opacity 390ms cubic-bezier(0.2, 0.72, 0.2, 1), transform 390ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 240ms ease, translate 390ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.media-gallery--video.is-filter-fading-out .media-card--video {
  opacity: 0.12;
  translate: 0 4px;
}

.media-gallery--video .media-card--video.is-filter-entering {
  opacity: 0;
  translate: 0 4px;
}

.media-gallery--foto.has-anchor-ghost .media-card--photo.is-anchor-card {
  opacity: 0;
}

.media-card--anchor-ghost {
  position: fixed !important;
  z-index: 9998 !important;
  inset: auto !important;
  margin: 0 !important;
  overflow: hidden !important;
  opacity: 1;
  pointer-events: none !important;
  translate: none !important;
  transform: none !important;
  transition: none;
  will-change: top, left, width, height, opacity;
}

.media-card--anchor-ghost > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.media-card--video {
  aspect-ratio: 16 / 9;
  background: #111;
}

.media-card.is-unavailable {
  cursor: default;
}

.media-card > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: none;
  transition: transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1), filter 300ms ease;
}

.media-card--photo > img {
  width: 100%;
  height: auto;
  object-fit: initial;
}

.media-card--video > img {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: var(--jv-video-poster-position, 50% 50%);
  transform: scale(var(--jv-video-poster-scale, 1));
  transform-origin: var(--jv-video-poster-position, 50% 50%);
}

.media-card__preview {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #080808;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.media-card__preview iframe,
.media-card__preview video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
  pointer-events: none;
}

.media-card.is-previewing .media-card__preview {
  opacity: 1;
}

.media-card__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: clamp(42px, 5vw, 62px);
  height: clamp(42px, 5vw, 62px);
  color: #fff;
  filter: drop-shadow(0 5px 18px rgba(0, 0, 0, 0.32));
  opacity: 0.9;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 220ms ease;
}

.media-card.is-previewing .media-card__play {
  opacity: 0;
}

.media-card__play svg {
  width: 100%;
  height: 100%;
}

.media-card__play circle {
  fill: rgba(15, 15, 15, 0.58);
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.4;
}

.media-card__play path {
  fill: currentColor;
}

@media (hover: hover) {
  .media-card--video:not(.is-unavailable):hover > img,
  .media-card--video:not(.is-unavailable):focus-visible > img {
    transform: scale(var(--jv-video-poster-hover-scale, 1.018));
  }

  .media-card--video:hover .media-card__play,
  .media-card--video:focus-visible .media-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.055);
  }

}

.lightbox-is-open {
  overflow: hidden;
}

.jv-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 64px);
  background: linear-gradient(135deg, rgba(24, 24, 26, 0.66), rgba(20, 20, 22, 0.58));
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.jv-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.jv-lightbox__close,
.jv-lightbox__previous,
.jv-lightbox__next {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-weight: 300;
}

.jv-lightbox__close:hover,
.jv-lightbox__close:focus-visible {
  background: rgba(20, 20, 22, 0.42);
}

.jv-lightbox__close {
  z-index: 4;
  top: 12px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.38rem;
  line-height: 1;
  transition: background 180ms ease;
}

.jv-lightbox__previous,
.jv-lightbox__next {
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 50%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.jv-lightbox__previous {
  left: 0;
}

.jv-lightbox__next {
  right: 0;
}

.jv-lightbox__previous span,
.jv-lightbox__next span {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(20, 20, 22, 0.2);
  font-size: 1.05rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 180ms ease, border-color 180ms ease;
}

.jv-lightbox__previous span {
  left: clamp(12px, 1.5vw, 24px);
}

.jv-lightbox__next span {
  right: clamp(12px, 1.5vw, 24px);
}

.jv-lightbox__previous:hover span,
.jv-lightbox__previous:focus-visible span,
.jv-lightbox__next:hover span,
.jv-lightbox__next:focus-visible span {
  border-color: #fff;
  background: rgba(20, 20, 22, 0.48);
}

.jv-lightbox__photo-stage {
  position: relative;
  z-index: 2;
  isolation: isolate;
  contain: layout paint;
  width: min(86vw, 1480px);
  height: min(88vh, 1040px);
  pointer-events: none;
}

.jv-lightbox__photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: none;
  will-change: opacity;
}

/* Prevent invisible, previously loaded photos from catching gallery clicks. */
.jv-lightbox:not(.is-open) .jv-lightbox__photo {
  pointer-events: none;
}

.jv-lightbox__photo.is-active {
  z-index: 1;
  opacity: 1;
}

.jv-lightbox__photo.is-entering {
  z-index: 2;
  opacity: 0;
  transition: opacity 560ms cubic-bezier(0.4, 0, 0.2, 1);
}

.jv-lightbox__photo.is-entering.is-visible {
  opacity: 1;
}

.jv-lightbox__photo.is-leaving {
  z-index: 1;
  opacity: 1;
  transition: opacity 560ms cubic-bezier(0.4, 0, 0.2, 1);
}

.jv-lightbox__photo.is-leaving.is-faded {
  opacity: 0;
}

.jv-lightbox__video-content {
  position: relative;
  z-index: 2;
  width: min(88vw, 1380px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.jv-lightbox__video-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #080808;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.jv-lightbox__video-stage iframe,
.jv-lightbox__video-stage video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
}

.jv-lightbox__full-story {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #fff;
  font-size: clamp(0.7rem, 0.8vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.84;
  transition: opacity 180ms ease, transform 180ms ease;
}

.jv-lightbox__full-story:hover,
.jv-lightbox__full-story:focus-visible {
  opacity: 1;
  transform: translateX(3px);
}

/* Portada en escritorio: conserva un indicio del siguiente bloque para invitar al scroll. */
@media (min-width: 1041px) {
  .home-hero {
    height: max(540px, calc(100svh - var(--jv-header-height) - clamp(70px, 9svh, 110px)));
  }

  .home-hero__media img {
    object-position: center 30%;
  }

  .media-portfolio--photo {
    padding-inline: clamp(14px, 1.4vw, 24px);
  }

  .media-gallery--foto {
    max-width: 1840px;
  }
}

@media (min-width: 1041px) and (min-aspect-ratio: 2/1) {
  .home-hero__media img {
    object-position: center 20%;
  }
}

/* Tablets */
@media (max-width: 1040px) {
  :root {
    --jv-header-height: 80px;
  }

.site-header .site-logo,
  .site-header .custom-logo {
    width: min(32vw, 250px);
    max-width: 250px;
    max-height: 62px;
  }

  .site-header__navigation {
    gap: 22px;
  }

  .home-hero__media img {
    width: 100%;
    object-position: center 34%;
    transform: scale(1.06);
    transform-origin: 52% 50%;
  }

  .home-hero {
    height: clamp(500px, 62svh, 590px);
  }

  .home-hero__content {
    padding: 48px 0;
  }

  .home-paths {
    gap: 18px;
    padding-block: 40px;
  }

  .home-path {
    min-height: 330px;
  }

  .primary-nav .menu {
    gap: 22px;
  }

  .site-header__social {
    display: none;
  }

  .jv-portfolio--masonry {
    column-gap: 24px;
  }

  .project-grid,
  .jv-portfolio--grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .jv-photo-gallery {
    columns: 2;
  }

  .jv-video-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .jv-video-card__description,
  .jv-video-card:hover .jv-video-card__description,
  .jv-video-card:focus-within .jv-video-card__description,
  .jv-video-card.is-playing .jv-video-card__description {
    position: static;
    margin: 0;
    padding: 9px 2px 0;
    background: none;
    color: #4b4b4b;
    font-size: 0.76rem;
    line-height: 1.32;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .home-hero {
    height: max(520px, calc(100vh - var(--jv-header-height) - 92px));
    height: max(520px, calc(100svh - var(--jv-header-height) - 92px));
  }

  .home-hero__content {
    padding: 46px 0;
  }

  body.javalooya-about-page .about-page.section-shell {
    min-height: calc(100vh - var(--jv-header-height));
    min-height: calc(100svh - var(--jv-header-height));
    display: grid;
    align-content: center;
  }

  .media-gallery__filter-scroll {
    justify-content: center;
    gap: clamp(14px, 2.2vw, 24px);
  }

  .site-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 28px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-header__inner {
    gap: 24px;
  }

  .site-header .site-logo,
  .site-header .custom-logo {
    width: min(27vw, 220px);
    max-width: 220px;
  }

  .site-header__navigation {
    gap: 16px;
  }

  .primary-nav .menu {
    gap: 18px;
  }

  .site-header__social {
    display: flex;
    gap: 8px;
  }

  .site-header__social a {
    width: 40px;
    height: 40px;
  }

  .site-header__social svg {
    width: 19px;
    height: 19px;
  }
}

/* Móvil */
@media (max-width: 760px) {
  :root {
    --jv-header-height: 62px;
  }

  body {
    font-size: 16px;
  }

  .section-shell {
    width: min(calc(100% - 32px), var(--jv-shell));
    padding-block: 58px;
  }

  .home-hero {
    height: clamp(479px, calc(88svh - 56px), 735px);
  }

  body.admin-bar .home-hero {
    height: clamp(433px, calc(88svh - 102px), 689px);
  }

  .home-hero__media img {
    object-position: center 32%;
    transform: scale(1.13);
    transform-origin: 52% 60%;
  }

  .home-hero__shade {
    background:
      linear-gradient(0deg, rgba(10, 9, 15, 0.91) 0%, rgba(10, 9, 15, 0.58) 60%, rgba(10, 9, 15, 0.2) 100%);
  }

  .home-hero__content {
    width: calc(100% - 32px);
    padding: 36px 0 28px;
  }

  .home-hero__content .eyebrow {
    margin-bottom: 8px;
    font-size: 0.7rem;
  }

  .home-hero__content h1 {
    max-width: 330px;
    font-size: clamp(2.75rem, 13vw, 3.55rem);
  }

  .home-hero__content > p:not(.eyebrow) {
    max-width: 350px;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .home-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-block: 18px 26px;
  }

  .home-path {
    min-height: 210px;
  }

  .home-path__copy {
    padding: 16px 12px;
  }

  .home-path__copy small {
    min-height: 2.4em;
    display: flex;
    align-items: flex-end;
    margin-bottom: 4px;
    font-size: clamp(0.52rem, 2.2vw, 0.62rem);
    letter-spacing: 0.07em;
    line-height: 1.2;
  }

  .home-path__copy strong {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .home-path--video .home-path__media {
    object-position: 44% center;
  }

  .site-header__inner {
    width: calc(100% - 28px);
  }

  .site-header .site-logo,
  .site-header .custom-logo {
    width: min(58vw, 184px);
    height: auto;
    max-width: 184px;
    max-height: 46px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-is-open .menu-toggle > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-is-open .menu-toggle > span:nth-child(2) {
    opacity: 0;
  }

  .menu-is-open .menu-toggle > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header__navigation {
    position: fixed;
    z-index: -1;
    top: var(--jv-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 38px 24px;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .menu-is-open .site-header__navigation {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav .menu {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .primary-nav a {
    font-size: 1.5rem;
  }

  .site-header__social {
    display: flex;
  }

  .jv-portfolio--masonry {
    columns: 1;
  }

  .jv-photo-gallery {
    columns: 2;
    column-gap: 10px;
  }

  .jv-photo-gallery__item {
    margin-bottom: 10px;
  }

  .jv-video-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .jv-video__play {
    width: 54px;
  }

  .jv-lightbox {
    padding: 48px 12px 28px;
  }

  .jv-lightbox__image {
    max-width: 100%;
    max-height: 84vh;
  }

  .jv-lightbox__nav {
    width: 42px;
    height: 64px;
    background: rgba(0, 0, 0, 0.28);
    font-size: 2.5rem;
  }

  .jv-portfolio--masonry .project-card {
    margin-bottom: 24px;
  }

  .project-grid,
  .jv-portfolio--grid,
  .blog-grid,
  .service-grid,
  .single-project__gallery,
  .about-intro {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .jv-portfolio--grid {
    gap: 38px;
  }

  .project-archive .archive-heading {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .single-project__gallery {
    gap: 16px;
  }

  .single-project__gallery img {
    aspect-ratio: 4 / 5;
  }

  .about-intro__image {
    grid-row: 1;
  }

  .about-intro__copy {
    grid-row: 2;
    max-width: none;
  }

  .about-intro {
    gap: 30px;
  }

  .about-intro__copy h1 {
    margin-bottom: 0.45em;
  }

  .about-intro__copy .entry-content {
    max-width: none;
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .about-intro__copy .entry-content p {
    margin-bottom: 0.9em;
  }

  .about-carousel__image {
    object-position: var(--about-position-mobile, var(--about-position, 50% 50%));
  }

  .about-carousel__control {
    width: 38px;
    height: 38px;
    font-size: 1.85rem;
    opacity: 0.36;
  }

  .about-carousel__control--previous {
    left: 8px;
  }

  .about-carousel__control--next {
    right: 8px;
  }

  .about-intro__reviews {
    margin-top: 18px;
  }

  .about-intro__reviews a {
    min-height: 36px;
    padding: 0.46rem 0.78rem;
    font-size: 0.82rem;
  }

  .info-card {
    min-height: auto;
  }

  .project-navigation {
    grid-template-columns: 1fr;
  }

  .project-navigation > div:last-child {
    text-align: left;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer__inner,
  .site-footer__bottom,
  .site-footer__rule {
    width: calc(100% - 32px);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
  }

  .site-footer {
    padding: 48px 0 22px;
  }

  .site-footer .site-logo {
    width: min(100%, 220px);
  }

  .site-footer__rule {
    margin-top: 28px;
  }

  .site-footer__about-link {
    margin-top: 0 !important;
  }

  .site-footer__availability-link {
    min-height: 36px;
    margin-top: 9px !important;
    padding: 0.42rem 0.78rem;
  }

  .home-cta__inner {
    padding-block: 42px;
  }

  .home-cta__inner h2 {
    font-size: clamp(2.05rem, 10vw, 2.8rem);
    line-height: 1.04;
  }

  .home-cta__button {
    margin-top: 18px;
  }

  .whatsapp-button {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
  }

  .whatsapp-button svg {
    width: 29px;
    height: 29px;
  }

  .media-portfolio {
    padding: 8px;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .media-gallery__toolbar {
    min-height: 42px;
    margin-bottom: 8px;
  }

  .media-gallery__floating-nav.is-category-action {
    max-width: calc(100vw - 82px);
    padding-inline: 5px;
  }

  .media-gallery__floating-nav.is-category-action .media-gallery__floating-nav-surface {
    padding-inline: 10px;
  }

  .media-gallery__floating-nav-label {
    font-size: 0.66rem;
    letter-spacing: 0.005em;
  }

  .media-gallery__floating-nav.is-category-action .media-gallery__floating-nav-separator {
    margin-inline: 5px;
    font-size: 0.66rem;
  }

  .media-gallery__floating-nav.is-category-action .media-gallery__floating-nav-category {
    font-size: 0.69rem;
    letter-spacing: 0.01em;
  }

  .media-gallery__filters {
    margin-bottom: 8px;
    padding: 8px 0 5px;
  }

  .media-gallery__filter-scroll {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(5px, 1.5vw, 8px);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    padding: 0 0 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .media-gallery__filter-scroll::-webkit-scrollbar {
    display: none;
  }

  .media-gallery__filter-break {
    display: none;
  }

  .media-gallery__filter {
    min-width: 0;
    min-height: 40px;
    padding: 10px 0 9px;
    font-size: clamp(0.68rem, 2.7vw, 0.72rem);
    letter-spacing: 0.005em;
  }

  .jv-lightbox {
    padding: 12px;
  }

  .jv-lightbox__photo-stage {
    width: 100%;
    height: 88vh;
  }

  .jv-lightbox__previous,
  .jv-lightbox__next {
    z-index: 3;
    top: auto;
    bottom: 18px;
    width: 46px;
    height: 46px;
    background: transparent;
    transform: none;
  }

  .jv-lightbox__previous span,
  .jv-lightbox__next span {
    position: static;
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    transform: none;
  }

  .jv-lightbox__previous {
    left: calc(50% - 58px);
  }

  .jv-lightbox__next {
    right: calc(50% - 58px);
  }

  .jv-lightbox__video-stage {
    width: 100%;
  }

  .jv-lightbox__video-content {
    width: 100%;
    gap: 10px;
  }
}

/* Controles unificados de la visualización ampliada: anterior, cerrar, siguiente. */
.jv-lightbox--foto,
.jv-lightbox--video {
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: clamp(10px, 1.7vh, 18px);
  padding-bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
}

.jv-lightbox--foto {
  --jv-lightbox-content-width: min(86vw, 1480px);
}

.jv-lightbox--video {
  --jv-lightbox-content-width: min(88vw, 1380px, calc(177.778dvh - 330px));
}

.jv-lightbox--foto .jv-lightbox__photo-stage,
.jv-lightbox--video .jv-lightbox__video-content {
  grid-row: 1;
  align-self: center;
  min-height: 0;
  max-height: 100%;
}

.jv-lightbox--foto .jv-lightbox__photo-stage {
  width: var(--jv-lightbox-content-width);
  height: min(82dvh, calc(100dvh - 118px), 1040px);
  pointer-events: none;
}

.jv-lightbox--foto.is-open .jv-lightbox__photo-stage {
  pointer-events: auto;
}

.jv-lightbox--video .jv-lightbox__video-content {
  width: var(--jv-lightbox-content-width);
}

.jv-lightbox__controls {
  position: relative;
  z-index: 5;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 28px);
  min-height: 48px;
}

.jv-lightbox__controls .jv-lightbox__previous,
.jv-lightbox__controls .jv-lightbox__close,
.jv-lightbox__controls .jv-lightbox__next {
  position: relative;
  z-index: auto;
  inset: auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: none;
}

.jv-lightbox__controls .jv-lightbox__previous span,
.jv-lightbox__controls .jv-lightbox__next span,
.jv-lightbox__controls .jv-lightbox__close span {
  position: static;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(20, 20, 22, 0.2);
  line-height: 1;
  transform: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.jv-lightbox__controls .jv-lightbox__previous span,
.jv-lightbox__controls .jv-lightbox__next span {
  width: 44px;
  height: 44px;
  font-size: 1.08rem;
}

.jv-lightbox__controls .jv-lightbox__close {
  font-size: inherit;
}

.jv-lightbox__controls .jv-lightbox__close span {
  width: 38px;
  height: 38px;
  font-size: 1rem;
}

.jv-lightbox__controls .jv-lightbox__previous:hover span,
.jv-lightbox__controls .jv-lightbox__previous:focus-visible span,
.jv-lightbox__controls .jv-lightbox__next:hover span,
.jv-lightbox__controls .jv-lightbox__next:focus-visible span,
.jv-lightbox__controls .jv-lightbox__close:hover span,
.jv-lightbox__controls .jv-lightbox__close:focus-visible span {
  border-color: #fff;
  background: rgba(20, 20, 22, 0.48);
}

.jv-lightbox__controls .jv-lightbox__previous:focus-visible,
.jv-lightbox__controls .jv-lightbox__close:focus-visible,
.jv-lightbox__controls .jv-lightbox__next:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.88);
  outline-offset: 2px;
}

.jv-lightbox__side-zone {
  display: none;
}

@media (min-width: 1041px) and (hover: hover) and (pointer: fine) {
  .jv-lightbox__side-zone {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    display: block;
    cursor: pointer;
  }

  .jv-lightbox--foto .jv-lightbox__side-zone,
  .jv-lightbox--video .jv-lightbox__side-zone {
    width: max(0px, calc((100vw - var(--jv-lightbox-content-width)) / 2));
  }

  .jv-lightbox__side-zone--previous {
    left: 0;
  }

  .jv-lightbox__side-zone--next {
    right: 0;
  }
}

@media (max-width: 760px) {
  .jv-lightbox--foto,
  .jv-lightbox--video {
    row-gap: 8px;
    padding: 12px 12px max(12px, calc(env(safe-area-inset-bottom) + 8px));
  }

  .jv-lightbox--foto .jv-lightbox__photo-stage {
    width: 100%;
    height: min(82dvh, calc(100dvh - 80px));
  }

  .jv-lightbox--video .jv-lightbox__video-content {
    width: 100%;
  }

  .jv-lightbox__controls {
    gap: 16px;
  }
}

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