@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  --primary-blue: #2d81f1;
  --primary-blue-dark: #171a4a;
  --secondary-accent: #00d2ff;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.7;
  color: var(--dark-gray);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* NAVBAR STYLES - EXPERT TOUCH */
.navbar-custom {
  background-color: var(--primary-blue-dark);
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  color: var(--white) !important;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  /* Cambiado a blanco puro */
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
  opacity: 0.9;
}

.navbar-nav .nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background: var(--primary-blue);
}

.dropdown-menu {
  background-color: rgba(23, 26, 74, 0.95);
  /* Cambiado a azul oscuro */
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  margin-top: 5px;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.9) !important;
  /* Mejor contraste */
  padding: 8px 20px;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: var(--primary-blue);
  color: var(--white) !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.7);
  /* Más visible */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* CAROUSEL STYLES - ACTUALIZADO CON COLORES AZULES */
.hero-carousel {
  margin-bottom: 30px;
}

.carousel-item {
  height: 500px;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-caption {
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  bottom: 100px;
}

.carousel-caption h3 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 20px;
  color: var(--white);
}

.carousel-caption p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(23, 26, 74, 0.6);
  /* Cambiado a azul oscuro */
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--primary-blue-dark);
  opacity: 1;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background-color: var(--primary-blue-dark);
  /* Cambiado a azul oscuro */
  opacity: 0.5;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: var(--primary-blue);
}

/* EXISTING STYLES - ACTUALIZADOS CON COLORES AZULES */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--primary-blue-dark);
  /* Cambiado a azul oscuro */
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-dark));
  /* Cambiado a azul oscuro */
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  /* Cambiado a azul oscuro */
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--white) !important;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 129, 241, 0.3);
  color: var(--white) !important;
}

.card-custom {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

.rounded-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
}

.bg-light-custom {
  background-color: var(--light-gray);
}

/* MOBILE BANNER STYLES */
.mobile-banner {
  height: 350px;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.mobile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mobile-banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  padding: 20px;
  text-align: center;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 991px) {
  .carousel-item {
    height: 400px;
  }

  .carousel-caption {
    padding: 20px;
    bottom: 60px;
  }

  .carousel-caption h3 {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .carousel-item {
    height: 350px;
  }

  .carousel-caption {
    padding: 15px;
    bottom: 30px;
    max-width: 90%;
  }

  .carousel-caption h3 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .navbar-brand img {
    height: 30px;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Page context specific */
.page-content {
  padding: 40px 0 0 0;
}

.placeholder-section {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.placeholder-section h3 {
  color: var(--primary-blue-dark);
  margin-bottom: 20px;
}

/* DEBISA & EXPERT STYLES ADDED */
.debisa-logo {
  max-width: 250px;
  width: 100%;
  height: auto;
  margin: 0 auto 30px;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: var(--transition-fast);
}

.debisa-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.material-section {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Footer Styles (Moved from base.html) */
.footer-custom {
  background-color: var(--primary-blue-dark);
  color: var(--white);
  padding: 70px 0 30px;
  margin-top: 80px;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.footer-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-accent));
}

.footer-custom h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-custom h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-accent);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(45, 129, 241, 0.5);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  margin-right: 12px;
  transition: var(--transition-fast);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
  background-color: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(45, 129, 241, 0.4);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}