/* ---------- RESET & GLOBAL ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background: #0a2a44;
  color: #ffffff;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- NAVBAR ---------- */
header {
  width: 100%;
  height: 90px;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  background: rgba(5, 20, 35, 0.92);
  backdrop-filter: blur(14px);
  z-index: 999;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 60px;
  width: auto;
  display: block;
}
.logo-text {
  font-size: 28px;
  font-weight: 800;
  color: #d4af37;
  line-height: 1;
  letter-spacing: 1px;
}
nav {
  display: flex;
  gap: 45px;
}
nav a {
  color: #f0f4fa;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  position: relative;
}
nav a:hover {
  color: #d4af37;
}
/* Hide the mobile nav toggle by default on larger screens */
.nav-toggle {
  display: none;
}
nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -8px;
  background: #d4af37;
  transition: 0.3s;
}
nav a:hover::after {
  width: 100%;
}

/* ---------- CARRUSEL - Título ARRIBA, guardia DEBAJO, más alto ---------- */
.carousel-section {
  padding: 130px 0 80px 0;
  background: linear-gradient(145deg, #0c2e4a 0%, #082237 100%);
  position: relative;
}
.carousel-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.carousel-track-container {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.slide-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(5, 25, 45, 0.72) 0%,
    rgba(8, 34, 55, 0.68) 100%
  );
  z-index: 1;
}
.slide-content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 110px 60px 40px 60px;
}
.slide-title {
  text-align: center;
  width: 100%;
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin: 0;
}
.slide-title h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 200px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  margin: 0;
  opacity: 0;
  transform: translateY(0);
  transition:
    transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    opacity 0.5s ease;
}
.slide-guard {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 15;
  margin-top: 220px;
}
.slide-guard img {
  height: 760px;
  width: auto;
  max-width: 110%;
  object-fit: contain;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.5));
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  transform: translateY(140px) scale(1);
  opacity: 0;
}
.slide-finance .slide-guard img {
  height: 760px;
  transform: translateY(140px) scale(1);
  object-position: center bottom;
}
.carousel-slide.active .slide-title h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.carousel-slide.active .slide-guard img {
  opacity: 1;
  transform: translateY(140px) scale(1);
  transition-delay: 0.5s;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  position: relative;
  z-index: 15;
}
.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.dot.active {
  background: #d4af37;
  width: 28px;
  border-radius: 20px;
  box-shadow: 0 0 6px #d4af37;
}
.slide-finance .slide-bg {
  background-image: url("img/fondo1.jpg");
  background-position: center 35%;
}
.slide-mining .slide-bg {
  background-image: url("img/fondo3.jpg");
  background-position: center 30%;
}
.slide-retail .slide-bg {
  background-image: url("img/fondo2.jpg");
  background-position: center 40%;
}

/* ---------- LOADER ---------- */
.carousel-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #051e32;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s;
  overflow: hidden;
}
.carousel-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-pieces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.loader-piece-left {
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, #ad5203, #8a3a00);
  transform: translateX(-100%) rotate(45deg);
  transition: transform 1.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  transform-origin: center;
  clip-path: polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%);
}
.loader-piece-right {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(225deg, #0a2a44, #071e32);
  transform: translateX(100%) rotate(45deg);
  transition: transform 1.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  transform-origin: center;
  clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
}
.carousel-loader:not(.hidden) .loader-piece-left {
  transform: translateX(-0.5%) rotate(45deg);
}
.carousel-loader:not(.hidden) .loader-piece-right {
  transform: translateX(0.5%) rotate(45deg);
}
.loader-logo-container {
  position: relative;
  z-index: 10;
  text-align: center;
  background: transparent;
  padding: 8px 0;
  animation:
    logoPulse 1.2s infinite ease-in-out,
    logoFadeOut 1s forwards 2s;
  animation-fill-mode: forwards;
}
.loader-logo-img {
  width: 550px;
  height: auto;
  display: block;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.8));
}
.loader-spinner {
  width: 55px;
  height: 55px;
  margin: 15px auto 0;
  border: 3px solid rgba(212, 175, 55, 0.3);
  border-top: 3px solid #d4af37;
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
}
@keyframes spinLoader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes logoPulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 0 25px #d4af37);
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}
@keyframes logoFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
    visibility: hidden;
  }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
  padding: 140px 8% 80px;
  background: linear-gradient(125deg, #134b72 0%, #0a2e4a 100%);
}
.hero-image img {
  height: 850px;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.3));
}
.hero-text {
  max-width: 750px;
}
.tag {
  display: inline-block;
  padding: 12px 20px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 50px;
  color: #d4af37;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 30px;
}
.hero-text h1 {
  font-size: 78px;
  line-height: 1.05;
  margin-bottom: 25px;
  color: #ffffff;
}
.hero-text p {
  font-size: 21px;
  line-height: 1.9;
  color: #d0e4ff;
  margin-bottom: 40px;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 45px;
}
.btn-primary,
.btn-secondary {
  padding: 18px 32px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}
.btn-primary {
  background: #d4af37;
  color: #0a1e2f;
}
.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  border-color: #d4af37;
}
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.info-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  gap: 20px;
  transition: 0.3s;
}
.info-card:hover {
  transform: translateY(-8px);
  border-color: #d4af37;
  background: rgba(255, 255, 255, 0.12);
}
.icon-box {
  min-width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-box i {
  color: #d4af37;
  width: 30px;
  height: 30px;
}
.info-card h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #ffffff;
}
.info-card p {
  margin: 0;
  font-size: 17px;
  color: #d0e4ff;
}

/* ---------- SECTIONS GENERAL ---------- */
section {
  padding: 110px 8%;
}
.section-title {
  text-align: center;
  margin-bottom: 70px;
}
.section-title span {
  color: #d4af37;
  font-weight: 700;
  letter-spacing: 2px;
}
.section-title h2 {
  font-size: 56px;
  margin-top: 15px;
  color: #ffffff;
}
.featured-services .section-title h2 {
  color: #d4af37;
}
.line {
  width: 90px;
  height: 5px;
  background: #d4af37;
  border-radius: 20px;
  margin: 25px auto 0;
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: 0.3s;
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: #d4af37;
  background: rgba(255, 255, 255, 0.12);
}
.service-card-image {
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}
.service-card-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.featured-services .service-card {
  background: rgba(10, 46, 75, 0.92);
  border-color: rgba(212, 175, 55, 0.18);
}
.featured-services .service-card:hover {
  background: rgba(10, 46, 75, 1);
}
.featured-services .service-card p {
  color: #d4e5ff;
}
.featured-services .service-card li {
  color: #d4af37;
}
.service-icon {
  width: 75px;
  height: 75px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}
.service-icon i {
  width: 34px;
  height: 34px;
  color: #d4af37;
}
.service-card h3 {
  font-size: 34px;
  margin-bottom: 20px;
  color: #ffffff;
}
.service-card p {
  color: #d0e4ff;
  line-height: 1.8;
  margin-bottom: 25px;
}
.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card li {
  color: #d4af37;
}

/* ---------- SERVICIOS ESPECIALIZADOS ---------- */
.featured-services {
  background: #ffffff;
  padding: 80px 8%;
}
.featured-services .section-title h2 {
  color: #d4af37;
}
.services-blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 25px;
  margin-top: 50px;
}
.service-block {
  position: relative;
  border-radius: 24px;
  display: block;
  color: inherit;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.4s ease,
    box-shadow 0.3s;
  min-height: 200px;
}
.service-block.triple-height {
  grid-row: span 3;
  height: 100%;
  min-height: 890px;
}
.service-block:not(.triple-height) {
  height: 280px;
}
.service-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 35px rgba(0, 0, 0, 0.4);
}
.service-block .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 25, 45, 0.85),
    rgba(0, 0, 0, 0.75)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.3s;
}
.service-block:hover .overlay {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.3),
    rgba(0, 0, 0, 0.85)
  );
  backdrop-filter: blur(2px);
}
.service-block h3 {
  color: white;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  padding: 15px 20px;
  border-bottom: 3px solid #d4af37;
  display: inline-block;
  margin: 0 auto;
  transition: transform 0.3s;
}
.service-block:hover h3 {
  transform: scale(1.02);
}
.bg-vigilancia {
  background-image: url("img/vigilancia-privada.jpg");
}
.bg-resguardo {
  background-image: url("img/resguardo.jpg");
  background-position: center 20%;
}
.bg-prevencion {
  background-image: url("img/prevencion-riesgos.jpg");
  background-position: center 40%;
}
.bg-aeroportuaria {
  background-image: url("img/seguridad-aeroportuaria.jpg");
  background-position: center 40%;
}
.bg-custodia {
  background-image: url("img/custodia-mercancia.jpg");
  background-position: center 10%;
}
.bg-consultoria {
  background-image: url("img/consultoria.jpg");
}
.bg-electronica {
  background-image: url("img/seguridad-electronica.jpg");
}

/* ---------- ABOUT ---------- */
.about {
  background: #0a2f4b;
}
.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.about-text {
  flex: 1;
  max-width: 700px;
}
.about-text span {
  color: #d4af37;
  font-weight: 700;
}
.about-text h2 {
  font-size: 58px;
  margin-top: 15px;
  color: #ffffff;
}
.about-text .line {
  margin: 25px 0;
}
.about-text p {
  color: #d0e4ff;
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 19px;
}
.about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.about-image {
  max-width: 80%;
  border-radius: 24px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}
.stats {
  display: flex;
  gap: 25px;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}
.stat-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  border-radius: 22px;
  padding: 40px;
  min-width: 180px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-box h3 {
  color: #d4af37;
  font-size: 50px;
}
.stat-box p {
  color: #d0e4ff;
  margin-top: 10px;
}
.mvv-fullwidth {
  width: 100%;
  margin-top: 40px;
}
.mvv-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.mvv-card {
  flex: 1;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 35px 30px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.3s ease,
    border-color 0.3s;
}
.mvv-card:hover {
  transform: translateY(-5px);
  border-color: #d4af37;
  background: rgba(255, 255, 255, 0.1);
}
.mvv-card i {
  width: 50px;
  height: 50px;
  color: #d4af37;
  margin-bottom: 20px;
}
.mvv-card h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ffffff;
  border-left: 4px solid #d4af37;
  padding-left: 15px;
}
.mvv-card p {
  color: #d0e4ff;
  line-height: 1.7;
  font-size: 16px;
}
.mvv-card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}
.mvv-card ul li {
  color: #d0e4ff;
  line-height: 1.8;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}
.mvv-card ul li::before {
  content: "▹";
  color: #d4af37;
  position: absolute;
  left: 0;
}

/* ---------- CONTACT ---------- */
.contact-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.contact-card {
  width: 380px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(5px);
  border-radius: 24px;
  padding: 45px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-card:hover {
  transform: translateY(-10px);
  border-color: #d4af37;
  background: rgba(255, 255, 255, 0.12);
}
.contact-card i {
  width: 50px;
  height: 50px;
  color: #d4af37;
  margin-bottom: 25px;
}
.contact-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #ffffff;
}
.contact-card p {
  color: #d0e4ff;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 35px;
  background: #051a2c;
  color: #d0e4ff;
}
.footer-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  font-size: 14px;
}

/* ---------- WHATSAPP ---------- */
.whatsapp {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}
.whatsapp:active {
  transform: scale(0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.whatsapp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  header {
    padding: 0 5%;
  }
  .carousel-section,
  .hero,
  section {
    padding-left: 5%;
    padding-right: 5%;
  }
  .hero {
    gap: 50px;
  }
  .hero-text {
    max-width: 720px;
  }
  .section-title h2 {
    font-size: 48px;
  }
  .slide-title {
    padding: 0 18px;
  }
  .slide-title h2 {
    font-size: clamp(100px, 7.5vw, 140px);
  }
  .slide-guard img {
    max-width: 100%;
  }
  .services-grid,
  .services-blocks-grid {
    gap: 24px;
  }
}
@media (max-width: 1024px) {
  .slide-title h2 {
    font-size: clamp(90px, 7vw, 120px);
  }
  .slide-title {
    top: 30%;
  }
  .slide-guard {
    margin-top: 150px;
  }
  .slide-guard img {
    height: 620px;
    max-width: 100%;
  }
  .carousel-slide {
    min-height: 700px;
  }
  .hero {
    gap: 40px;
  }
}
@media (max-width: 900px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
  nav a {
    font-size: 15px;
  }
  .carousel-section {
    padding: 110px 4% 60px;
  }
  .carousel-slide {
    min-height: 720px;
  }
  .slide-title h2 {
    font-size: clamp(70px, 8vw, 100px);
  }
  .slide-title {
    top: 34%;
  }
  .slide-guard {
    margin-top: 130px;
  }
  .slide-guard img {
    height: 520px;
    max-width: 100%;
  }
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: auto;
    padding: 100px 4% 60px;
    gap: 40px;
  }
  .hero-image img {
    height: auto;
    max-width: 100%;
  }
  .hero-text h1 {
    font-size: 54px;
  }
  .section-title h2 {
    font-size: 42px;
  }
  .about-text h2 {
    font-size: 44px;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-blocks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-block.triple-height {
    grid-row: span 1;
    min-height: 280px;
  }
}
@media (max-width: 700px) {
  header {
    height: auto;
    padding: 16px 4%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .logo {
    justify-content: flex-start;
    gap: 10px;
  }
  .logo img {
    height: 50px;
  }
  .logo-text {
    font-size: 22px;
  }
  .nav-toggle {
    position: absolute;
    top: 16px;
    right: 4%;
    order: 0;
    margin: 0;
    display: flex;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    z-index: 1001;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    position: relative;
    border-radius: 2px;
    transition:
      transform 0.3s ease,
      background 0.3s ease;
  }
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }
  .nav-toggle span::before {
    top: -7px;
  }
  .nav-toggle span::after {
    top: 7px;
  }
  nav {
    order: 1;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.35s ease,
      opacity 0.35s ease;
  }
  header.nav-open nav {
    max-height: 420px;
    opacity: 1;
  }
  header.nav-open .nav-toggle span {
    background: transparent;
  }
  header.nav-open .nav-toggle span::before {
    transform: translateY(7px) rotate(45deg);
  }
  header.nav-open .nav-toggle span::after {
    transform: translateY(-7px) rotate(-45deg);
  }
  nav a {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
  }
  .carousel-section {
    padding: 100px 4% 50px;
  }
  .carousel-slide {
    min-height: 640px;
  }
  .slide-title h2 {
    font-size: clamp(52px, 12vw, 80px);
  }
  .slide-title {
    top: 36%;
  }
  .slide-guard {
    margin-top: 110px;
  }
  .slide-guard img {
    height: 380px;
    max-width: 100%;
  }
  .hero {
    justify-content: flex-start;
    align-items: flex-start;
    min-height: auto;
    padding: 120px 4% 50px;
    gap: 30px;
  }
  .hero-text h1 {
    font-size: 42px;
  }
  .hero-text p {
    font-size: 17px;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .service-block {
    min-height: 240px;
  }
  .service-block h3 {
    font-size: 20px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  header {
    height: auto;
    padding: 16px 4%;
    align-items: flex-start;
    gap: 16px;
  }
  .logo-text {
    font-size: 24px;
  }
  .carousel-section {
    padding: 90px 4% 50px;
  }
  .carousel-slide {
    min-height: 560px;
  }
  .slide-title h2 {
    font-size: clamp(34px, 12vw, 60px);
  }
  .slide-title {
    top: 38%;
  }
  .slide-guard {
    margin-top: 90px;
  }
  .slide-guard img {
    height: 300px;
    max-width: 100%;
  }
  .hero {
    justify-content: flex-start;
    align-items: flex-start;
    min-height: auto;
    padding: 110px 4% 50px;
    gap: 24px;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .hero-text p {
    font-size: 16px;
  }
  .section-title h2 {
    font-size: 34px;
  }
  .hero-buttons {
    width: 100%;
  }
  .services-blocks-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 30px 4%;
  }
}
