/* ================================
   Sir Sign Installation – One Page
   ================================ */

/* --------- Variables --------- */
:root {
  --primary-red: #e00000;
  --dark: #0b0b0f;
  --dark-soft: #15151c;
  --light: #ffffff;
  --text: #e5e5f0;
  --accent: #ffb400;
  --max-width: 1140px;
}

/* --------- Reset --------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, sans-serif;
  background: #050509;
  color: var(--text);
  line-height: 1.6;
}

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

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-light {
  background: radial-gradient(circle at top, #181824, #050509 52%, #000 100%);
}

.section-muted {
  background: #0b0b12;
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.section-heading {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  margin-bottom: 1.2rem;
}

/* --------- Header / Nav --------- */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9),
    rgba(5, 5, 9, 0.94)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.25rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-left img {
  height: 46px;
  border-radius: 12px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.nav-subtitle {
  font-size: 0.75rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.86rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-red));
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links .lang-switch {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
}

.nav-links .lang-switch::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 16px;
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-links-mobile {
  display: none;
}

.nav-links-mobile.open {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.7rem 0 1rem;
}

.nav-links-mobile a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

/* --------- Hero --------- */

.hero {
  background:
    radial-gradient(circle at top left, #ff4b4b 0, transparent 55%),
    radial-gradient(circle at top right, #ffb400 0, transparent 55%),
    radial-gradient(circle at bottom, #151528 0, #050509 70%);
  color: #fff;
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.7rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 0.75rem;
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #31d158;
}

.hero h1 {
  font-size: clamp(2.3rem, 3.4vw, 3.1rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.9rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lead {
  max-width: 34rem;
  font-size: 0.98rem;
  opacity: 0.92;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
}

.badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.3rem 0.8rem;
  font-size: 0.76rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(40, 40, 60, 0.9));
}

.hero-cta {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red), #ff3838);
  color: #fff;
  box-shadow: 0 14px 30px rgba(224, 0, 0, 0.45);
}

.btn-outline {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero-contact {
  font-size: 0.85rem;
  opacity: 0.92;
}

.hero-visual {
  position: relative;
}

.hero-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
}

.hero-card img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover;
}

.hero-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

/* --------- Badge “Expertos…” + redes (cross–browser) --------- */

/* Fila general: badge + iconos */
.hero-social-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 1.3rem;
  max-width: 520px;
}

/* Pastilla de texto */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #00ff62;
  background: rgba(0, 0, 0, 0.25);
}

.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00ff62;
  box-shadow: 0 0 6px #00ff62;
}

.hero-text {
  font-size: 0.95rem;
  line-height: 1.3;
  color: #fff;
}

/* Íconos de redes */
.hero-social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-social-icons a {
  color: #ffffff;
  font-size: 1.6rem;
  transition: 0.2s;
}

.hero-social-icons a:hover {
  transform: translateY(-2px);
  filter: brightness(1.3);
}

/* --------- About / Services --------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.about-text p + p {
  margin-top: 0.8rem;
}

.about-cards {
  display: grid;
  gap: 1rem;
}

.about-card {
  background: linear-gradient(145deg, #161623, #10101a);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-card h3 {
  margin-bottom: 0.4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  background: linear-gradient(150deg, #1a1a26, #101018);
  border-radius: 14px;
  padding: 1.4rem 1.3rem 1.3rem;
  border-top: 3px solid var(--primary-red);
}

.service-tagline {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

/* --------- Masonry Gallery --------- */

.gallery-masonry {
  column-count: 3;
  column-gap: 0.9rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.masonry-item img {
  width: 100%;
  height: auto;
}

/* --------- Lightbox --------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 1200;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* --------- Contact --------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.contact-box {
  background: linear-gradient(145deg, #161623, #10101a);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #3b3b4a;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  background: #050509;
  color: #fff;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* --------- Footer --------- */

footer {
  background: #000;
  color: #a5a5b5;
  padding: 1.8rem 0;
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.footer-inner a {
  color: #d0d0e0;
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 0.55rem;
}

.footer-social a {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #15151c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social svg {
  width: 14px;
  height: 14px;
  fill: #f4f4f7;
}

.footer-social a:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

/* --------- Breakpoints --------- */

@media (max-width: 960px) {
  .hero-inner,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-masonry {
    column-count: 2;
  }

  .hero {
    padding: 3.4rem 0 3.3rem;
  }
}

@media (max-width: 768px) {
  .nav-links-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero-inner {
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1.1rem;
  }

  .gallery-masonry {
    column-count: 1;
  }
}

/* Ajustes específicos para móvil muy pequeño */
@media (max-width: 480px) {
  .hero-social-row {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }

  .hero-badge {
    padding: 8px 16px;
    border-radius: 14px;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .hero-social-icons {
    align-self: center;
    gap: 18px;
  }

  .hero-social-icons a {
    font-size: 1.5rem;
  }
}
