@charset "UTF-8";
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --black: #ebebeb;
      --white: #030303;
      --gray-100: #111111;
      --gray-300: #1e1e1e;
      --gray-500: #888888;
      --gray-700: #bbbbbb;
      --font: 'Space Grotesk', system-ui, sans-serif;
    }

    html { scroll-behavior: smooth; }

    #servicios, #portfolio, #alquiler, #contacto {
      scroll-margin-top: 130px;
    }

    body {
      font-family: var(--font);
      background: var(--white);
      color: var(--black);
      -webkit-font-smoothing: antialiased;
    }

    /* ─── NAV ─── */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 62px;
      height: 130px;
      background: transparent;
      backdrop-filter: none;
      border-bottom: 1px solid transparent;
      transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
    }
    nav.nav--scrolled {
      background: rgba(3,3,3,0.96);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid #141414;
    }

    .logo {
      text-decoration: none;
      display: flex;
      align-items: center;
    }
    .logo img {
      height: 114px;
      width: auto;
      display: block;
      filter: invert(1);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 36px;
      list-style: none;
    }
    .nav-links a {
      font-size: 15px;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--gray-500);
      text-decoration: none;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--black); }

    .nav-cta {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .nav-wa {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 15px;
      font-weight: 500;
      letter-spacing: 0.08em;
      color: var(--black);
      text-decoration: none;
      border: 1px solid #2e2e2e;
      padding: 10px 20px;
      border-radius: 4px;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .nav-wa:hover { background: var(--black); color: var(--white); border-color: var(--black); }
    .nav-wa svg { width: 14px; height: 14px; }

    .nav-social {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .nav-social a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border: 1px solid #1e1e1e;
      border-radius: 4px;
      color: var(--gray-500);
      text-decoration: none;
      transition: border-color 0.2s, color 0.2s;
    }
    .nav-social a:hover { border-color: #444; color: var(--black); }
    .nav-social svg { width: 15px; height: 15px; }

    /* ─── NAV transparente sobre hero ─── */
    nav:not(.nav--scrolled) .nav-links a {
      color: rgba(235,235,235,0.6);
    }
    nav:not(.nav--scrolled) .nav-links a:hover {
      color: #ffffff;
    }
    nav:not(.nav--scrolled) .nav-wa {
      color: rgba(235,235,235,0.85);
      border-color: rgba(235,235,235,0.3);
    }
    nav:not(.nav--scrolled) .nav-wa:hover {
      background: rgba(235,235,235,0.12);
      color: #ffffff;
      border-color: rgba(235,235,235,0.6);
    }
    nav:not(.nav--scrolled) .nav-social a {
      border-color: rgba(235,235,235,0.25);
      color: rgba(235,235,235,0.6);
    }
    nav:not(.nav--scrolled) .nav-social a:hover {
      border-color: rgba(235,235,235,0.6);
      color: #ffffff;
    }

    /* ─── HERO CARRUSEL ─── */
    .hero-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;
    }
    .hero-bg-slide {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      opacity: 0;
      transition: opacity 1.8s ease-in-out;
    }
    .hero-bg-slide.active { opacity: 1; }
    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(3,3,3,0.82) 0%,
        rgba(3,3,3,0.55) 18%,
        rgba(3,3,3,0.35) 45%,
        rgba(3,3,3,0.60) 75%,
        rgba(3,3,3,0.85) 100%
      );
      z-index: 1;
    }
    /* ─── HERO ─── */
    .hero {
      min-height: 100vh;
      padding-top: 130px;
      padding-bottom: 135px;
      padding-left: 8%;
      padding-right: 8%;
      display: flex;
      align-items: flex-end;
      background: #030303;
      border-bottom: 1px solid #111;
      position: relative;
    }

    .hero-inner {
      position: relative;
      z-index: 2;
      width: 100%;
    }

    .hero-label {
      font-size: 11px;
      font-weight: 400;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: #ebebeb;
      margin-bottom: 40px;
    }

    .hero-title {
      font-size: clamp(72px, 10vw, 160px);
      font-weight: 700;
      letter-spacing: -0.035em;
      line-height: 0.83;
      color: #ebebeb;
      margin-bottom: 56px;
    }

    .hero-title-muted {
      color: #3a3a3a;
      display: block;
    }

    .hero-bottom {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      padding-top: 28px;
      border-top: none;
    }

    .hero-sub {
      font-size: 15.6px;
      font-weight: 300;
      color: #999;
      line-height: 1.7;
      letter-spacing: 0.03em;
      max-width: 300px;
    }

    .hero-scroll {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(235,235,235,0.75);
      text-decoration: none;
      transition: color 0.3s;
    }
    .hero-scroll:hover {
      color: #ebebeb;
    }
    .hero-scroll svg { transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
    .hero-scroll:hover svg { transform: translateY(3px); }

    .btn-primary {
      font-family: var(--font);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #030303;
      background: #ebebeb;
      border: 1px solid #ebebeb;
      padding: 14px 32px;
      border-radius: 4px;
      text-decoration: none;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
      cursor: pointer;
    }
    .btn-primary:hover { background: #ffffff; border-color: #ffffff; }

    .btn-secondary {
      font-family: var(--font);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--black);
      background: transparent;
      border: 1px solid #2a2a2a;
      padding: 14px 32px;
      border-radius: 4px;
      text-decoration: none;
      transition: border-color 0.2s;
      cursor: pointer;
    }
    .btn-secondary:hover { border-color: #555; }

    /* ─── SERVICIOS ─── */
    .section-label {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--gray-500);
      text-align: center;
      margin-bottom: 48px;
    }

    .servicios {
      padding-top: 130px;
      padding-right: 8%;
      padding-bottom: 20px;
      padding-left: 8%;
      background: #060606;
    }

    .servicios-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: 1fr 1fr;
      height: calc(100vh - 150px);
      gap: 3px;
      transition: grid-template-columns 0.45s cubic-bezier(0.4,0,0.2,1);
      will-change: grid-template-columns;
    }

    .servicios-grid[data-active="1"] { grid-template-columns: 1.6fr 1.6fr 0.4fr; }
    .servicios-grid[data-active="2"] { grid-template-columns: 0.55fr 0.55fr 1.9fr; }
    .servicios-grid[data-active="3"] { grid-template-columns: 1.9fr 0.55fr 0.55fr; }
    .servicios-grid[data-active="4"] { grid-template-columns: 0.55fr 1.9fr 0.55fr; }
    .servicios-grid[data-active="5"] { grid-template-columns: 0.55fr 0.55fr 1.9fr; }

    .servicio-card {
      position: relative;
      overflow: hidden;
      cursor: pointer;
      background: #0a0a0a;
    }

    .servicio-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1; background: #282828; }
    .servicio-card:nth-child(2) { grid-column: 3; grid-row: 1; background: #323232; }
    .servicio-card:nth-child(3) { grid-column: 1; grid-row: 2; background: #2c2c2c; }
    .servicio-card:nth-child(4) { grid-column: 2; grid-row: 2; background: #363636; }
    .servicio-card:nth-child(5) { grid-column: 3; grid-row: 2; background: #2e2e2e; }

    .card-content {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 48px 28px 28px;
      background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    }

    .card-type {
      font-size: 9px;
      font-weight: 400;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.3);
      margin-bottom: 8px;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 0.4s, transform 0.4s;
    }
    .servicio-card:hover .card-type { opacity: 1; transform: translateY(0); }

    .card-name {
      font-size: clamp(20px, 2.2vw, 42px);
      font-weight: 700;
      letter-spacing: -0.01em;
      text-transform: uppercase;
      color: #ffffff;
      line-height: 0.95;
    }

    .card-arrow {
      position: absolute;
      top: 24px;
      right: 24px;
      width: 32px;
      height: 32px;
      border: 1px solid rgba(255,255,255,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s;
    }
    .servicio-card:hover .card-arrow { opacity: 1; }
    .card-arrow svg { width: 12px; height: 12px; color: white; }

    .servicio-card .card-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      transition: filter 0.6s ease;
    }
    .servicio-card:hover .card-img {
      filter: brightness(1.08);
    }

    /* ─── PORTFOLIO ─── */
    .portfolio {
      padding: 64px 8% 80px;
      background: #000000;
    }

    .portfolio-grid {
      columns: 3;
      column-gap: 4px;
    }

    .portfolio-item {
      break-inside: avoid;
      margin-bottom: 4px;
      overflow: hidden;
      position: relative;
      background: #111111;
      cursor: pointer;
    }

    .portfolio-item img {
      width: 100%;
      display: block;
      transition: opacity 0.6s ease;
    }

    .portfolio-item:hover img { opacity: 0.85; }

    /* Último ítem de la tercera columna — se estira para igualar la altura de la col. 1 */
    .portfolio-item--tall {
      /* altura asignada por JS */
    }
    .portfolio-item--tall img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    /* ─── ALQUILER (EXPANDED) ─── */
    .alquiler-page {
      background: #030303;
      content-visibility: auto;
      /* "auto" usa el tamaño conocido en visitas anteriores; 2400px como fallback */
      contain-intrinsic-size: auto 2400px;
    }

    .alquiler-header {
      padding: 60px 8% 40px;
      text-align: left;
      border-bottom: 1px solid #111;
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .alquiler-header .section-label {
      font-size: 11px;
      letter-spacing: 0.22em;
      margin-bottom: 40px;
    }
    .alquiler-header h2 {
      font-size: clamp(48px, 6.5vw, 96px);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 0.88;
      margin-bottom: 48px;
      color: var(--black);
    }
    .alquiler-intro {
      font-size: 14px;
      font-weight: 300;
      color: #ebebeb;
      line-height: 1.8;
      max-width: 480px;
      letter-spacing: 0.02em;
    }

    .alquiler-metrics {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      background: #080808;
      border-top: 1px solid #161616;
      border-bottom: 1px solid #161616;
    }
    .metric-card {
      padding: 40px 32px;
      border-right: 1px solid rgba(255,255,255,0.05);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .metric-card:last-child { border-right: none; }
    .metric-value {
      font-size: clamp(28px, 3vw, 48px);
      font-weight: 700;
      color: #ffffff;
      letter-spacing: -0.03em;
      line-height: 1;
    }
    .metric-label {
      font-size: 10px;
      font-weight: 400;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.22);
    }

    .alquiler-body {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      padding: 24px 48px 48px;
      align-items: start;
    }
    .subsection-label {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--gray-500);
      margin-bottom: 28px;
      display: block;
    }
    .alquiler-floorplan { }
    .floorplan-wrap {
      border: 1px solid #1a1a1a;
      background: #f8f8f8;
      padding: 20px;
    }
    .floorplan-svg {
      width: 100%;
      height: auto;
      display: block;
    }
    .alquiler-equipment {
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .alquiler-fotos-grid {
      flex: 1;
      min-height: 0;
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 2fr 1fr 1fr;
      gap: 4px;
    }
    .alquiler-foto--wide {
      grid-column: 1 / 3;
    }
    .alquiler-foto {
      overflow: hidden;
      min-height: 0;
    }
    .alquiler-foto img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.5s;
    }
    .alquiler-gallery { padding: 0 48px 80px; }
    .studio-photos {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 4px;
    }
    .studio-photo {
      aspect-ratio: 4/3;
      background: #111111;
      overflow: hidden;
      position: relative;
    }
    .studio-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s;
    }
    /* ─── CONTACTO ─── */
    .contacto {
      background: #000000;
      border-top: 1px solid #111;
      padding: 100px 48px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }

    .contacto-left h2 {
      font-size: clamp(36px, 5vw, 64px);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1;
      color: #ffffff;
      margin-bottom: 20px;
    }

    .contacto-left p {
      font-size: 16px;
      font-weight: 300;
      color: rgba(255,255,255,0.35);
      line-height: 1.6;
      max-width: 380px;
    }

    .contacto-right { display: flex; flex-direction: column; gap: 16px; }

    .contacto-item {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 20px 24px;
      border: 1px solid rgba(255,255,255,0.07);
      text-decoration: none;
      transition: border-color 0.2s, background 0.2s;
    }
    .contacto-item:hover {
      border-color: rgba(255,255,255,0.22);
      background: rgba(255,255,255,0.03);
    }

    .contacto-item-icon {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: #ffffff;
    }
    .contacto-item-icon svg { width: 20px; height: 20px; }

    .contacto-item-info { display: flex; flex-direction: column; gap: 2px; }

    .contacto-item-label {
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.28);
    }

    .contacto-item-value {
      font-size: 15px;
      font-weight: 400;
      color: #ffffff;
      letter-spacing: 0.02em;
    }

    .contacto-item-wa { background: #ffffff; border-color: #ffffff; }
    .contacto-item-wa .contacto-item-icon,
    .contacto-item-wa .contacto-item-label,
    .contacto-item-wa .contacto-item-value { color: #000000; }
    .contacto-item-wa .contacto-item-label { color: rgba(0,0,0,0.45); }
    .contacto-item-wa:hover { background: #f0f0f0; border-color: #f0f0f0; }

    /* ─── FOOTER ─── */
    footer {
      padding: 48px;
      background: #000000;
      border-top: 1px solid #111111;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    /* Reset nav dentro del footer — evita que herede position:fixed del nav principal */
    footer nav {
      position: static;
      height: auto;
      background: transparent;
      border: none;
      padding: 0;
      backdrop-filter: none;
      display: block;
    }

    footer .footer-logo { display: flex; align-items: baseline; gap: 6px; text-decoration: none; }

    footer .footer-copy {
      font-size: 12px;
      color: var(--gray-500);
      letter-spacing: 0.06em;
    }

    footer .footer-links { display: flex; gap: 24px; list-style: none; }

    footer .footer-links a {
      font-size: 12px;
      font-weight: 400;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--gray-500);
      text-decoration: none;
      transition: color 0.2s;
    }
    footer .footer-links a:hover { color: var(--black); }

    .footer-social { display: flex; gap: 12px; align-items: center; }
    .footer-social a {
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--gray-500);
      text-decoration: none;
      transition: color 0.2s;
    }
    .footer-social a:hover { color: var(--black); }
    .footer-social svg { width: 16px; height: 16px; }

    /* ─── MODAL EQUIPAMIENTO ─── */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.85);
      backdrop-filter: blur(4px);
      z-index: 999;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.35s ease;
    }
    .modal-overlay.open { opacity: 1; pointer-events: all; }

    .modal {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: min(680px, 95vw);
      background: #0a0a0a;
      z-index: 1000;
      overflow-y: auto;
      transform: translateX(100%);
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
    }
    .modal.open { transform: translateX(0); }

    .modal-header {
      position: sticky;
      top: 0;
      background: #0a0a0a;
      border-bottom: 1px solid #1a1a1a;
      padding: 24px 36px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      z-index: 10;
    }
    .modal-header h3 {
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: #ebebeb;
    }
    .modal-close {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #2a2a2a;
      cursor: pointer;
      background: none;
      transition: border-color 0.2s, background 0.2s;
    }
    .modal-close:hover { border-color: #555; background: #1a1a1a; }
    .modal-close:hover svg { stroke: #ebebeb; }
    .modal-close svg { width: 14px; height: 14px; stroke: #888; stroke-width: 1.5; }

    .modal-body { padding: 40px 36px; flex: 1; }

    .modal-gallery {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 4px;
      margin-bottom: 48px;
    }
    .modal-gallery-item { aspect-ratio: 4/3; background: #141414; overflow: hidden; }
    .modal-gallery-item:first-child { grid-column: 1 / 3; aspect-ratio: 16/7; }
    .modal-gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s;
    }
    .modal-section-label {
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gray-500);
      margin-bottom: 20px;
      display: block;
    }
    .modal-equipment { list-style: none; margin-bottom: 40px; }
    .modal-equipment li {
      padding: 13px 0;
      border-bottom: 1px solid #1a1a1a;
      font-size: 14px;
      font-weight: 400;
      color: var(--gray-700);
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .modal-equipment li::before {
      content: '';
      width: 4px;
      height: 4px;
      background: #555;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .modal-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
    .modal-col { display: flex; flex-direction: column; }
    .modal-cta { display: flex; gap: 12px; flex-wrap: wrap; }

    /* ─── WHATSAPP FLOAT ─── */
    .whatsapp-float {
      position: fixed;
      bottom: 28px;
      right: 28px;
      z-index: 998;
      width: 54px;
      height: 54px;
      background: #25D366;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 20px rgba(0,0,0,0.4);
      color: #fff;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .whatsapp-float svg { width: 28px; height: 28px; }
    .whatsapp-float:hover {
      transform: scale(1.08);
      box-shadow: 0 6px 28px rgba(0,0,0,0.6);
    }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 1024px) {
      .servicios-grid { grid-template-rows: 1fr 1fr; transition: none; }
      .servicios-grid[data-active="1"],
      .servicios-grid[data-active="2"],
      .servicios-grid[data-active="3"],
      .servicios-grid[data-active="4"],
      .servicios-grid[data-active="5"] {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr 1fr;
      }
      .portfolio-grid { columns: 2; }
      .alquiler-metrics { grid-template-columns: repeat(2, 1fr); }
      .alquiler-body { grid-template-columns: 1fr; padding: 60px 48px; }
      .alquiler-equipment { padding-left: 0; padding-top: 48px; }
      .studio-photos { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 768px) {
      .modal {
        width: 100%;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
      }
      .modal.open { transform: translateY(0); }
      .modal-header { padding: 20px 20px; }
      .modal-body { padding: 28px 20px; }
      .modal-gallery { grid-template-columns: 1fr; }
      .modal-columns { grid-template-columns: 1fr; gap: 0; }
      .modal-gallery-item:first-child { grid-column: 1; aspect-ratio: 16/9; }
      .modal-cta { flex-direction: column; }
      .modal-cta .btn-primary,
      .modal-cta .btn-secondary { text-align: center; width: 100%; }

      nav { padding: 0 24px; }
      .nav-links { display: none; }
      .hero { padding-left: 24px; padding-right: 24px; min-height: 100vh; align-items: flex-end; }
      .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
      .servicios { padding: 60px 24px; }
      .servicios-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 240px 240px 200px 200px;
      }
      .servicio-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
      .servicio-card:nth-child(2) { grid-column: 1; grid-row: 3; }
      .servicio-card:nth-child(3) { grid-column: 2; grid-row: 3; }
      .servicio-card:nth-child(4) { grid-column: 1; grid-row: 4; }
      .servicio-card:nth-child(5) { grid-column: 2; grid-row: 4; }
      .portfolio { padding: 60px 24px; }
      .portfolio-grid { columns: 2; }
      .alquiler-header { padding: 72px 24px 48px; }
      .alquiler-body { padding: 60px 24px; }
      .alquiler-gallery { padding: 0 24px 60px; }
      .alquiler-metrics { padding: 0; }
      .metric-card { padding: 32px 24px; }
      .contacto { grid-template-columns: 1fr; gap: 48px; padding: 72px 24px; }
      footer { padding: 32px 24px; flex-direction: column; gap: 24px; text-align: center; }
      footer .footer-links { justify-content: center; flex-wrap: wrap; }
    }

    @media (max-width: 480px) {
      /* Logo + WA button: reducir logo para que quepan en 320–480px */
      .logo img { height: 72px; }
      /* Redes sociales en nav ocultas — aparecen en footer */
      .nav-social { display: none; }

      /* Servicios: 1 columna — resetear posiciones para evitar grid implícito */
      .servicios-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 260px 200px 200px 200px 200px;
        height: auto;
      }
      .servicio-card:nth-child(1) { grid-column: 1; grid-row: 1; }
      .servicio-card:nth-child(2) { grid-column: 1; grid-row: 2; }
      .servicio-card:nth-child(3) { grid-column: 1; grid-row: 3; }
      .servicio-card:nth-child(4) { grid-column: 1; grid-row: 4; }
      .servicio-card:nth-child(5) { grid-column: 1; grid-row: 5; }

      .portfolio-grid { columns: 1; }
      .btn-primary, .btn-secondary { text-align: center; width: 100%; }
      .alquiler-metrics { grid-template-columns: repeat(2, 1fr); }
      .studio-photos { grid-template-columns: 1fr; }
    }

    /* ─── LIGHTBOX ─── */
    /* overlay oscuro */
    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 1100;
      background: rgba(3,3,3,0.92);
      display: none;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s ease;
      cursor: zoom-out;
    }
    .lightbox.open { opacity: 1; }

    /* caja centrada que contiene imagen + botón */
    .lightbox-inner {
      position: relative;
      cursor: default;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    /* la imagen: máximo 1000px de alto, ancho automático */
    .lightbox-img {
      display: block;
      max-height: 90vh;
      max-width: 88vw;
      width: auto;
      height: auto;
      object-fit: contain;
      opacity: 0;
      transform: scale(0.97);
      transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.4,0,0.2,1);
    }
    .lightbox.open .lightbox-img {
      opacity: 1;
      transform: scale(1);
    }

    /* botón X posicionado sobre la imagen, arriba a la derecha */
    .lightbox-close {
      position: absolute;
      top: -44px;
      right: 0;
      background: rgba(3,3,3,0.6);
      border: 1px solid rgba(235,235,235,0.25);
      border-radius: 4px;
      color: rgba(235,235,235,0.75);
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
      z-index: 10;
    }
    .lightbox-close:hover {
      background: rgba(235,235,235,0.12);
      border-color: rgba(235,235,235,0.6);
      color: #ebebeb;
    }

    /* cursor pointer en items del portfolio */
    .portfolio-item { cursor: zoom-in; }

    /* ─── FAQ ─── */
    .faq {
      background: #060606;
      border-top: 1px solid #111;
      padding: 80px 8%;
    }
    .faq-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 48px;
    }
    .faq-list {
      border-top: 1px solid #1a1a1a;
    }
    .faq-item {
      border-bottom: 1px solid #1a1a1a;
      padding: 24px 0;
    }
    .faq-item dt {
      font-size: 15px;
      font-weight: 500;
      color: #ebebeb;
      letter-spacing: 0.01em;
      margin-bottom: 10px;
    }
    .faq-item dd {
      font-size: 14px;
      font-weight: 300;
      color: #666;
      line-height: 1.8;
      max-width: 680px;
    }
    @media (max-width: 768px) {
      .faq { padding: 60px 24px; }
    }

    /* ─── UTILITIES / ACCESIBILIDAD ─── */

    /* Skip-to-content: visible solo al recibir foco (teclado) */
    .skip-link {
      position: absolute;
      top: -100%;
      left: 0;
      background: #ebebeb;
      color: #030303;
      font-family: var(--font);
      font-size: 14px;
      font-weight: 500;
      padding: 12px 20px;
      z-index: 9999;
      text-decoration: none;
      border-radius: 0 0 4px 0;
      transition: top 0.2s;
    }
    .skip-link:focus { top: 0; }

    /* Texto visualmente oculto pero accesible para screen readers */
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0,0,0,0);
      white-space: nowrap;
      border: 0;
    }

    /* Section label grande (reemplaza inline style="font-size:22px") */
    .section-label--lg { font-size: 22px; }

    /* CTA de galería de alquiler (reemplaza inline style en el div) */
    .alquiler-gallery-cta {
      display: flex;
      gap: 12px;
      justify-content: center;
    }

    /* Focus visible para navegación por teclado */
    a:focus-visible,
    button:focus-visible {
      outline: 2px solid #ebebeb;
      outline-offset: 3px;
      border-radius: 2px;
    }

    /* Portfolio items: focus ring al navegar con teclado */
    .portfolio-item:focus-visible {
      outline: 2px solid #ebebeb;
      outline-offset: 2px;
    }