/* ===== ZYZ — tema corporativo verde & dorado ===== */
:root {
  --green: #1a4624;
  --green-deep: #14361c;
  --green-soft: #2a5c35;
  --gold: #d4a32f;
  --gold-bright: #e0b445;
  --gold-dim: #b8891f;
  --bg: #f7f7f5;
  --bg-white: #ffffff;
  --bg-muted: #eef1ee;
  --text: #1c241e;
  --text-muted: #5a655c;
  --line: rgba(26, 70, 36, 0.12);
  --radius: 6px;
  --font-display: "Oswald", sans-serif;
  --font-body: "Manrope", sans-serif;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1160px;
  --shadow: 0 18px 40px rgba(20, 54, 28, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Diagonal brand accents */
.brand-accent {
  height: 10px;
  background:
    linear-gradient(135deg, var(--green) 0 58%, transparent 58%),
    linear-gradient(135deg, transparent 52%, var(--gold) 52% 72%, transparent 72%),
    linear-gradient(135deg, transparent 68%, var(--green-soft) 68%);
}

.brand-accent.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
}

.brand-accent.bottom {
  transform: scaleX(-1);
}

.dot-grid {
  background-image: radial-gradient(rgba(26, 70, 36, 0.14) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
}

/* Header — transparente sobre el banner */
.site-header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s, top 0.35s;
}

.site-header.scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(20, 54, 28, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
  background: rgba(255, 255, 255, 0.92);
}

.site-header.scrolled .logo-img {
  background: transparent;
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  transition: color 0.25s;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--gold-bright);
}

.site-header.scrolled .site-nav a {
  color: var(--text-muted);
  text-shadow: none;
}

.site-header.scrolled .site-nav a:hover {
  color: var(--green);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.35rem;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--green-deep) !important;
  text-shadow: none !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  font-size: 0.8rem !important;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.nav-cta:hover {
  background: var(--gold-bright) !important;
  border-color: var(--gold-bright);
  color: var(--green-deep) !important;
  transform: translateY(-1px);
}

.nav-cta-outline {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.85);
  text-shadow: none !important;
}

.nav-cta-outline:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: var(--gold-bright);
  color: var(--gold-bright) !important;
}

.site-header.scrolled .nav-cta {
  background: var(--green) !important;
  border-color: var(--green);
  color: #fff !important;
}

.site-header.scrolled .nav-cta:hover {
  background: var(--green-soft) !important;
  border-color: var(--green-soft);
  color: #fff !important;
}

.site-header.scrolled .nav-cta-outline {
  background: transparent !important;
  color: var(--green) !important;
  border-color: var(--green);
}

.site-header.scrolled .nav-cta-outline:hover {
  background: rgba(26, 70, 36, 0.08) !important;
  color: var(--green-deep) !important;
  border-color: var(--green-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

.site-header.scrolled .nav-toggle span {
  background: var(--green);
  box-shadow: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 54, 28, 0.88) 0%, rgba(20, 54, 28, 0.55) 48%, rgba(20, 54, 28, 0.25) 100%),
    linear-gradient(180deg, rgba(20, 54, 28, 0.35) 0%, transparent 40%, rgba(20, 54, 28, 0.7) 100%);
}

.hero-shape {
  position: absolute;
  right: 0;
  bottom: 0;
  top: auto;
  width: min(38%, 420px);
  height: min(42%, 300px);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.75rem 1.75rem 3.25rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: -10px -10px 40px rgba(0, 0, 0, 0.22);
}

.hero-logo {
  display: block;
  width: min(100%, 250px);
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.32));
  position: relative;
  z-index: 1;
  animation: heroIn 0.9s var(--ease) both;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(560px, 52vw);
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
  animation: heroIn 0.9s var(--ease) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.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;
}

.hero-lead {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--green-deep);
}

.btn-primary:hover { background: var(--gold-bright); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.25rem) 0;
  position: relative;
}

.perfil,
.servicios,
.comunidad,
.contacto {
  background: var(--bg-white);
}

.historia,
.proyectos,
.seguridad,
.trabaje {
  background: var(--bg);
}

.mirada {
  background:
    radial-gradient(circle at top right, rgba(212, 163, 47, 0.12), transparent 42%),
    var(--green);
  color: #fff;
}

.mirada .section-label { color: var(--gold-bright); }
.mirada .section-title { color: #fff; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--green);
  margin-bottom: 1.15rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-desc { color: var(--text-muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-reverse .split-media { order: -1; }

.split-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.split-media:hover img { transform: scale(1.03); }

.feature-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.6rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--gold);
  border-radius: 1px;
}

/* Mirada */
.mirada-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mirada-block {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--gold);
}

.mirada-block h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin-bottom: 0.85rem;
}

.mirada-block p { color: rgba(255, 255, 255, 0.82); }

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  margin: 1rem 0 0.45rem;
}

.service-item p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.service-img {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.service-item:hover .service-img img { transform: scale(1.05); }

/* Proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-bottom: 3rem;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(20, 54, 28, 0.88));
}

.project-item figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.project-item:hover img { transform: scale(1.06); }

/* Galleries — deporte thumbs */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.gallery-thumb {
  position: relative;
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  box-shadow: 0 8px 20px rgba(20, 54, 28, 0.08);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-thumb:hover img { transform: scale(1.06); }

/* Pavimentos participativos — mosaic */
.pp-gallery {
  margin-bottom: 2.5rem;
  padding: 1.75rem;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.pp-gallery:last-child { margin-bottom: 0; }

.pp-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.pp-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.35rem;
}

.pp-gallery-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  line-height: 1.1;
}

.pp-gallery-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.pp-place {
  margin-top: 1.5rem;
}

.pp-place + .pp-place {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.pp-place-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.pp-place-head h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  position: relative;
  padding-left: 0.85rem;
}

.pp-place-head h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.pp-place-head span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pp-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.75rem;
  height: 220px;
  max-height: 220px;
}

.pp-mosaic .gallery-thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  box-shadow: none;
  outline: 1px solid rgba(26, 70, 36, 0.08);
}

.pp-mosaic .pp-featured {
  grid-row: auto;
}

.pp-mosaic .gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(20, 54, 28, 0.75));
  opacity: 0.85;
  transition: opacity 0.3s;
  pointer-events: none;
}

.pp-mosaic .gallery-thumb:hover::after { opacity: 1; }
.pp-mosaic .gallery-thumb:hover img { transform: scale(1.04); }

.pp-caption {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.85rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
}

.pp-mosaic .gallery-thumb::before {
  content: "+";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s, transform 0.25s;
}

.pp-mosaic .gallery-thumb:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Comunidad */
.comunidad-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3.25rem;
}

.comunidad-block:last-child { margin-bottom: 0; }

.comunidad-block.reverse { direction: rtl; }
.comunidad-block.reverse > * { direction: ltr; }

.comunidad-text h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  margin-bottom: 0.85rem;
}

.comunidad-text p { color: var(--text-muted); }

.comunidad-block .photo-gallery {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.comunidad-block .gallery-thumb img {
  object-position: center center;
}

.comunidad-cueca .photo-gallery {
  grid-template-columns: repeat(3, 1fr);
}

.comunidad-cueca .gallery-thumb {
  max-width: none;
  width: 100%;
}

.comunidad-cueca .gallery-thumb img {
  object-position: center 18%;
}

/* Trabaje con nosotros */
.trabaje-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 2.25rem;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 10px;
  border-left: 5px solid var(--gold);
  box-shadow: var(--shadow);
}

.trabaje-copy {
  max-width: 40rem;
}

.trabaje-copy .section-title {
  margin-bottom: 0.85rem;
}

.trabaje-copy p:last-child {
  color: var(--text-muted);
  margin: 0;
}

.trabaje-btn {
  flex-shrink: 0;
  border: none;
  text-decoration: none;
}

/* Contacto */
.contacto {
  border-top: 1px solid var(--line);
}

.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contacto-lead {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-details { display: grid; gap: 1.2rem; }

.contact-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.contact-details a {
  color: var(--green);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}

.contact-details a:hover {
  color: var(--gold-dim);
  border-bottom-color: var(--gold);
}

.contact-map {
  display: block;
  width: min(100%, 360px);
  margin-top: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
}

.contact-map:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(20, 54, 28, 0.14);
}

.contact-map img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.contact-map-label {
  display: block;
  padding: 0.75rem 0.9rem 0.85rem;
  background: var(--bg);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: left;
  color: var(--text-muted);
}

.contact-map-label strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--bg);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
}

.form-row { display: grid; gap: 0.4rem; }

.form-row label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(26, 70, 36, 0.18);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus { border-color: var(--green); }

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-note-ok {
  color: var(--green) !important;
  font-weight: 600;
}

.form-note-error {
  color: #b42318 !important;
  font-weight: 600;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.35rem;
  border: none;
}

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.footer-logo {
  height: 96px;
  width: auto;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.footer-slogan {
  color: var(--gold-bright);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.32);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 20, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s;
}

.lightbox-nav:hover { background: var(--gold); color: var(--green-deep); }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .split,
  .split-reverse,
  .mirada-grid,
  .services-grid,
  .contacto-inner,
  .comunidad-block,
  .comunidad-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .split-reverse .split-media { order: 0; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-shape {
    width: min(40%, 340px);
    height: min(38%, 250px);
    padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  }

  .hero-logo { width: min(100%, 200px); }

  .pp-mosaic {
    grid-template-columns: repeat(3, 1fr);
    height: 180px;
    max-height: 180px;
  }

  .pp-mosaic .pp-featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .pp-mosaic .gallery-thumb { min-height: 0; }

  .trabaje-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(20, 54, 28, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 1.3rem;
    color: #fff;
    text-shadow: none;
  }

  .site-header.scrolled .site-nav a {
    color: #fff;
  }

  .site-header.scrolled .site-nav a:hover,
  .site-nav a:hover {
    color: var(--gold-bright);
  }

  .nav-actions {
    flex-direction: column;
    margin-left: 0;
    gap: 0.85rem;
    width: min(100%, 280px);
  }

  .nav-cta,
  .site-header.scrolled .nav-cta {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--green-deep) !important;
    text-align: center;
    font-size: 1rem !important;
    padding: 0.7rem 1.2rem;
  }

  .nav-cta-outline,
  .site-header.scrolled .nav-cta-outline {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
    color: #fff !important;
  }

  .nav-cta-outline:hover,
  .site-header.scrolled .nav-cta-outline:hover {
    border-color: var(--gold-bright) !important;
    color: var(--gold-bright) !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .logo-img { height: 56px; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-content {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    max-width: 100%;
  }

  .hero-shape {
    width: 100%;
    height: auto;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    clip-path: none;
    padding: 1.25rem;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
  }

  .hero-logo {
    width: min(100%, 220px);
  }

  .hero {
    padding-bottom: 9rem;
  }
  .pp-mosaic {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .pp-mosaic .pp-featured {
    grid-row: auto;
  }

  .pp-mosaic .gallery-thumb {
    height: 160px;
  }

  .pp-gallery-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pp-gallery-note { white-space: normal; }

  .pp-gallery { padding: 1.15rem; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.5rem, var(--max)); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .lightbox-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img, .reveal, .hero-content { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
