:root {
  --amv-dark: #0a0a0a;
  --amv-dark-2: #111111;
  --amv-dark-3: #1a1a1a;
  --amv-accent: #75dab4;
  --amv-accent-hover: #8fe8c8;
  --amv-text: #f5f5f5;
  --amv-muted: #a0a0a0;
  --amv-overlay: rgba(0, 0, 0, 0.55);
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--amv-dark);
  color: var(--amv-text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.section-title {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Navbar */
.navbar-amv {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0;
  transition: background 0.3s ease;
}

.navbar-amv.scrolled {
  background: rgba(10, 10, 10, 0.97);
}

.navbar-amv .nav-link {
  color: var(--amv-text);
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.navbar-amv .nav-link:hover,
.navbar-amv .nav-link.active {
  color: var(--amv-accent);
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
}

.hero-content img {
  max-width: 220px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Section common */
section {
  padding: 5rem 0;
}

.section-label {
  font-family: "Amatic SC", cursive;
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  color: var(--amv-accent);
  margin-bottom: 0.35rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.section-heading {
  font-size: clamp(2.75rem, 8vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.05;
  text-wrap: balance;
}

.section-heading.text-center {
  font-size: clamp(2.35rem, 7vw, 3.25rem);
}

.section-heading--sub {
  font-size: clamp(1.875rem, 5vw, 2.25rem);
  margin-bottom: 1rem;
}

.section-bg {
  background-color: var(--amv-dark-2);
}

/* About */
.about-text {
  color: var(--amv-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Services carousel */
.services-carousel {
  position: relative;
}

.services-carousel .carousel-item {
  height: 70vh;
  min-height: 420px;
}

.services-carousel .carousel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.services-carousel .carousel-item.active .carousel-bg {
  transform: scale(1);
}

.services-carousel .carousel-overlay {
  position: absolute;
  inset: 0;
  background: var(--amv-overlay);
}

.services-carousel .carousel-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  bottom: auto;
  left: auto;
  right: auto;
}

.services-carousel .carousel-caption h2 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.services-carousel .carousel-control-prev,
.services-carousel .carousel-control-next {
  width: 60px;
  opacity: 0.8;
}

.services-carousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--amv-accent);
  border: none;
  opacity: 0.5;
}

.services-carousel .carousel-indicators .active {
  opacity: 1;
}

/* Team */
.team-card {
  background: var(--amv-dark-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
}

.team-card .card-body {
  padding: 1.5rem;
}

.team-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--amv-accent);
}

.team-card p {
  color: var(--amv-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* Clients */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.clients-grid .client-logo:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 220px;
  justify-self: center;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 0.75rem;
  min-height: 84px;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .client-logo {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .client-logo:hover {
    opacity: 1;
    transform: scale(1.03);
  }
}

.client-logo img {
  display: block;
  width: 100%;
  max-width: 140px;
  max-height: 56px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 576px) {
  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .clients-grid .client-logo:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .client-logo {
    padding: 1.125rem 1rem;
    min-height: 96px;
  }

  .client-logo img {
    max-width: 160px;
    max-height: 68px;
  }
}

@media (min-width: 768px) {
  .clients-grid {
    gap: 1.25rem;
  }

  .client-logo {
    padding: 1.5rem;
    min-height: 100px;
  }

  .client-logo img {
    max-width: 180px;
    max-height: 80px;
  }
}

@media (min-width: 992px) {
  .clients-grid {
    gap: 1.5rem;
  }
}

/* Video section */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--amv-dark-3) 0%, var(--amv-dark) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-section h2 {
  font-size: clamp(1.875rem, 5.5vw, 2.5rem);
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

.btn-amv {
  background: var(--amv-accent);
  color: var(--amv-dark);
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-amv:hover {
  background: var(--amv-accent-hover);
  color: var(--amv-dark);
  transform: translateY(-2px);
}

/* Contact */
.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.contact-info strong {
  color: var(--amv-accent);
}

.contact-animation {
  max-width: 200px;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--amv-dark-3);
  color: var(--amv-text);
  font-size: 1.25rem;
  margin: 0 0.5rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--amv-accent);
  color: var(--amv-dark);
  transform: translateY(-3px);
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(30%) contrast(1.1);
}

/* Footer */
footer {
  background: var(--amv-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--amv-muted);
  font-size: 0.9rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--amv-accent);
  color: var(--amv-dark);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  z-index: 1000;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

@media (max-width: 767.98px) {
  section {
    padding: 3.5rem 0;
  }

  #nosotros .section-label {
    font-size: 2.25rem;
  }

  #nosotros .section-heading {
    font-size: 3.25rem;
    margin-bottom: 1.25rem;
  }

  .services-carousel .carousel-item {
    height: 55vh;
    min-height: 320px;
  }

  .services-carousel .carousel-caption h2 {
    font-size: clamp(2.5rem, 11vw, 3.75rem);
  }

  .team-card img {
    height: 240px;
  }
}
