html {
    height: 100%;
}
/*---------------------------------------NAV---------------------------------*/
.menu {
    background-color:  #d62828;
nav {
   overflow: visible; /* permite que el dropdown "salga" */
}
}

.opcion {
    margin-top: 10px;
}

.opcion :hover {
    background-color: rgb(170, 43, 43);
    border-radius: 5px;
}

/* Menú hamburguesa */
.navbar-toggler {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Menú responsive */
#navbarMenu {
    display: flex;
}

/* Ocultar el menú en pantallas pequeñas y mostrar solo cuando esté activo */
@media (max-width: 992px) {
    #navbarMenu {
        display: none; /* Oculta el menú en pantallas pequeñas */
        flex-direction: column; /* Coloca las opciones en columna */
        background-color: red;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        z-index: 1;
        padding: 10px;
    }
    
    /* Mostrar el menú cuando esté activo */
    #navbarMenu.active {
        display: flex;
    }

}
/* Botón de idioma */
.language-selector {
    position: relative;
}

/* Botón */
.language-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Iconos de banderas */
.flag-icon {
    width: 20px;
    height: 20px;
}

/* Menú desplegable */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;           /* aparece debajo del botón */
    right: 0;            /* alineado a la derecha */
    background-color: #fff;
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    z-index: 9999;       /* por encima del nav */
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
}

/* Mostrar menú al hacer hover */
.language-selector:hover .dropdown-content {
    display: block;
}

/* Mostrar el menú desplegable al hacer hover */
.language-selector:hover .dropdown-content {
    display: block;
}

/* Hover sobre botones del menú */
.dropdown-content button:hover {
    background-color: #ddd;
}
/* ----------------------COVER ------------------------------------*/
.cover {
    margin-top: -5px;
    position: relative;
    height: 85vh;
   background: #fff; /* limpio, puedes poner gradiente si quieres */
    color: #333;
    display: flex;
    align-items: center;
}
#ben{
    color: black;
}
/* Caja de texto */
.cover-content {
   background: linear-gradient(rgba(0,0,0,0.5), rgba(37, 37, 37, 0.5));
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.cover-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}
.cover-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
}
#titulo1{
    color: #d62828;
}
/* Imagen lateral */
.hero-img {
    max-width: 90%;
    transition: transform 0.3s ease;
}
.hero-img:hover {
    transform: scale(1.03);
}
/* Botón */
.cover-content .btn-danger {
    border-radius: 50px;
    font-weight: 600;
    padding: 12px 28px;
}
/* Responsive */
@media (max-width: 992px) {
    .cover {
        height: auto;
        padding: 3rem 1rem;
    }

    .cover-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .cover-content h1 {
        font-size: 2rem;
    }

    .hero-img {
        max-width: 100%;
    }
}
/*--------------------------BENEFICIOS-------------------------------------*/
.beneficios {
  background: white /* fondo oscuro */
}
.beneficio-card {
  background: #d62828; /* ligeramente translúcido */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.beneficio-card i {
  color: white;
}
.beneficio-card h5 {
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}
.beneficio-card p {
  font-size: 0.9rem;
  color: whiteD;
}
.beneficio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px #d62828;
}
/*--------------------------cATEGORIASL-------------------------------------*/
.categorias {
  background: #d62828; /* rojo fuerte */
}
.categoria-card .card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.categoria-card img {
  height: 180px;
  object-fit: cover;
}
.categoria-card .card-body {
  background: #fff;
  padding: 15px;
}
.categoria-card .card-title {
  color: #333;
  font-weight: 600;
}
.categoria-card:hover .card {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/*--------------------------CARROUSEL-------------------------------------*/
.carousel-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}
.carousel-item .row+.row {
    margin-top: 10px;
}
.info {
    text-align: justify;
}

/*-------------------------PIE DE PAGINA --------------------------------*/
.pie {
    background-color:  #d62828;
    color: white;
    margin-bottom: -100px;
    padding-bottom: -100px;
    max-width: 100%;
    max-height: 50%;
    overflow: hidden;
}
.pieft{
    width: 200px;
}
.redes {
    color: white;
}


/*--------------------------CONTACTO-----------------------------------*/
.contact-box {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
}
.contact-box .text-content {
    flex: 1;
    margin-right: 20px;
}
.contact-box .info-content {
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.contact-box .info-content h4 {
    margin-top: 0;
}
.contact-box .info-content .icon {
    margin-right: 10px;
}
p {
    text-align: justify;
}
@media (max-width: 992px) {
    .contact-box {
        display: flex;
        flex-direction: column; /* Cambia la dirección a columna */
    }
    
    .contact-box .text-content {
        flex: 1;
        margin-bottom: 20px; /* Ajusta el margen para separar del contenido de abajo */
    }
    
    .contact-box .info-content {
        flex: 1; /* Cambia el valor para que ambos elementos se distribuyan equitativamente en columnas */
    }

}

/*---------------------boton flotante---------------------*/
.typing::after {
    content: '|';
    animation: blink 0.7s infinite;
}
/* Animación de parpadeo del cursor */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    50%,100% {
        opacity: 0;
    }
}