/* Ñublesolar v2 — diseño de alto contraste */
:root {
  --navy: #070b16;
  --navy-2: #0c1428;
  --navy-3: #152244;
  --sun: #ffc107;
  --sun-hot: #ff8a00;
  --sun-soft: #ffe08a;
  --teal: #1ad4b0;
  --teal-dim: #0f8f7a;
  --foam: #f3f6fb;
  --white: #ffffff;
  --ink: #0c1220;
  --muted: #b4becf;
  --line: rgba(255, 255, 255, 0.1);
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
  --radius: 22px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--navy);
  color: var(--foam);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sun); }
:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px; top: 0;
}
.skip:focus {
  left: 16px; top: 16px; z-index: 200;
  background: var(--white); color: var(--ink);
  padding: .55rem 1rem; border-radius: 8px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 11, 22, 0.45);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 11, 22, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.header-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 5px 12px 5px 8px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.brand img { height: 52px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: .15rem 1.35rem;
}
.nav a {
  color: var(--foam);
  text-decoration: none;
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: -0.01em;
}
.nav a:hover { color: var(--sun); }
.menu-toggle {
  display: none;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border-radius: 999px;
  padding: .8rem 1.25rem;
  font-weight: 700;
  font-family: var(--display);
  font-size: .98rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }
.btn-sun {
  background: linear-gradient(90deg, var(--sun-hot), var(--sun));
  color: #1a1000;
  box-shadow: 0 10px 30px rgba(255, 138, 0, 0.35);
}
.btn-sun:hover { color: #1a1000; box-shadow: 0 14px 36px rgba(255, 138, 0, 0.5); }
.btn-wa {
  background: #19a34a;
  color: #fff;
  box-shadow: 0 8px 24px rgba(25, 163, 74, 0.35);
}
.btn-wa:hover { background: #148a3e; color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.02rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 3.5rem) 0 0;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,11,22,.55) 0%, rgba(7,11,22,.15) 32%, rgba(7,11,22,.55) 62%, rgba(7,11,22,.96) 100%),
    linear-gradient(90deg, rgba(7,11,22,.82) 0%, rgba(7,11,22,.35) 48%, rgba(7,11,22,.15) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 2.2rem;
  max-width: 42rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sun);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--sun-hot), var(--sun));
  border-radius: 2px;
}
.hero h1 {
  margin: 0 0 .8rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.25rem, 8.5vw, 6.5rem);
  line-height: .9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero h1 span {
  display: block;
  background: linear-gradient(100deg, #fff 0%, #fff 40%, var(--sun-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .tagline {
  margin: 0 0 1.7rem;
  font-size: clamp(1.12rem, 2.1vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: rgba(243, 246, 251, 0.88);
  max-width: 34rem;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

/* Value strip */
.values {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}
.value-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.value {
  padding: 1rem 1.1rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.value:last-child { border-right: 0; }
.value strong {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: .2rem;
}
.value span {
  font-size: .8125rem;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--muted);
}

/* Sections common */
.section { padding: 5.2rem 0; }
.kicker {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 .55rem;
}
.kicker.sun { color: var(--sun); }
h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.05rem, 4.4vw, 3.15rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
}
.lead {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.65;
  letter-spacing: -0.015em;
  color: var(--muted);
  max-width: 40rem;
}

/* About */
.about {
  background:
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(26, 212, 176, 0.08), transparent 55%),
    var(--navy);
}
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
.about .lead { font-size: 1.25rem; line-height: 1.6; color: #d5dbe8; }

/* Services */
.services {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(255, 138, 0, 0.12), transparent 50%),
    var(--navy-2);
}
.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
}
.card {
  grid-column: span 2;
  position: relative;
  padding: 1.5rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.card:nth-child(4) { grid-column: 2 / span 2; }
.card:nth-child(5) { grid-column: 4 / span 2; }
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--sun-hot), var(--sun), var(--teal));
  opacity: .85;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 193, 7, 0.4);
  box-shadow: 0 22px 50px rgba(0,0,0,.35);
}
.card .icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, var(--sun-hot), var(--sun));
  color: #1a1000;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 {
  margin: 0 0 .4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  color: #fff;
}
.card p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }

/* Gallery bento */
.projects { background: var(--navy); }
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 140px;
  gap: 14px;
  margin-top: 2.3rem;
}
.shot {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  grid-column: span 4;
  grid-row: span 2;
  cursor: zoom-in;
  border: 1px solid rgba(255,255,255,.08);
  background: #10182c;
}
.shot:nth-child(1) { grid-column: span 8; grid-row: span 3; }
.shot:nth-child(2) { grid-column: span 4; grid-row: span 3; }
.shot:nth-child(3) { grid-column: span 4; grid-row: span 3; }
.shot:nth-child(4) { grid-column: span 4; grid-row: span 3; }
.shot:nth-child(5) { grid-column: span 4; grid-row: span 3; }
.shot:nth-child(6) { grid-column: span 12; grid-row: span 3; }
.shot-btn,
.shot-btn picture {
  display: block;
  width: 100%;
  height: 100%;
}
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.shot:nth-child(3) img { object-position: top center; }
.shot:hover img { transform: scale(1.08); }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.05rem .9rem;
  background: linear-gradient(180deg, transparent, rgba(7,11,22,.92));
  font-family: var(--display);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: -0.015em;
  color: #fff;
  pointer-events: none;
}
.shot-btn {
  position: absolute;
  inset: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: rgba(5, 8, 16, 0.92);
  color: #fff;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
}
.lightbox::backdrop { background: rgba(5, 8, 16, 0.92); }
.lightbox-inner {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.2rem 5rem;
  position: relative;
}
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
  margin-inline: auto;
}
.lightbox-caption {
  margin: 1rem 0 0;
  text-align: center;
  font-family: var(--display);
  color: var(--muted);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-close {
  top: 1.1rem; right: 1.1rem;
  width: 46px; height: 46px;
  font-size: 1.5rem;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  font-size: 1.6rem;
}
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.2); }

/* Contact CTA */
.contact {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.contact-media {
  position: absolute;
  inset: 0;
}
.contact-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.contact-media img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.contact-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,11,22,.42) 0%, rgba(7,11,22,.62) 45%, rgba(7,11,22,.88) 100%),
    linear-gradient(90deg, rgba(7,11,22,.62) 0%, rgba(7,11,22,.28) 70%);
}
.contact-inner {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
  max-width: 40rem;
}
.contact h2 { font-size: clamp(2.3rem, 5.2vw, 3.55rem); }
.contact .lead { color: rgba(243,246,251,.88); margin-bottom: 1.7rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Footer */
.site-footer {
  background: #05070f;
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 1.6rem 0 5.6rem;
  font-size: .92rem;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; }

/* Floating WhatsApp + pulse */
.wa-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 70;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #19a34a;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(25, 163, 74, .45);
  transition: transform .18s ease, background .18s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #148a3e; color: #fff; transform: scale(1.07); }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(25, 163, 74, 0.55);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 163, 74, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(25, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 163, 74, 0); }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .shot:hover img { transform: none; }
  .hero-media img { transform: none; }
  .wa-float::after { animation: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .value-row { grid-template-columns: 1fr 1fr; }
  .value:nth-child(odd) { border-right: 1px solid var(--line); }
  .value:nth-child(even) { border-right: 0; }
  .value:nth-child(5) { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .cards { grid-template-columns: 1fr; }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: auto; }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .shot, .shot:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .shot:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
  .shot:nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 8px);
    right: 1rem;
    left: 1rem;
    background: rgba(12, 20, 40, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem .6rem; border-radius: 10px; }
  .nav a:hover { background: rgba(255,255,255,.06); }
  .nav .btn { justify-content: center; margin-top: .4rem; }
  .hero { align-items: flex-end; }
  .hero-inner { padding-bottom: 5.2rem; }
  .hero h1 { font-size: clamp(2.85rem, 13.5vw, 3.75rem); letter-spacing: -0.04em; }
  .section { padding: 3.6rem 0; }
  .lightbox-nav { display: none; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .shot, .shot:nth-child(n) { grid-column: 1 / -1; grid-row: span 1; }
  .shot:nth-child(1) { grid-row: span 1; min-height: 260px; }
}
