/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #1c74bc; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #27a9e0; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */

  /* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */

  --nav-color: #1c74bc; /* The default color of the main navmenu links */
  --nav-hover-color: #27a9e0; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #212529; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #27a9e0; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

.btn-getstarted,
.btn-getstarted:focus {
  color: var(--contrast-color) !important;
  background: var(--accent-color) !important;
  font-size: 15px !important;
  padding: 8px 12px !important;
  margin: 0 0 0 30px !important;
  border-radius: 4px !important;
  transition: 0.3s !important;
  font-weight: 500 !important;
}

.btn-getstarted:hover,
.btn-getstarted:focus:hover {
  color: var(--contrast-color) !important;
  background: color-mix(
    in srgb,
    var(--accent-color),
    transparent 15%
  ) !important;
}

.mobile-nav-toggle {
  color: var(--nav-color) !important;
}

@media (max-width: 1199px) {
  .header .logo img {
    max-height: 12vh;
    margin-right: 8px;
  }

  .mobile-nav-active .navmenu {
    position: fixed !important;
    overflow: hidden !important;
    inset: 0 !important;
    background: rgba(252, 254, 255, 0.8) !important;
    transition: 0.3s !important;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 50%);
  }
}

/* .sidebar-item.active > .sidebar-link {
  background-color: #27a9e0 !important;
  color: #fff !important; 
  border-radius: 4px !important;
} */

/* Estilo mejorado para resaltar el enlace activo con un subrayado personalizado */
.sidebar-item.active > .sidebar-link {
  color: var(--accent-color) !important; /* Color del texto del enlace activo */
  text-decoration: none !important; /* Eliminar el subrayado predeterminado */
  position: relative; /* Posición relativa para alinear el subrayado */
}

.sidebar-item.active > .sidebar-link:after {
  content: ""; /* Contenido vacío para el elemento after */
  position: absolute; /* Posición absoluta para el subrayado */
  bottom: -1px; /* Ajuste para bajar el subrayado un poco */
  left: 0; /* Alinear el subrayado con el texto */
  width: 100%; /* Ancho completo del subrayado */
  height: 3px; /* Grosor del subrayado */
  background-color: var(--accent-color); /* Color del subrayado */
}

.accordion-button:not(.collapsed) {
  color: var(--contrast-color) !important;
  background-color: var(--nav-color) !important;
}

.features .feature-box {
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.15) !important;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 15px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.whatsapp-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: #25d366;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  touch-action: manipulation;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
  line-height: 0;
}

.whatsapp-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.whatsapp-float.active .whatsapp-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 25px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.whatsapp-option:hover {
  transform: translateX(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: #075e54;
}

.whatsapp-float.active .whatsapp-option {
  transform-origin: bottom right;
}

.whatsapp-option i {
  font-size: 20px;
  color: #25d366;
}

.whatsapp-label {
  font-size: 13px;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

.whatsapp-btn {
  animation: whatsapp-pulse 2s infinite;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 75px;
    right: 15px;
  }

  .whatsapp-btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .whatsapp-option {
    padding: 6px 12px;
    font-size: 12px;
  }
}

.form-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
  border-top: 3px solid #0dcaf0;
}

.form-card .form-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #0dcaf0;
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color, #1c74bc);
}

.form-card .form-card-header i {
  font-size: 22px;
  color: #2596be;
}

.form-card .form-label {
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 6px;
}

.form-card .form-control,
.form-card .form-select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.form-card .form-control {
  background: #fff;
}

.form-card .form-select {
  background-color: #fff;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: #2596be;
  box-shadow: 0 0 0 3px rgba(37, 150, 190, 0.1);
}

.form-card .invalid-feedback {
  font-size: 12px;
  margin-top: 4px;
}

.form-card .loading,
.form-card .sent-message,
.form-card .error-message {
  display: none;
}

.form-card .btn-cpel {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .values .card h3 {
    font-size: 16px;
    hyphens: auto;
    word-break: break-word;
  }
}

.hero-description {
  font-size: 1.2rem;
  color: #555;
  margin: 10px 0 30px 0;
  max-width: 600px;
}

.hero .btn-get-started {
  gap: 8px;
}

.hero .btn-get-started i {
  margin-left: 0;
}

.hero .btn-get-started.btn-outline-hero {
  background: transparent;
  border: 2px solid var(--heading-color);
  box-shadow: none;
  color: var(--heading-color);
}

.hero .btn-get-started.btn-outline-hero:hover {
  background: var(--heading-color);
  color: #fff;
}

.btn-cpel {
  color: #ffffff;
  background: #2596be;
  border: 1px solid #2596be;
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37, 150, 190, 0.25);
}

.btn-cpel:hover {
  background: color-mix(in srgb, #2596be, black 15%);
  border-color: color-mix(in srgb, #2596be, black 15%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 150, 190, 0.35);
}

/* News Cards (compartido entre inicio y noticias) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.news-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.news-card.h-100 {
  height: 100%;
}

.news-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f3f5;
  flex-shrink: 0;
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-img-wrap img {
  transform: scale(1.06);
}

.news-card-date {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 5px 12px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.news-card-date i {
  font-size: 13px;
  color: var(--accent-color, #27a9e0);
}

.news-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading-color, #1c74bc);
  margin: 0 0 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-text {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color, #27a9e0);
  text-decoration: none;
  transition: gap 0.2s;
  margin-top: auto;
}

.news-card-link:hover {
  gap: 10px;
  color: var(--heading-color, #1c74bc);
}

.news-card-link i {
  font-size: 14px;
  transition: transform 0.2s;
}

.news-card-link:hover i {
  transform: translateX(3px);
}

@media (max-width: 576px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card-body {
    padding: 16px 18px 20px;
  }
}

.about-img-wrap {
  background: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, var(--accent-color), transparent 92%) 0px,
    color-mix(in srgb, var(--accent-color), transparent 92%) 12px,
    color-mix(in srgb, var(--accent-color), transparent 85%) 12px,
    color-mix(in srgb, var(--accent-color), transparent 85%) 24px
  );
  border-radius: 16px;
  padding: 14px;
}
