:root {
  --primary-navy: #0a2540;
  --secondary-blue: #0056b3;
  --accent-cyan: #00d2ff;
  --dark-slate: #1d2a3a;
  --light-bg: #f4f7fa;
  --white: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header & Navigation */
header {
  background-color: var(--primary-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header.scrolled {
  background-color: rgba(10, 37, 64, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.2rem 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  transition: padding 0.3s ease;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-logo i {
  font-size: 2rem;
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.btn-header {
  background: linear-gradient(
    135deg,
    var(--secondary-blue),
    var(--accent-cyan)
  );
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

/* Hero Section con Imagen Texturizada */
.hero {
  position: relative;
  background:
    linear-gradient(
      135deg,
      rgba(10, 37, 64, 0.92) 0%,
      rgba(29, 42, 58, 0.88) 100%
    ),
    url("../main/hero-bg.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 8rem 2rem 7rem;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent-cyan);
}

.hero p {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--primary-navy);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #00b8e6;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.5);
}

.btn-secondary {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-navy);
}

/* Sección de Estadísticas */
.stats-section {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--secondary-blue);
  font-weight: 700;
}

.stat-item p {
  color: var(--text-muted);
  font-weight: 500;
}

/* Sections Containers */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary-navy);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--secondary-blue);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  margin-top: 8px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.about-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--secondary-blue);
}

.about-card i {
  font-size: 2.5rem;
  color: var(--secondary-blue);
  margin-bottom: 1rem;
}

.about-card h3 {
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(10, 37, 64, 0.12);
  border-color: var(--accent-cyan);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 86, 179, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.service-icon i {
  font-size: 1.8rem;
  color: var(--secondary-blue);
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--primary-navy);
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 37, 64, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  max-width: 550px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  color: #0a2540;
  cursor: pointer;
}

.modal-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-title {
  color: #0a2540;
  font-size: 20px;
  margin-bottom: 10px;
}

.modal-desc {
  color: #4a5568;
  font-size: 14px;
  line-height: 1.5;
}

/* Sección Clientes & Carrusel Homogéneo */
.clients-section {
  background: var(--white);
  padding: 5rem 2rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.slider-container {
  margin-bottom: 4rem;
  overflow: hidden;
  width: 100%;
  padding: 1rem 0;
}

.slider-track {
  display: flex;
  align-items: center;
  width: calc(240px * 8); /* Ajustado a la cantidad total de slides en loop */
  animation: scrollSlider 22s linear infinite;
}

.slider-track:hover {
  animation-play-state: paused;
}

.slide-logo {
  width: 240px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.8rem;
}

/* Estandarización de proporciones y manejo de transparencias */
.slide-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Evita que el logo se deforme o se estire */
  mix-blend-mode: multiply; /* Remueve los fondos blancos/crema sobre el fondo de la página */
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.4s ease;
}

/* Excepción para logos con fondo negro como el de Mulata */
.slide-logo img.logo-dark-bg {
  mix-blend-mode: screen; /* Adapta el fondo negro para integrarse suavemente */
  filter: grayscale(100%) opacity(0.7);
}

/* Efecto al pasar el cursor */

.slide-logo img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

@keyframes scrollSlider {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(-240px * 4)
    ); /* Desplaza exactamente la mitad del total */
  }
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: #ffc107;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.testimonial-text {
  color: var(--text-main);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--secondary-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-info h4 {
  color: var(--primary-navy);
  font-size: 0.95rem;
  margin: 0;
}

.author-info span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Why Choose Us */
.why-us-bg {
  background: #ebf3fa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  background: var(--primary-navy);
  padding: 10px;
  border-radius: 50%;
}

.feature-item h4 {
  color: var(--primary-navy);
  margin-bottom: 4px;
}

/* Contact Section & Form */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  background: var(--white);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-info {
  background: var(--primary-navy);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.4rem;
  color: var(--accent-cyan);
  width: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--primary-navy);
  font-size: 0.9rem;
}

.form-control {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--secondary-blue);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background: var(--primary-navy);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: var(--secondary-blue);
}

/* Footer */
footer {
  background-color: var(--primary-navy);
  color: #94a3b8;
  padding: 3rem 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid #1e293b;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1e293b;
}

.footer-brand {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
}

.copyright {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Animación Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
