html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Contenedor principal con la imagen */
#miDiv {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Imagen de fondo ajustada */
#miDiv img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: none;
}

/* Grupo de búsqueda */
.custom-group {
    display: flex;
    flex-wrap: nowrap;
    background-color: white;
    padding: 10px;
    border-radius: 0px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.15);
    align-items: center;
}

/* Input largo */
.custom-input {
     height: 1.8cm !important;
  width:400px !important;
    font-size: 1.2rem;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 18px !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Botón estilizado */
  .custom-button {
  height: 1.8cm !important;         /* 🔹 Igual alto que el input */
    padding: 0 25px !important;       /* 🔹 Espaciado horizontal */
    font-size: 0.95rem;               /* 🔹 Tamaño de texto */
    color: #fff;                      /* 🔹 Texto blanco */
    background-color: #6c757d;        /* 🔹 Color similar a btn-secondary */
    border: none;                     /* 🔹 Sin borde extra */
    display: flex;                    /* 🔹 Para alinear ícono y texto */
    align-items: center;              /* 🔹 Centrar verticalmente */
    justify-content: center;          /* 🔹 Centrar horizontalmente */
    gap: 8px;                         /* 🔹 Espacio entre ícono y texto */
    white-space: nowrap;              /* 🔹 Evita salto de línea */
    border-radius: 0;                 /* 🔹 Mantiene forma rectangular */
  }
/* ✅ Ajuste fino para centrar la lupa dentro del botón */
.btn-secondary3.custom-button i {
    font-size: 1.3rem;       /* Tamaño del ícono */
    line-height: 1;          /* Alineación vertical */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hace que el input y el botón compartan el ancho disponible */
.custom-group > * {
  display: flex;
    align-items: stretch; /* 🔹 Hace que input y botón tengan la misma altura */
    background-color: white;
    padding: 10px;
    border-radius: 0px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.15);
}

/* Botón base */
.btn-secondary3 {
    color: white !important;
    background-color: #012060 !important;
    border-radius: 0 50px 50px 0 !important;
    transition: 0.3s ease;
    box-shadow: 0 2px 13px 0 rgba(54, 54, 54, 0.4);
    font-family: Arial, sans-serif !important;
    font-weight: bold !important;
}

/* Hover botón */
.btn-secondary3:hover {
    background-color: #012060 !important;
}

/* Segundo botón base */
.btn-secondary4 {
    letter-spacing: .5px !important;
    color: #fff !important;
    background-color: #012060 !important;
    transition: background-color .3s;
    box-shadow: 0 2px 13px 0 rgba(54, 54, 54, .4) !important;
    font-family: sans-serif !important;
    font-weight: bold !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hover botón */
.btn-secondary4:hover {
    background-color: #012060 !important;
}

/* Input enfocado */
#username3:focus {
    border-color: #012060 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 255, 0.3) !important;
    outline: none !important;
}

/* Placeholder */
.custom-input::placeholder {
    color: #012060;
    font-size: 1rem;
    text-align: center;
}

/* Contenedor superior */
#contenedor-superior {
    position: relative;
    height: 100vh;
}

/* Imagen del carrusel */
.carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Buscador (posición dinámica) */
#search-lupa2 {
    position: absolute;
    top: 50%;
    left: 72%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

/* --- RESPONSIVE --- */
@media (max-width: 1400px) {
    #search-lupa2 {
        left: 68%;
    }
}

@media (max-width: 1200px) {
    #search-lupa2 {
        left: 60%;
    }
}

/* Aquí está el ajuste que centra el buscador automáticamente */
@media (max-width: 992px) {
    #search-lupa2 {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        justify-content: center;
    }
}

/* En pantallas muy pequeñas, bajamos un poco el alto */
@media (max-width: 768px) {
    #miDiv {
        height: 80vh;
    }

    #miDiv img {
        object-fit: contain;
    }

    #search-lupa2 {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
    }
}

/* Botón generar resumen */
#summary-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 1rem;
}

#generate-summary-btn {
    width: 60%;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navbar inicial transparente sobre imagen */
#navbar-inicio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(6px);
    padding: 0.5rem 1rem;
}

#navbar-inicio * {
    /* color: white !important; */   /* ← deshabilitada temporalmente */
    color: #6c757d !important; /* gris Bootstrap */
}

/* Fix dropdown menu clipping and improve button styles */
#summary-container .input-group {
    overflow: visible;
    align-items: stretch; /* Ensure buttons are the same height */
}

#summary-container .btn {
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#generate-summary-btn {
    font-size: 1.25rem; /* Make the main button slightly larger */
    font-weight: bold;
}

#summary-container .dropdown-menu {
    z-index: 1050;
}
