/* custom.css */
/* Solución global para eliminar scroll lateral en móvil */
body {
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Botón azul principal */
.btn-primary {
    background-color: #244A9F;
    border: none;
}

.btn-primary:hover {
    background-color: #1b3b7d;
}

/* Links del navbar */
.nav-link {
    color: white;
    font-weight: 500;
}

.nav-link:hover {
    color: #60a5fa;
}

/* Estilo del título de marca */
.brand-title {
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.section-hero {
    margin-top: 56px;
    /* o el valor que prefieras */
}

/* Tipografía nueva para el sitio */
body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* Títulos principales */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Subtítulos o textos destacados */
h1+p,
h2+p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #6c757d;
    /* Gris Bootstrap para subtítulos */
}

/* Links y elementos interactivos */
a,
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.logo-trusted {
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.logo-trusted:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.trusted-logo {
    height: 32px;
    max-width: 100px;
    object-fit: contain;
}


/* Efecto de hover para las cards de la sección de usuarios */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Estilos para la flecha animada */
.transition-icon {
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed) .transition-icon {
    transform: rotate(90deg);
}

/* Acordeón limpio: sin fondo azul cuando se abre */
.accordion-button {
    background-color: white !important;
    color: #212529;
    /* Texto oscuro */
    font-weight: 600;
    box-shadow: none;
}

/* Mantener limpio al abrir */
.accordion-button:not(.collapsed) {
    background-color: white !important;
    color: #0d6efd;
    /* Si quieres que el texto abierto sea azul Bootstrap */
}

/* No mostrar el ícono predeterminado de Bootstrap */
.accordion-button::after {
    display: none;
}

/* Estilo de los links del footer */
.footer-link {
    color: #adb5bd;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

/* Animación hover en íconos de redes sociales */
footer a i {
    transition: all 0.3s ease;
}

footer a:hover i {
    transform: scale(1.2);
    color: #0d6efd;
    text-shadow: 0 0 8px rgba(13, 110, 253, 0.7);
    /* Sombra azul suave */
}

/* Estilos base para el textarea */
textarea.form-control {
    transition: all 0.3s ease;
    border: 1px solid #ced4da;
    background-color: #fff;
}

/* Efecto al hacer focus */
textarea.form-control:focus {
    border-color: #0d6efd;
    /* Azul Bootstrap */
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: scale(1.02);
    /* Ligerísimo crecimiento */
    background-color: #f8f9fa;
    /* Fondo más clarito al activar */
}
/* ============================
   1. ✨ Transiciones suaves
============================ */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out, opacity 0.3s ease-in-out;
  transform: translateY(-20px);
  opacity: 0;
}

.modal.fade.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

#cookie-banner {
  opacity: 0;
  transform: translateY(50%);
  transition: all 0.4s ease;
}

#cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   2. 🎯 Hover para botones y enlaces
============================ */
.btn-primary:hover {
  background-color: #003bbd;
  box-shadow: 0 0.4rem 1rem rgba(0, 73, 208, 0.3);
}

.btn-outline-dark:hover {
  background-color: #000;
  color: #fff;
}

a.text-decoration-underline:hover {
  color: #003bbd;
}

/* ============================
   3. 🌙 Compatibilidad con dark mode
============================ */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }

  .modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
  }

  #cookie-banner {
    background-color: #1e1e1e;
    color: #ccc;
    border-top: 1px solid #444;
  }

  .btn-primary {
    background-color: #0057e6;
  }

  .form-check-label {
    color: #ccc;
  }

  .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
  }

  .text-muted {
    color: #aaa !important;
  }
}
.modal-content {
  animation: fadeIn 0.3s ease-in-out;
}
.modal-content {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.fade-textarea.loading {
    opacity: 0.2;
    pointer-events: none;
}
.skeleton {
    position: relative;
    background: linear-gradient(90deg, #eeeeee 25%, #dddddd 50%, #eeeeee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    color: transparent !important;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}