:root {
  --orange: #FF6A00;
  --charcoal: #333333;
  --gray: #BDBDBD;
  --black: #000000;
  --white: #FFFFFF;
  --surface: #0E1116;
  --surface-2: #171C23;
  --max-width: 1180px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#nosotros,
#servicios,
#trabajos,
#contacto {
  scroll-margin-top: 82px;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--charcoal);
  background: radial-gradient(circle at 82% 0%, rgba(255, 106, 0, 0.13), transparent 28%),
    linear-gradient(160deg, #f5f5f5 0%, #ececec 46%, #f8f8f8 100%);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(8, 10, 14, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  width: 95px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--white);
  font-weight: 600;
}

.nav a {
  opacity: 0.95;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--orange);
}

.nav a.active {
  color: var(--orange);
}

.btn-nav {
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--orange);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.65) 40%, rgba(0, 0, 0, 0.2) 100%),
    url("../images/banner-principal.jpg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 106, 0, 0.28), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 760px;
  padding: 3rem 0;
  animation: rise 0.8s ease both;
}

.kicker,
.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  font-weight: 700;
}

.hero h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  text-wrap: balance;
}

.hero-copy {
  margin: 0;
  max-width: 64ch;
  color: #f2f2f2;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 106, 0, 0.45);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.hero-values {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.hero-values li {
  border-left: 3px solid var(--orange);
  padding-left: 0.65rem;
  font-weight: 600;
}

.trust-bar {
  background: linear-gradient(90deg, #10161f, #0c0f13);
  color: #f2f2f2;
  border-top: 2px solid rgba(255, 106, 0, 0.5);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  min-height: 86px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-height: 86px;
  padding: 0.85rem 1.1rem;
}

.trust-item + .trust-item {
  border-left: 1px solid rgba(255, 106, 0, 0.55);
}

.trust-item i {
  font-size: 2rem;
  color: var(--orange);
  flex-shrink: 0;
}

.trust-item h3 {
  margin: 0 0 0.2rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.trust-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  line-height: 1.35;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.about-grid {
  grid-template-columns: 1fr;
  justify-items: center;
}

.about-content {
  width: 100%;
  max-width: 1240px;
  text-align: center;
}

.about-content > p {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  margin-top: 0.65rem;
  margin-bottom: 1rem;
  color: #121212;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 1.6rem;
  width: 100%;
  margin: 2rem auto 0;
}

.badge-card {
  position: relative;
  min-height: 308px;
  padding: 1.8rem 1.7rem 1.75rem;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(30, 32, 35, 0.98), rgba(15, 16, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 18px 40px rgba(10, 12, 16, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 55%);
  pointer-events: none;
}

.badge-card i {
  font-size: 2.2rem;
  color: var(--orange);
  margin-bottom: 1rem;
}

.badge-card h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
  max-width: 13ch;
}

.badge-divider {
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
  margin: 0.9rem 0 1rem;
  flex-shrink: 0;
}

.badge-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 24ch;
  text-align: center;
}

.info-card {
  background: linear-gradient(180deg, #1b212a, #141920);
  color: #f5f5f5;
  padding: 1.3rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin-top: 0;
}

.socials-inline {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.socials-inline a {
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
}

.section-dark {
  color: #f4f4f4;
  background: linear-gradient(160deg, #0d1015, #1a2028);
}

.section-dark h2 {
  color: #ffffff;
}

.service-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-grid article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--orange);
  border-radius: 14px;
  padding: 1rem;
}

.service-grid h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #fff;
}

.gallery-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #d4d4d4;
  background: #fff;
}

.gallery-grid figure:nth-child(1),
.gallery-grid figure:nth-child(2),
.gallery-grid figure:nth-child(3),
.gallery-grid figure:nth-child(4),
.gallery-grid figure:nth-child(5),
.gallery-grid figure:nth-child(6) {
  grid-column: span 4;
}

.gallery-grid .gallery-banner {
  grid-column: span 12;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.gallery-grid .gallery-banner img {
  aspect-ratio: 16 / 6;
}

.section-contact {
  background: linear-gradient(130deg, rgba(255, 106, 0, 0.09), transparent 35%),
    linear-gradient(160deg, #f7f7f7, #ececec);
}

.contact-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  margin-top: 0.8rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c7c7c7;
  border-radius: 10px;
  padding: 0.75rem;
  font: inherit;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
  outline: none;
}

.btn-primary.full {
  width: 100%;
  margin-top: 1rem;
}

.form-note {
  min-height: 1.2rem;
  margin-top: 0.7rem;
  font-weight: 600;
}

.form-note.ok {
  color: #128048;
}

.form-note.error {
  color: #b32020;
}

.contact-list {
  padding-left: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.contact-list i {
  color: var(--orange);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.contact-list a:hover {
  color: var(--orange);
}

.footer {
  background: #0f1116;
  color: #d9d9d9;
  padding: 1.5rem 0;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.75rem;
}

.footer-slogan {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.footer-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--orange);
  font-weight: 600;
}

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 13px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  animation: waBounce 3s ease infinite;
}

.whatsapp-float i {
  font-size: 1.2rem;
}

.whatsapp-float:hover {
  background: #1da851;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
  animation: none;
}

@keyframes waBounce {
  0%, 90%, 100% {
    transform: translateY(0);
  }

  95% {
    transform: translateY(-6px);
  }
}

.social-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.social-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  transition: transform 0.3s ease, width 0.3s ease;
  position: relative;
}

.social-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.social-btn.facebook {
  background: #1877F2;
}

.social-btn.instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn:hover {
  transform: translateX(4px);
  width: 56px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 860px);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid figure:nth-child(1),
  .gallery-grid figure:nth-child(2),
  .gallery-grid figure:nth-child(3),
  .gallery-grid figure:nth-child(4),
  .gallery-grid figure:nth-child(5),
  .gallery-grid figure:nth-child(6) {
    grid-column: span 6;
  }

  .gallery-grid .gallery-banner img {
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 780px) {
  .footer-wrap {
    align-items: center;
    text-align: center;
  }

  .footer-slogan {
    justify-content: center;
    align-items: center;
    max-width: 280px;
    margin: 0 auto;
    gap: 0.45rem;
  }

  .footer-slogan span {
    display: inline-block;
    text-align: left;
  }

  .badges {
    grid-template-columns: 1fr;
    width: min(100%, 420px);
    gap: 1rem;
  }

  .badge-card {
    min-height: 272px;
    padding: 1.35rem 1.2rem 1.45rem;
  }

  .badge-card i {
    font-size: 2.2rem;
  }

  .badge-card h3 {
    font-size: 0.95rem;
  }

  .badge-card p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: #0d1016;
    padding: 1rem;
    display: grid;
    gap: 0.5rem;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .btn-nav {
    border-radius: 10px;
    width: fit-content;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-values {
    grid-template-columns: 1fr;
  }

  .trust-items {
    grid-template-columns: 1fr;
    padding: 0.5rem 0;
  }

  .trust-item {
    min-height: auto;
    padding: 0.8rem 0;
  }

  .trust-item + .trust-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 106, 0, 0.4);
  }

  .gallery-grid figure:nth-child(1),
  .gallery-grid figure:nth-child(2),
  .gallery-grid figure:nth-child(3),
  .gallery-grid figure:nth-child(4),
  .gallery-grid figure:nth-child(5),
  .gallery-grid figure:nth-child(6),
  .gallery-grid .gallery-banner {
    grid-column: span 12;
  }

  .gallery-grid img,
  .gallery-grid .gallery-banner img {
    aspect-ratio: 4 / 5;
  }

  .whatsapp-float {
    bottom: 18px;
    left: 18px;
    padding: 14px;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    justify-content: center;
  }

  .whatsapp-float span {
    display: none;
  }

  .social-sidebar {
    display: none;
  }
}

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 20px;
}
