:root {
  --bg: #050505;
  --bg-alt: #0e0e0e;
  --ink: #f5f5f0;
  --ink-dim: #b9b9b3;
  --accent: #4f8cf7;
  --accent-dim: #3d72cc;
  --whatsapp: #25d366;
  --whatsapp-dim: #1da851;
  --line: rgba(245, 245, 240, 0.12);
  --radius: 14px;
  --container: 1120px;
  --font-display: 'Oswald', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--ink-dim); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Decorative bolts */
.bolt-decor {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  background: url('assets/logo.png') center / contain no-repeat;
  opacity: 0.05;
}
.bolt-decor--1 {
  top: -80px;
  right: -60px;
  width: 420px;
  height: 420px;
  transform: rotate(8deg);
}
.bolt-decor--2 {
  bottom: 10%;
  left: -100px;
  width: 380px;
  height: 380px;
  transform: rotate(-14deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary {
  background: var(--ink);
  color: #050505;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}
.btn-primary:hover {
  background: #d8d8d2;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-lg { padding: 19px 38px; font-size: 1.2rem; }
.btn-nav { padding: 12px 22px; font-size: 0.95rem; flex-shrink: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -2px 0 0 var(--accent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-logo { height: 46px; width: auto; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.brand-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.main-nav {
  display: flex;
  gap: 26px;
  margin: 0 auto;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  color: var(--ink);
}
.hero h1 .highlight { color: var(--accent); }
.hero-sub {
  font-size: 1.08rem;
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 24px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.hero-badges a {
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
}
.hero-badges a:hover { color: var(--ink); border-color: var(--ink); }

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  transition: color 0.15s ease;
}
.hero-phone svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.hero-phone:hover { color: var(--accent); }

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 8px;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg-alt);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.contact-pill svg { width: 24px; height: 24px; flex-shrink: 0; }
.contact-pill:hover { border-color: var(--ink); transform: translateY(-2px); }
.whatsapp-icon-img { width: 26px; height: 26px; flex-shrink: 0; object-fit: contain; }
.contact-pill--primary { border-color: var(--whatsapp); }
.contact-pill--primary:hover { border-color: var(--whatsapp-dim); }

.hero-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 78%, transparent 100%),
    linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 78%, transparent 100%),
    linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.1) brightness(0.92);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  cursor: zoom-in;
  transition: opacity 0.9s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg) 100%),
    radial-gradient(ellipse at center, transparent 55%, var(--bg) 100%);
  pointer-events: none;
  z-index: 3;
}
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(5, 5, 5, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hero-carousel-arrow svg { width: 18px; height: 18px; }
.hero-carousel-arrow:hover { background: rgba(5, 5, 5, 0.8); }
.hero-carousel-arrow--prev { left: 12px; }
.hero-carousel-arrow--next { right: 12px; }
.hero-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 7px;
}
.hero-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(245, 245, 240, 0.4);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.hero-carousel-dots button.is-active { background: #fff; transform: scale(1.25); }

/* Sections */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 40px;
}

/* Services cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--accent);
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.card p { font-size: 0.95rem; margin: 0; }

/* Promo band */
.promo-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.promo-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.promo-photo img { cursor: zoom-in; }
.promo-text p { font-size: 1.05rem; margin-bottom: 24px; }

/* Steps (Cómo trabajo) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 0.95rem; margin: 0; }

/* About */
.about-inner {
  max-width: 74ch;
  margin: 0 auto;
}
.about-header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}
.about-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--line);
  flex-shrink: 0;
  cursor: zoom-in;
}
.about-header .section-eyebrow { margin-bottom: 4px; }
.about-header .section-title { margin-bottom: 0; }
.about-text p { font-size: 1.02rem; }

/* Work gallery */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}
.work-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: zoom-in;
}
.work-card--featured {
  grid-column: span 2;
  border-color: var(--accent);
}
.work-card--featured img { aspect-ratio: 21/9; object-position: 30% center; }
.work-card--featured figcaption { font-size: 1.05rem; color: var(--ink); }
.work-card figcaption {
  padding: 16px 18px;
  font-size: 0.95rem;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cert-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}
.cert-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: top;
  cursor: zoom-in;
  border-bottom: 1px solid var(--line);
}
.cert-card figcaption { padding: 20px 22px; }
.cert-card-year {
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--accent);
  font-size: 0.95rem;
}
.cert-card h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 6px 0 4px;
}
.cert-card p { margin: 0; font-size: 0.9rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(160deg, var(--bg-alt), #0a0d14);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 92px 0;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}
.cta-inner p {
  max-width: 56ch;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}
.ig-link {
  display: inline-block;
  color: var(--ink-dim);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.ig-link:hover { color: var(--accent); border-color: var(--accent); }

/* Footer */
.site-footer {
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo { height: 28px; }
.footer-brand div { display: flex; flex-direction: column; font-size: 0.9rem; }
.footer-brand strong { font-family: var(--font-display); }
.footer-brand span { color: var(--ink-dim); }
.footer-links {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.footer-links a:hover { color: var(--accent); }
.footer-loc {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin: 0;
  width: 100%;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  z-index: 60;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab img { width: 42px; height: 42px; object-fit: contain; }
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55); }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; max-width: 380px; margin: 0 auto; }
  .promo-inner { grid-template-columns: 1fr; }
  .promo-photo { max-width: 420px; margin: 0 auto; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 860px) {
  .btn-nav { display: none; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 16px;
  }
  .cards-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--featured { grid-column: span 1; }
  .work-card--featured img { aspect-ratio: 4/3; object-position: center; }
  .cert-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 64px 0; }
  .btn-lg { padding: 13px 22px; font-size: 0.95rem; }
  .contact-pill { flex: 1 1 auto; justify-content: center; padding: 12px 16px; font-size: 0.88rem; }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 3, 3, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-image {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close {
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev svg, .lightbox-next svg { width: 22px; height: 22px; }

@media (max-width: 720px) {
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
}
