* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #F1F5F9;
  color: #1E293B;
  scroll-behavior: smooth;
  line-height: 1.5;
  overflow-x: hidden;
}

:root {
  --primary-dark: #0a1c3a;
  --primary-navy: #0f2b4f;
  --secondary-black: #0A0F1A;
  --gray-soft: #E2E8F0;
  --gray-medium: #64748B;
  --gray-light: #CBD5E1;
  --white: #FFFFFF;
  --dark-bg: #0A0F1A;
  --card-bg-dark: #111827;
  --card-bg-light: #FFFFFF;
  --border-light: #E2E8F0;
  --border-dark: #1F2A3E;
  --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes floatLogo {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease forwards;
}
.animate-fade-left {
  animation: fadeInLeft 0.8s ease forwards;
}
.animate-fade-right {
  animation: fadeInRight 0.8s ease forwards;
}
.animate-scale {
  animation: scaleIn 0.6s ease forwards;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: inherit;
  position: relative;
  display: inline-block;
}
.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
}
.text-center {
  text-align: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-size: 1rem;
}
.btn-primary {
  background-color: var(--primary-dark);
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-primary:hover {
  background-color: #1E3A5F;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10,28,58,0.2);
}
.btn-outline-dark {
  border: 1.5px solid var(--primary-dark);
  color: var(--primary-dark);
  background: transparent;
}
.btn-outline-dark:hover {
  background: var(--primary-dark);
  color: white;
}

/* Carrousel */
.carousel-section {
  padding: 0;
  margin-top: 0;
}
.carousel-container {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
}
.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  visibility: hidden;
}
.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}
.carousel-caption {
  position: absolute;
  bottom: 30%;
  left: 10%;
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  max-width: 500px;
  z-index: 5;
}
.carousel-caption h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.carousel-caption p {
  font-size: 1.2rem;
  opacity: 0.9;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 28, 58, 0.7);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  z-index: 10;
}
.carousel-btn:hover { background: #0a1c3a; }
.prev { left: 20px; }
.next { right: 20px; }
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: white;
  width: 30px;
  border-radius: 10px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  padding: 4rem 0 5rem 0;
}
.hero-grid {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-content {
  flex: 1;
}
.hero-badge {
  background: var(--primary-dark);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--gray-medium);
  margin-bottom: 2rem;
  max-width: 550px;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-image {
  flex: 1;
  border-radius: 20px;
  min-height: 320px;
  background-image: linear-gradient(45deg, #0a1c3a40, #0a1c3a20), url('../IMG/camera.png');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}

/* Services Grid */
.services-section, .tech-section {
  background: var(--dark-bg);
}
.services-grid, .tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service-card, .tech-card {
  background: var(--card-bg-dark);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border: 1px solid var(--border-dark);
  opacity: 0;
  transform: translateY(30px);
  color: var(--white);
}
.service-card.visible, .tech-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover, .tech-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--white);
  box-shadow: var(--shadow-sm);
}
.service-icon, .tech-icon {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.service-card h3, .tech-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.service-card p, .tech-card p {
  color: #94A3B8;
}
.services-section .section-title, .tech-section .section-title {
  color: var(--white);
}
.services-section .section-title:after, .tech-section .section-title:after {
  background: var(--white);
}

/* Features */
.features-section {
  background: var(--white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.feature {
  background: #F8FAFC;
  padding: 1.8rem;
  border-radius: 16px;
  border-left: 4px solid var(--primary-dark);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
  box-shadow: var(--shadow-sm);
}
.feature.visible {
  opacity: 1;
  transform: translateX(0);
}
.feature:hover {
  transform: translateX(5px);
  background: #F1F5F9;
}
.feature i {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.feature h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}
.feature p {
  color: var(--gray-medium);
}
.features-section .section-title {
  color: var(--primary-dark);
}
.features-section .section-title:after {
  background: var(--primary-dark);
}

/* Partners Section */
.partners-section {
  background: linear-gradient(rgba(10, 15, 26, 0.85), rgba(10, 15, 26, 0.9)), url('../IMG/partners-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}
.partner-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  opacity: 0;
  transform: scale(0.9);
  min-width: 220px;
  cursor: pointer;
}
.partner-card.visible {
  opacity: 1;
  transform: scale(1);
}
.partner-card:hover {
  transform: translateY(-15px) scale(1.08);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}
.partner-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 20px;
  transition: all 0.4s ease;
  overflow: hidden;
}
.partner-card:hover .partner-logo {
  animation: floatLogo 0.5s ease-in-out;
}
.partner-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.partner-card p {
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.partner-card strong {
  color: var(--white);
  font-size: 1.1rem;
  display: block;
}
.partners-section .section-title {
  color: var(--white);
}
.partners-section .section-title:after {
  background: var(--white);
}

/* Agences Section */
.agences-section {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
}
.agences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.agence-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  opacity: 0;
  transform: translateY(30px);
}
.agence-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.agence-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-dark);
}
.agence-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}
.agence-card:hover .agence-icon {
  transform: scale(1.1);
}
.agence-icon i {
  font-size: 2rem;
  color: white;
}
.agence-card h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.agence-card p {
  color: var(--gray-medium);
  line-height: 1.6;
}
.agence-card .address {
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 0.8rem;
}
.agences-section .section-title {
  color: var(--primary-dark);
}
.agences-section .section-title:after {
  background: var(--primary-dark);
}

/* Contact */
.contact-section {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
}
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  background: var(--white);
  border-radius: 32px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.contact-info {
  flex: 1;
  background: var(--primary-dark);
  border-radius: 24px;
  padding: 2rem;
  color: white;
}
.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.contact-detail i {
  font-size: 1.4rem;
  width: 32px;
}
.whatsapp-btn {
  background: #25D366;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  margin-top: 1rem;
  transition: 0.2s;
}
.whatsapp-btn:hover {
  transform: scale(1.05);
}
.contact-form {
  flex: 1;
  padding: 0.5rem;
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  color: var(--primary-dark);
  font-family: inherit;
  transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-dark);
  transform: scale(1.01);
}
button[type="submit"] {
  background: var(--primary-dark);
  color: white;
  border: none;
  width: 100%;
  padding: 1rem;
  font-weight: bold;
  border-radius: 40px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}
button[type="submit"]:hover {
  background: #1E3A5F;
  transform: translateY(-2px);
}
.contact-section .section-title {
  color: var(--primary-dark);
}
.contact-section .section-title:after {
  background: var(--primary-dark);
}

/* About section */
.about-section {
  background: var(--white);
}
.about-section .section-title {
  color: var(--primary-dark);
}
.about-section .section-title:after {
  background: var(--primary-dark);
}

/* Footer */
footer {
  background: #0a1c3a;
  color: #94A3B8;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border-dark);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
}
.toast-msg {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0a1c3a;
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  z-index: 1000;
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}

/* Page title */
.page-title {
  background: linear-gradient(135deg, #0a1c3a 0%, #0f2b4f 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}
.page-title h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.page-title p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.2rem; }
  .carousel-container { height: 350px; }
  .carousel-caption { bottom: 20%; left: 5%; }
  .carousel-caption h2 { font-size: 1.5rem; }
  .section-title { font-size: 1.8rem; }
  .partner-logo { width: 120px; height: 120px; }
  .partner-logo img { width: 80px; height: 80px; }
}