/* Estilos generales */


/* Header */
.header-sabrosona {
    background: linear-gradient(135deg, #ff6b6b, #f97316);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  position: relative;
  overflow: visible;
}

.navbar-brand img {
  position: absolute;
  top: -10px; /* Sobresale hacia arriba */
  left: -51px;
  height: 90px; /* Ajusta tamaño */
  z-index: 10;
}

.navbar-brand span {
  padding-left: 60px; /* Espacio para el logo */
  font-weight: 700;
  font-size: 1.2rem;
}


.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffeaa7 !important;
}

/* Main Content */
.main-content {
    flex: 1 0 auto; /* Crecer para llenar el espacio */
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0;
    padding: 20px;
    height: calc(100vh - 80px - 60px); /* Altura explícita menos header y footer */
}

/* Iframe Container */
.iframe-container {
    /*flex: 3; /* ~75% del ancho */
    width: calc(100% - 90px); /* 40px de margen a cada lado */
    margin: 0 25px; /* Márgenes laterales */
    height: 100%; /* Ocupar toda la altura del padre */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Solo sombra externa */
    overflow: hidden;
}

.content-iframe {
    width: 100%;
    height: 100%; /* Ajustado de 90% a 100% para igualar */
    border: none;
    border-radius: 8px;
    overflow: auto; /* Desplazamiento interno */
}

/* Facebook Widget */
.facebook-widget {
    flex: 1; /* ~25% del ancho */
    min-width: 280px; /* Ancho mínimo */
    max-width: 400px; /* Ancho máximo */
    height: 100%; /* Igualar altura del iframe-container */
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0px;
    overflow: auto; /* Permitir desplazamiento si el contenido excede */
}

.fb-page {
    width: 100% !important; /* Ocupar todo el ancho del contenedor */
    height: 50% !important; /* Ocupar toda la altura del contenedor */
}

/* Footer */
/*footer {
    background: #343a40;
    color: #ffffff;
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    flex-shrink: 0;
}*/

/* Widget de radio */
.radio-widget {
    position: fixed;
    bottom: 25px; /* Ajustado para no superponerse al footer */
    right: 20px;
    background: #1a1a1a; /* Negro oscuro */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #f97316; /* Borde naranja */
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.radio-widget:hover {
    transform: scale(1.1);
}

.radio-widget i {
    font-size: 1.5rem;
    color: #f97316; /* Icono naranja */
}

.radio-widget i:hover {
    font-size: 1.5rem;
    color: #ff0000ff; /* Icono rojo al hover */
    transform: scale(1.1);
}

.radio-controls {
    position: fixed;
    bottom: 70px; /* Ajustado para no superponerse al footer */
    right: 20px;
    background: #1a1a1a; /* Negro oscuro */
    border: 2px solid #f97316; /* Borde naranja */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 1000;
    color: #ffffff; /* Texto blanco */
}

.radio-controls .form-range {
    width: 140px;
    accent-color: #f97316; /* Slider naranja */
}

.radio-controls button {
    background: #1a1a1a; /* Botón negro */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.radio-controls button:hover {
    background: #1a1a1a; /* Mantener negro al hover */
}

.radio-info {
    color: #ffeaa7; /* Texto amarillo claro para contraste */
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 1.4;
}

.radio-info p {
    margin: 0;
}

.stream-error, .stream-prompt {
    display: none; /* Ocultar permanentemente */
}

/* Estilo para el botón flotante en móviles */
/* Botón flotante que solo aparece en móviles */
.fb-toggle-btn {
     position: fixed;
    bottom: 25px; /* Ajustado para no superponerse al footer */
    right: 20px;
    background: #1a1a1a; /* Negro oscuro */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #f97316; /* Borde naranja */
    cursor: pointer;
    z-index: 1000;
    display: none; /* Oculto por defecto, solo se muestra en móviles */
    color:#f97316;
    transition: transform 0.3s ease;
}


.fb-toggle-btn:hover {
    font-size: 1.5rem;
    color: #ff0000ff; /* Icono rojo al hover */
    transform: scale(1.1);
}

/* Estilo para el widget cuando está activo en móviles */
#facebookWidget.mobile-visible {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: white;
    padding: 5px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
}


/* Responsividad */
@media (max-width: 768px) {

    .fb-toggle-btn {
        display: block;
    }

    .facebook-widget {
        display: none;
        position: fixed;
        bottom: 80px;
        right: 20px;
        background: white;
        padding: 5px;
        border: 1px solid #ccc;
        z-index: 999;
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        height: 90%;
        width: 100%;
    }

    .facebook-widget.mobile-visible {
        display: block;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        height: 30px;
    }

    .navbar-brand img {
    position: absolute;
    top: 0px;
    left: -12px;
    height: 76px;
    z-index: 10;
    }

    .main-content {
        flex-direction: column; /* Apilar iframe y widget en móviles */
        padding: 15px;
       /* height: auto; /* Permitir altura automática */
    }

    .iframe-container {
        width: calc(100% - 30px); /* 15px de margen a cada lado */
        margin: 0 15px; /* Márgenes laterales reducidos */
        /*height: auto; /* Altura automática */
        min-height: 300px; /* Mínimo para móviles */
    }

    .content-iframe {
        height: 100%; /* Altura fija en móviles para control */
    }

    .facebook-widget {
        width: calc(100% - 30px); /* Ocupar ancho disponible */
        margin: 15px 15px 0; /* Margen superior para separación */
        min-width: unset; /* Sin ancho mínimo */
        max-width: unset; /* Sin ancho máximo */
        height: calc(100% - 130px);
        width: auto;
    }

    .fb-page {
        height: 100% !important; /* Ocupar toda la altura */
    }

    .radio-widget {
        width: 50px;
        height: 50px;
        bottom: 70px; /* Ajustado para footer */
    }
    .fb-toggle-btn {
        width: 50px;
        height: 50px;
        bottom: 10px; /* Ajustado para footer */
    }

    .radio-widget i {
        font-size: 1.2rem;
    }

    .radio-controls {
        bottom: 60px; /* Ajustado para footer */
        right: 10px;
        padding: 15px;
    }

    .radio-controls .form-range {
        width: 120px;
    }

    .radio-controls button {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .navbar-toggler .navbar-toggler-icon {
        width: 15px;
        height: 15px;
    }
}