* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --bg-secondary: #101010;
  --card: #171717;
  --text: #f4f4f4;
  --muted: #b9b9b9;
  --accent: #f4c400;
  --accent-dark: #d3a900;
  --border: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(90%, 1200px);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.section-label {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.7rem;
  margin-bottom: 20px;
}

.center {
  text-align: center;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  z-index: 2;
}

.logo span {
  color: var(--accent);
}

.header-logo-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  opacity: 0.95;
  pointer-events: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 2;
}

.menu a {
  color: var(--text);
  font-weight: 600;
  transition: 0.3s ease;
}

.menu a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 70px;
  overflow: hidden;
}

/* Imagen de fondo como <img> — funciona en Hostinger igual que galería */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay oscuro encima de la imagen */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.92) 45%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-content {
  max-width: 720px;
  margin-left: 40px;
}

.tagline {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 1.02;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero-text {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  transform: translateY(-50px);
}

.hero-logo {
  width: min(100%, 360px);
  max-height: 420px;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.04));
}

/* BOTONES */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ABOUT */
.about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.35rem;
  margin-bottom: 18px;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 14px;
}

.about-card {
  display: grid;
  gap: 20px;
}

.card-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 25px;
  transition: 0.3s ease;
}

.card-box:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 196, 0, 0.3);
}

.card-box h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

/* SERVICES */
.services-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 196, 0, 0.3);
}

.service-card h3 {
  color: var(--accent);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
}

/* GALLERY */
.gallery {
  background: var(--bg-secondary);
}

.gallery-grid-pro {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #181818;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.gallery-main {
  grid-row: 1 / 3;
}

.gallery-side {
  min-height: 280px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.82);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08), transparent);
}

.gallery-overlay span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  background: #080808;
}

/* TABLET */
@media (max-width: 992px) {
  .about-grid,
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-logo-box {
    justify-content: center;
    min-height: auto;
  }

  .hero-logo {
    width: 240px;
    max-height: 280px;
  }

  .hero h1 {
    font-size: 3.6rem;
  }

  .gallery-grid-pro {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-main {
    grid-row: auto;
    min-height: 420px;
  }

  .gallery-side {
    min-height: 260px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 78px;
    right: 5%;
    width: 220px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: none;
    flex-direction: column;
    z-index: 1000;
  }

  .menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .about-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 70px;
  }

  /* En mobile el overlay cambia a gradiente vertical */
  .hero-bg::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.75) 100%);
  }

  .hero-layout {
    gap: 24px;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .hero-logo-box {
    justify-content: center;
  }

  .hero-logo {
    width: 210px;
    max-height: 230px;
  }

  .section-title,
  .about-text h2 {
    font-size: 2rem;
  }

  .gallery-main,
  .gallery-side {
    min-height: 240px;
  }

  .gallery-overlay {
    padding: 18px;
  }

  .gallery-overlay span {
    font-size: 0.88rem;
    padding: 8px 14px;
  }
}

@media (max-width: 576px) {
  .container {
    width: 92%;
  }

  .nav {
    min-height: 70px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .header-logo-center {
    width: 22px;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .tagline {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.05;
  }

  .hero-text {
    font-size: 0.98rem;
    max-width: 100%;
  }

  .hero-buttons {
    gap: 12px;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  .hero-logo {
    width: 170px;
    max-height: 180px;
  }

  .section {
    padding: 70px 0;
  }

  .section-title,
  .about-text h2 {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .card-box,
  .service-card {
    padding: 22px 18px;
  }

  .gallery-main,
  .gallery-side {
    min-height: 220px;
  }

  .gallery-overlay span {
    font-size: 0.82rem;
  }

  .footer {
    font-size: 0.9rem;
    padding: 20px 0;
  }
}