body {
    padding-top: 10px;  /* ⬇️ Empuja el contenido hacia abajo para que no quede tapado */
    
}

/* Contenedor del navbar */
nav {
    display: flex;
    justify-content: space-between; /* Logo a la izquierda, menú a la derecha */
    align-items: center;
    padding: 15px 50px;
    background-color: #0c0851; /* Azul de tu branding */
    box-shadow: 0 4px 15px rgba(128, 96, 193, 0.299);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Lista de enlaces */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Items de la lista */
nav ul li {
    margin-left: 30px;
}

/* Enlaces del navbar */
nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hover efecto */
nav ul li a:hover {
    color: #d22828; /* Dorado para destacar */
    transform: scale(1.1);
}

/* Logo */
.logo {
    width: 50px;
    height: auto;
}

/* Botón iniciar sesión */
.login-btn {
    background-color: #851520;
    color: #f6faff;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin-left: 30px;
}

/* Hover botón */
.login-btn:hover {
    background-color: #a2454e;
    transform: scale(1.05);
}

/* Flex para el menú derecho (links + botón) */
nav .menu-right {
    display: flex;
    align-items: center;
}

/* Iconos opcionales (bootstrap icons) */
nav ul li i {
    font-size: 1rem;
}


------------------------------------------------------

nav {
    background-color: #1a0967;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    
    position: fixed;     /* 🔒 Hace que se quede fijo */
    top: 0;              /* Se pega al borde superior */
    left: 0;
    width: 100%;         /* Que ocupe todo el ancho */
    z-index: 1000;       /* Que quede encima de todo */
    box-shadow: 0 2px 5px rgba(24, 131, 65, 0.1); /* Sombra opcional */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* hace que los <li> estén en fila */
    gap: 20px;
    align-items: center;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.logo {
    height: 40px;
    width: auto;
}




.login-btn:hover {
    background-color: #e33b3b;
}

h1 {
    font-size: 3rem;
    color: white;
    text-shadow:
        -1px -1px 0 black,
        -1px -1px 0 black,
        -1px -1px 0 black,
        -1px -1px 0 black;
}


.subtitle {
    color: black;
}






/* 🌟 SECCIÓN PRINCIPAL */
#section1 {
  background: linear-gradient(to bottom right, #004AAD, #ffffff);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

/* Título y subtítulo */
#section1 h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s ease;
}

#section1 .subtitle {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 40px;
  animation: fadeInUp 1.2s ease;
}

/* 🎠 CARRUSEL */
.custom-carousel {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

/* Efecto hover */
.custom-carousel:hover {
  transform: scale(1.02);
}

/* Imágenes del carrusel */
.custom-carousel img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 1.2s ease-in-out;
}

/* Zoom suave al pasar el mouse */
.carousel-item:hover img {
  transform: scale(1.05);
}

/* Texto encima de las imágenes */
.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px 20px;
  border-radius: 12px;
}

.carousel-caption h5 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.carousel-caption p {
  font-size: 1rem;
  color: #eaeaea;
}

/* Controles del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 15px;
  filter: invert(100%);
  transition: background-color 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

/* Indicadores (puntos) */
.carousel-indicators [data-bs-target] {
  background-color: #004aad;
}

.carousel-indicators .active {
  background-color: #1a2b49;
}

/* Animaciones suaves */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .custom-carousel img {
    height: 300px;
  }

  #section1 h1 {
    font-size: 2rem;
  }

  #section1 .subtitle {
    font-size: 1rem;
  }
}

/* Overlay centrado dentro de la imagen */
.carousel-overlay {
    position: absolute;
    top: 50%;               /* Centrado vertical */
    left: 50%;              /* Centrado horizontal */
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;   /* No interfiere con los clicks */
}

/* Estilo del texto */
.carousel-overlay h1 {
    font-size: 3rem;
    color: #951313;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(47, 82, 158, 0.6);
    background-color: rgba(245, 241, 241, 0.416); /* Opcional: fondo semitransparente */
    padding: 10px 20px;
    border-radius: 12px;
    animation: fadeInDown 1s ease;
}

/* Animación de entrada */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
-------------------------
/* logo*/
.navbar-brand .logo {
  height: 200px;              /* Tamaño base del logo */
  transition: transform 0.3s ease-in-out;
}

.navbar-brand:hover .logo {
  transform: scale(1.1);     /* Efecto suave al pasar el mouse */
}

@media (max-width: 768px) {
  .navbar-brand .logo {
    height: 45px;            /* Más pequeño en pantallas móviles */
  }
}

