:root {
  --bg: #111111;
  --bg-soft: #1a1a1a;
  --text: #f3f3f3;
  --muted: #cfcfcf;
  --yellow: #f4b400;
  --yellow-dark: #d89d00;
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0d0d0d;
  color: var(--text);
  line-height: 1.5;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* HEADER */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand img {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: var(--white);
  font-weight: 700;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--yellow);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: white;
  border: 0;
  font-size: 30px;
  cursor: pointer;
}

/* HERO */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url("../assets/hero.jpg");
  background-size: cover;
  background-position: center calc(30%);
  background-repeat: no-repeat;
  padding: 40px 20px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.60) 0%,
      rgba(0, 0, 0, 0.45) 35%,
      rgba(0, 0, 0, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 92vh;
  padding-bottom: 160px;
}

.hero-text {
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-block;
  background: var(--yellow);
  color: #111;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

.hero p {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 1.18rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* BOTONES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--yellow);
  color: #111;
}

.btn-primary:hover {
  background: var(--yellow-dark);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #111;
  background: var(--yellow-dark);
}

.btn-secondary:hover {
  background: var(--yellow-dark);
}

/* FEATURES */

.features {
  background: #121212;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 22px 0;
}

.feature-item {
  background: #181818;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  font-weight: 700;
  text-align: center;
}

/* SECCIONES */

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* ABOUT */

.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text h2 {
  margin-top: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.about-text p {
  color: var(--muted);
  margin-bottom: 18px;
}

/* CONTACTO */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.contact-card {
  background: #171717;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-top: 0;
  color: var(--yellow);
}

.contact-card a {
  color: white;
  font-weight: 700;
}

.contact-card a:hover {
  color: var(--yellow);
}

/* SERVICIOS */

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.servicio-card {
  display: block;
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.servicio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 180, 0, 0.4);
}

.servicio-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: #000;
}

.servicio-card-image img,
.servicio-card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servicio-card-media-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.servicio-card-body {
  padding: 20px;
}

.servicio-card-body h3 {
  margin: 0 0 10px;
  color: var(--yellow);
}

.servicio-card-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.servicio-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.servicio-card-count {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.servicio-card-link {
  display: inline-block;
  font-weight: 800;
  color: var(--white);
}

/* GALERIA SERVICIO */

.servicio-header {
  max-width: 900px;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--yellow);
  font-weight: 700;
}

.servicio-cta {
  margin-top: 24px;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.galeria-item {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.galeria-item img,
.galeria-item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
  background: #000;
}

.galeria-item:hover img,
.galeria-item:hover video {
  transform: scale(1.03);
}

.galeria-item-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 14px;
  background: #000;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  border-radius: 999px;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  font-size: 30px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 36px;
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

/* WHATSAPP */

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  background: #25d366;
  color: white;
  font-weight: 800;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* FOOTER */

.footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: #bfbfbf;
}

/* RESPONSIVE */

@media (max-width: 980px) {

  .features-grid,
  .about,
  .contact-grid,
  .servicios-grid,
  .galeria-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 16px;
    background: #111;
    border-bottom: 1px solid var(--border);
  }

  nav.open {
    display: flex;
  }

  .features-grid,
  .about,
  .contact-grid,
  .servicios-grid,
  .galeria-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
    padding: 24px 16px;
    background-position: center calc(50% + 50px);
  }

  .hero-content {
    min-height: 78vh;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-content img,
  .lightbox-content video {
    max-width: 94vw;
    max-height: 76vh;
  }

  .servicio-card-disabled {
    opacity: 0.92;
    cursor: default;
  }

  .servicio-card-link-disabled {
    color: #b5b5b5;
  }
}