@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f9f9f6;
  color: #111;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: #fff;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: #f5d000;
  font-size: 1.4rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.btn-yellow {
  background: #f5d000;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
}

/* Hero */
.hero {
  background: url('../img/recursos_sistema/fondo_landing.png') center/cover no-repeat;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  position: relative;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 1200px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Planes */
.planes {
  max-width: 1200px;
  margin: 3rem auto;
  text-align: center;
  padding: 0 1rem;
}

.planes h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.plan-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.plan-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

.plan-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1rem;
}

.price span {
  font-size: 0.9rem;
  color: #555;
}

.plan-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
  color: #444;
}

.plan-card ul li {
  margin: 0.4rem 0;
}

.btn-outline {
  border: 1px solid #f5d000;
  color: #111;
  background: #fff;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
}

.popular {
  border: 2px solid #f5d000;
  background: #fffbe0;
}

.badge {
  background: #f5d000;
  color: #111;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  position: absolute;
  top: 10px;
  right: 10px;
  font-weight: 600;
}

/* Footer */
footer {
  border-top: 1px solid #eee;
  text-align: center;
  padding: 2rem 1rem;
  color: #666;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #666;
  text-decoration: none;
}

.footer-social a img {
  width: 20px;
  margin: 0 0.5rem;
  filter: invert(0.5);
}
/*modal de login***************************+/
/* ============================
   ESTILOS COMPATIBLES CON BOOTSTRAP 4
   ============================ */

/* Fondo difuminado del overlay */
.modal-backdrop.show {
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.5);
}

/* Cuerpo del modal */
.custom-modal {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

/* Encabezado con color degradado */
.modal-header {
  background: linear-gradient(135deg, #007bff, #00aaff);
  border-bottom: none;
  justify-content: center;
  position: relative;
}

/* Botón de cierre (posición y estilo) */
.modal-header .close {
  position: absolute;
  right: 15px;
  top: 10px;
  opacity: 0.9;
  font-size: 1.3rem;
  color: #fff;
  text-shadow: none;
}
.modal-header .close:hover {
  opacity: 1;
}

/* Título centrado */
.modal-title {
  color: #fff;
  font-weight: bold;
  text-align: center;
  width: 100%;
}

/* Contenedor del modal */
.modal-dialog {
  max-width: 380px;
}

/* Animación suave al aparecer */
/* Corrige el "flash" brusco al cerrar */
.modal.fade {
  transition: opacity 0.45s linear !important;
}

.modal.fade .modal-dialog {
  transition: transform 0.45s ease, opacity 0.45s ease !important;
  transform: scale(0.97) translateY(-10px);
  opacity: 0;
}
/* Truco para que el cierre no sea brusco */

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

.modal-backdrop {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.modal-backdrop.show {
  opacity: 0.5;
  backdrop-filter: blur(6px);
}


/* Inputs y botones del formulario */
.modal-body form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.modal-body form input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-body form button {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}
.modal-body form button:hover {
  background-color: #0056b3;
}

/* Enlace de registro */
.modal-body small a {
  text-decoration: none;
}
.modal-body small a:hover {
  text-decoration: underline;
}
/* Fin de los estilos del modal de login ***************************/
.language-selector {
    position: relative;
    margin-left: 20px;
    cursor: pointer;
}

.lang-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.language-menu {
    position: absolute;
    right: 0;
    top: 40px;
    background: white;
    border-radius: 8px;
    padding: 10px 0;
    width: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 999;
}

.language-menu .lang-option {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.language-menu .lang-option:hover {
    background: #f3f3f3;
}

.language-menu img {
    width: 20px;
}