html, body {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

:root {
  --primary: #f59e0b; /* ámbar / construcción */
  --primary-dark: #d97706;
  --content-width: min(960px, 92vw);
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #e5e7eb;

  background: linear-gradient(
    180deg,
    #0b1e2d 0%,
    #12465a 30%,
    #119daf 65%,
    #9ed8e5 100%
  );
}

main {
  display: block;
  padding-top: 80px;
}
header {
  position: sticky;
  top: 0;
  padding: 1rem 2rem;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
header h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
}
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background-color: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background-color: rgba(11, 18, 32, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.site-header.scrolled .header-inner {
  padding: 0.5rem 2rem;
}
.site-header.scrolled .logo {
  width: 28px;
  height: 28px;
}
.header-inner {
  height: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  justify-content: space-between;
}
.logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.site-title {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .site-title {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  padding-top: 80px; /* altura real del header */
  padding-bottom: 8vh;

  background-image: url("/assets/img/hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 3.5rem 3rem;
  color: #f8fafc;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: clamp(1.05rem, 2.25vw, 1.25rem);
  line-height: 1.75;
  max-width: 680px;
}

.section {
  scroll-margin-top: 80px;
  min-height: clamp(60vh, 70vh, 85vh);
  padding: 4rem 2rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  background: transparent;
}
.section.visible {
  background: transparent;
  opacity: 1;
  transform: translateY(0);
}
.section > .card {
  margin: 0 auto;
}
@media (max-width: 768px) {
  .section {
    min-height: auto;
    padding: 3rem 1.5rem;
  }
}

h1, h2 {
  font-weight: 600;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.7;
}
.card {
  max-width: var(--content-width);
  width: 100%;
  padding: 2.5rem;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(2px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card.visible .card:hover {
  transform: translateY(4px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: rgba(229, 231, 235, 0.7);
  background: linear-gradient(
    to top,
    rgba(2,6,23,0.4),
    transparent
  );
}

footer a {
  color: #38bdf8;
}

footer a:hover {
  text-decoration: underline;
}
.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: #337491;
  color: #020617;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(56,189,248,0.4);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-secondary {
  background: #64748b;
  color: #f1f5f9;
}
.btn-secondary:hover {
  background: #475569;
  box-shadow: 0 10px 20px rgba(71,85,105,0.4);
}
.btn-secondary:active {
  background: #64748b;
}
a {
  color: #38bdf8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .card {
    border-radius: 1rem;
    padding: 1.75rem;
  }
}
.services {
  padding-left: 1.2rem;
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.services li {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.services strong {
  display: block;
  font-size: 1.06rem;
  margin-bottom: 0.25rem;
  color: #e5e7eb;
}
.services li:not(:last-child) {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.features {
  padding-left: 1.2rem;
  margin-top: 1.5rem;
}
.features li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  position: relative;
}
.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.icon svg {
  color: var(--primary);
  width: 1em;
  height: 1em;
  fill: #38bdf8;
}
@media (min-width: 1400px) {
  :root {
    --content-width: 1040px;
  }
}

@media (max-width: 768px) {
  main {
    padding-top: 72px; /* igual al header */
  }

  .hero {
    min-height: calc(100vh - 72px);
    padding-top: 2rem;
    padding-bottom: 4rem;
    background-position: center top;
  }

  .hero-content {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .hero h2 {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
  }

  .hero p {
    font-size: 1rem;
    margin: 0 auto;
  }
  body.nav-open {
  overflow: hidden;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.site-header:hover .nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav a {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e5e7eb;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}
.nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #020617;
  font-weight: 600;
}
.nav-toggle {
  display: none;
  margin-left: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #e5e7eb;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    right: 0;

    flex-direction: column;
    width: 260px;
    height: calc(100vh - 72px);

    background: rgba(11, 18, 32, 0.97);
    padding: 2rem;

    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav.open {
    transform: translateX(0);
  }
  .nav-toggle {
    display: block;
  }
}

.nav a.active {
  opacity: 1;
  color: var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-item {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.2rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.service-item h3 {
  font-size: 1.1rem;
  margin: 1.2rem 1.2rem 0.5rem;
}

.service-item p {
  font-size: 0.95rem;
  margin: 0 1.2rem 1.4rem;
  opacity: 0.9;
}

.projects {
  overflow: hidden;
}

.projects-slider {
  position: relative;
  margin-top: 3rem;
  height: 420px;
  border-radius: 1.5rem;
  overflow: hidden;
}

.project-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.project-slide.active {
  opacity: 1;
  z-index: 1;
}

.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2,6,23,0.8),
    rgba(2,6,23,0.2)
  );
}

.project-info {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  max-width: 70%;
  z-index: 2;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Botones */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2,6,23,0.6);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease;
}

.slider-btn:hover {
  background: rgba(2,6,23,0.85);
}

.slider-btn.prev {
  left: 1rem;
}

.slider-btn.next {
  right: 1rem;
}

@media (max-width: 600px) {
  .projects-slider {
    height: 300px;
  }

  .project-info {
    max-width: 85%;
    left: 1.5rem;
    bottom: 1.5rem;
  }
}
.clients {
  text-align: center;
}

.clients-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.clients-grid img {
  max-width: 140px;
  max-height: 60px;
  margin: 0 auto;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.clients-grid img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .clients-grid {
    gap: 2rem;
  }

  .clients-grid img {
    max-width: 120px;
    max-height: 52px;
  }
}
.gallery h2 {
  margin-bottom: 0.5rem;
}
.album {
  display: block;
  width: 100%;
  margin-top: 3.5rem;
}
.album h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.album:first-of-type {
  margin-top: 2.5rem;
}
.album-desc {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 1.5rem;
}
.album-grid img {
  width: 100%;
  height: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  cursor: pointer;

  border-radius: 0.8rem;
  background: #020617;

  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.album-grid img:hover {
  transform: scale(1.04);
  opacity: 1;
  box-shadow: 0 15px 30px rgba(0,0,0,0.45);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  grid-auto-rows: 1fr;
}
.album-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f8fafc;
}
@media (max-width: 600px) {
  .album-title {
    font-size: 1.15rem;
  }

  .album-grid {
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .album-grid img {
    height: 150px;
  }
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 1rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0 1rem;
  opacity: 0.75;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

@media (max-width: 600px) {
  .lightbox-nav {
    font-size: 2.2rem;
  }
}
.projects-slider {
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 600px) {
  .projects-slider {
    height: 260px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
}
