/* ============================= */
/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #0f2a44;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================= */
/* NAVBAR */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: #0f2a44;
    color: white;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.logo span {
    display: block;
    font-size: 12px;
    color: #a0b6d8;
}

.navbar nav a {
    margin-left: 20px;
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.navbar nav a:hover {
    opacity: 0.8;
}

/* BOTONES */

.btn-primary {
    background: #ff6b00;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: #e55d00;
}

.btn-secondary {
    background: #e9ecef;
    color: #333;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* HOME */

.home .hero {
    text-align: center;
    padding: 20px 0px 0px 0px;
}

.home .hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.home .hero p {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 25px;
}

.home .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* TARJETAS HOME */

.home .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.home .card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: 0.25s;
}

.home .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.home .card h3 {
    margin-bottom: 10px;
}

.home .card p {
    font-size: 14px;
    color: #666;
}

/* CTA HOME */

.home .cta {
    text-align: center;
    padding: 0px 0px 20px 0px;
}

.home .cta h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.home .cta p {
    color: #666;
    margin-bottom: 20px;
}

/* DASHBOARD */

.dashboard {
    padding: 50px 80px;
}

.dashboard h1 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

.bienvenida {
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
}

/* GRID TARJETAS */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    align-items: stretch;
}

/* TARJETAS DASHBOARD UNIFORMES */

.dashboard-grid .card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: 0.2s;
    padding: 30px;
    width: auto;
}

.dashboard-grid .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* IMÁGENES DE TARJETAS */

.card-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    display: block;
}

/* CONTENIDO DE TARJETA */

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1; /* fuerza altura uniforme */
}

.card h3 {
    margin-bottom: 10px;
}

.descripcion {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    flex: 1;
}

.card-info {
    list-style: none;
    padding: 0;
    margin: 10px 0 15px 0;
}

.card-info li {
    font-size: 14px;
    margin-bottom: 6px;
}

/* Botón al final de la card */
.card-content .btn-primary {
    margin-top: 1rem;
}

/* FOOTER */

footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    background: #0f2a44;
    color: #f5f7fb;
    font-size: 14px;
}

/* RESPONSIVE */

@media(max-width:768px) {

    .navbar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 20px;
    }

    .home .hero h1 {
        font-size: 30px;
    }

    .home .features {
        grid-template-columns: 1fr;
    }

    .dashboard {
        padding: 30px 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* LOGIN Y REGISTRO */

.login-container,
.registro-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: #0f2a44;
}

.login-card,
.registro-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.login-card h2,
.registro-card h2 {
    margin-bottom: 25px;
}

.login-form,
.registro-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input,
.login-form textarea,
.registro-form input,
.registro-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

.login-form input:focus,
.login-form textarea:focus,
.registro-form input:focus,
.registro-form textarea:focus {
    outline: none;
    border-color: #ff6b00;
}

.login-form button,
.registro-form button {
    margin-top: 10px;
    padding: 12px;
    border-radius: 6px;
    /* Degradado dorado */
    background: linear-gradient(4deg, #4b2e02 0%, #FF9800 50%, #FFC107 100%);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    height: 3rem;
    font-size: 17px;
    /* Para que el texto resalte sobre el gradiente */
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    /* Efecto hover opcional */
    transition: background 0.3s ease;
}

.login-form button:hover,
.registro-form button:hover {
    background: #28a745;
}

.login-form button:hover,
.registro-form button:hover {
    background-color: #000;
}

.login-extra,
.registro-extra {
    margin-top: 18px;
    font-size: 14px;
    color: #666;
}

.login-extra a,
.registro-extra a {
    color: #28a745;
    font-weight: bold;
    text-decoration: none;
}

.login-extra a:hover,
.registro-extra a:hover {
    text-decoration: underline;
}

/* FORMULARIOS GENERALES (crear producto, crear tanda, etc) */

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    padding: 20px;
}

.form-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.form-card h2 {
    margin-bottom: 25px;
}

.form-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-card input,
.form-card textarea,
.form-card select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    outline: none;
    border-color: #ff6b00;
}

.form-card button {
    margin-top: 10px;
    padding: 12px;
    border-radius: 6px;
    background: #ff6b00;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.form-card button:hover {
    background: #e55d00;
}

.main-content{
    background:#0e2a44;
    flex:1;
}

/* Fondo general del body */
body {
    background: #0f2a44;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Contenedor principal blanco */
.main-content {
    background: #f5f7fb;
    flex: 1;
}

/* Footer uniforme */
footer.footer {
    background: #0f2a44;
    color: #f5f7fb;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    margin-top: auto;
}

/* ============================= */
/* ADMIN PANEL */
/* ============================= */

.admin-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.admin-header h2{
    margin:0;
}

.admin-form{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.admin-field{
    display:grid;
    grid-template-columns:220px 1fr;
    align-items:center;
    gap:15px;
}

.admin-field label{
    font-weight:600;
}

.admin-field input,
.admin-field select{
    width:100%;
    padding:10px 12px;
    border-radius:6px;
    border:1px solid #ccc;
    box-sizing:border-box;
}

.admin-actions{
    margin-top:20px;
    text-align:center;
}


/* ============================= */
/* LOGIN FORM */
/* ============================= */

.login-card form{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-top:20px;
}

.login-card input{
    width:100%;
    padding:12px 14px;
    border-radius:8px;
    border:1px solid #d1d5db;
    font-size:16px;
    outline:none;
    transition:all .2s ease;
    box-sizing:border-box;
    flex-shrink:0;
}

.login-card input:focus{
    border-color:#ff6a00;
    box-shadow:0 0 0 2px rgba(255,106,0,0.15);
}

.login-card button{
    margin-top:10px;
    height: 3rem;
    font-size: 17px;
}

/* ============================= */
/* FORM BACKGROUND */
/* ============================= */

.form-bg{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;

    background-image:url('/assets/img/bg-productos.jpg');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

/* tarjeta del formulario */

.form-card{
    background:white;
    padding:40px;
    border-radius:14px;
    width:100%;
    max-width:500px;
    box-shadow:0 20px 50px rgba(0,0,0,0.15);
}

/* inputs */

.form-card input,
.form-card textarea{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:15px;
}

/*FONDO DE CREAR TANDA*/
.form-bg {
    background-image: url('/assets/img/bg-tanda.png'); /* tu nueva imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
}

.form-bg .form-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
}

/* IMAGEN DE FONDO DEL HERO-HOME*/

.hero {
    background-image: url('/assets/img/bg-tanda.png'); /* tu imagen para home */
    background-size: cover;          /* cubre toda la sección */
    background-position: center;     /* centra la imagen */
    background-repeat: no-repeat;    /* no se repite */
    min-height: 100vh;               /* ocupa toda la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center;         /* centra verticalmente */
    align-items: center;             /* centra horizontalmente */
    text-align: center;              /* centra el texto */
    color: white;                    /* texto visible sobre la imagen */
    padding: 0 20px;
}

/* Opcional: estilos para botones sobre la imagen */
.hero .btn-primary,
.hero .btn-secondary {
    margin: 10px;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
}

/* Para que las secciones debajo no se mezclen */
.features, .cta {
    background-color: #f9f9f9; /* fondo claro para legibilidad */
    padding: 50px 20px;
}

/* Fondo general para el dashboard */
.dashboard {
    background-image: url('/assets/img/bg-tanda.png'); /* tu imagen de fondo */
    background-size: cover;          /* cubre toda la sección */
    background-position: center;     /* centra la imagen */
    background-repeat: no-repeat;    /* no se repite */
    min-height: 100vh;               /* ocupa toda la pantalla */
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card del dashboard */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin-top: 30px;
}

.dashboard .card {
    background-color: rgba(255, 255, 255, 0.9); /* fondo semitransparente */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.dashboard .card h3 {
    margin-bottom: 15px;
}

.dashboard .card p {
    margin-bottom: 20px;
}

.dashboard .btn-primary {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
}

/* ============================
   Header con íconos - Escritorio
============================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0f2a44;
    padding: 10px 20px;
    color: white;
}

.navbar .logo {
    font-size: 1.3rem;
    font-weight: bold;
}

.navbar .logo span {
    font-size: 0.9rem;
    display: block;
    color: #f0a500;
}

.navbar nav a {
    font-size: 1.5rem;
    color: white;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.2s;
}

.navbar nav a:hover {
    color: #f0a500;
}

/* ============================
   Ajustes para dispositivos móviles
============================ */
@media (max-width: 600px) {
    /* Ocultar el logo */
    .navbar .logo,
    .navbar .logo span {
        display: none;
    }

    /* Barra fija abajo */
    .navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px 0;
        z-index: 999;
        border-top: 1px solid #0f2a44;
    }

    /* Nav ocupa todo el ancho y distribuye iconos */
    .navbar nav {
        display: flex;
        justify-content: space-between; /* distribuye al máximo ancho */
        width: 100%;
        padding: 0 20px; /* opcional: margen lateral */
    }

    /* Iconos grandes y centrados dentro de cada enlace */
    .navbar nav a {
        font-size: 2rem;
        margin: 0;
        text-align: center;
        flex: 1; /* cada enlace ocupa espacio igual */
    }
}

/* ============================
   Fix Safari input type=date
============================ */
input[type="date"] {
    -webkit-appearance: none; /* Quita estilo nativo de Safari */
    appearance: none;          /* Para otros navegadores modernos */
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: white; /* opcional: fuerza fondo blanco */
}

/* Header escritorio */
.navbar {
    height: 100px; /* Altura fija del header en PC */
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.navbar .logo img.logo-img {
    height: 6.5rem; /* Logo ocupa toda la altura del header */
    width: auto;    /* Mantiene proporciones */
    object-fit: contain; /* Evita deformación */
    vertical-align: middle;
}

/* Header móvil */
@media (max-width: 768px) {
    .navbar {
        height: 50px; /* Altura más pequeña para móviles */
    }

    .navbar .logo img.logo-img {
        height: 100%; /* Logo se ajusta a la nueva altura */
    }
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0px;
}

.login-logo img {
    width: 120px; /* ajusta tamaño */
    height: auto;
}

/*CONTRASEÑA OLVIDADA*/
.forgot-password {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.forgot-password a {
    color: #607D8B;
    text-decoration: none;
    font-weight: bold;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Tooltip para inputs */
.tooltip {
    position: relative;
    display: inline-block;
    width: 100%;
}

.tooltip input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    box-sizing: border-box;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 8px;
    border-radius: 6px;

    position: absolute;
    z-index: 1;
    top: 50%;
    left: 105%;
    transform: translateY(-50%);
    
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext,
.tooltip:focus-within .tooltiptext {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 600px) {
    .tooltip .tooltiptext {
        top: 100%;       /* Debajo del input */
        left: 0;         /* Alineado al inicio */
        transform: translateY(5px); /* Pequeño espacio */
        width: 90vw;     /* Ancho máximo adaptable */
        max-width: 250px; 
    }
}

.info-seguridad {
    font-size: 13px;
    color: #9E9E9E; /* rojo o naranja para llamar atención */
    text-align: center;
    margin-top: 15px;
}

/*mensajes de error antes de eliminar un producto*/
.error {
    color: #c0392b;
    font-weight: bold;
    text-align: center;
}

.success {
    color: #27ae60;
    font-weight: bold;
    text-align: center;
}

/* Botón de volver fijo arriba a la izquierda */
.back-btn-fixed {
    display: none; /* oculto por defecto */
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9999; /* siempre encima de todo */
    background-color: #ff570000; /* ajusta color de fondo */
    color: #9E9E9E;
    border: none;
    border-radius: 50%; /* círculo */
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    /*box-shadow: 0 2px 6px rgba(0,0,0,0.3);*/
}

@media screen and (max-width: 768px) {
    .back-btn-fixed {
        display: block; /* visible solo en móviles */
    }
}

/*BLOQUES LADO A LADO*/
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* para que en móvil se apilen */
}

.form-card {
    flex: 1;
    min-width: 300px; /* tamaño mínimo para cada bloque */
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.form-row {
    display: flex;
    gap: 20px; /* espacio entre tarjetas */
    align-items: stretch; /* fuerza que todas las tarjetas tengan la misma altura */
}

.form-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* empuja el botón al fondo */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    flex: 1; /* cada tarjeta ocupa el mismo ancho y altura dentro del flex padre */
    box-sizing: border-box;
}

/* CONTENEDOR GENERAL */
.detalle-tanda-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* EN PC HACERLO MÁS ANCHO */
@media (min-width: 1024px) {
    .detalle-tanda-wrapper {
        max-width: 95%;
    }
}

/* GRID PRINCIPAL */
.detalle-grid {
    display: grid;
    gap: 20px;
}

/* EN PC: 2 COLUMNAS */
@media (min-width: 1024px) {
    .detalle-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/* TARJETAS */
.detalle-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* TABLA */
.detalle-tabla {
    width: 100%;
    border-collapse: collapse;
}

.detalle-tabla th,
.detalle-tabla td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

/* RESET IMPORTANTE */
* {
    box-sizing: border-box;
}

/* CONTENEDOR */
.detalle-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 15px;
}

/* PC MÁS ANCHO */
@media (min-width: 1024px) {
    .detalle-wrapper {
        max-width: 95%;
    }
}

/* GRID */
.detalle-grid {
    display: grid;
    gap: 15px;
}

@media (min-width: 1024px) {
    .detalle-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* TARJETAS */
.detalle-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden; /* 🔥 CLAVE */
}

/* IMÁGENES */
.detalle-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* TABLA WRAPPER (CLAVE PARA MOBILE) */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* TABLA */
.detalle-tabla {
    width: 100%;
    min-width: 500px; /* 🔥 evita que se rompa */
    border-collapse: collapse;
}

.detalle-tabla th,
.detalle-tabla td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
}

/*CALIFICACIONES*/
.star {
    color: #03A9F4;
    font-size: 16px;
}

.star.active {
    color: gold;
}

.form-rating {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #9E9E9E;
    cursor: pointer;
    transition: 0.2s;
}

.star-btn:hover {
    color: #03A9F4;
    transform: scale(1.2);
}

.calificar-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #FF9800;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(20px); }
}

/* PEGAR TODO AL FINAL DEL ARCHIVO */
.card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
}

.icon-detalle { background: #34495e; color: #fff; }
.icon-delete  { background: #e74c3c; color: #fff; }

.icon-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/*BLOQUES EN MI CUENTA MISMA ALTURA*/
.form-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.form-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-card form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/*NOTIFICACIONES*/
.notificacion {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.notificacion.nueva {
    background-color: #eef6ff;
    font-weight: bold;
}

.notificacion.leida {
    opacity: 0.6;
}

.badge {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 12px;
}

/* Contador de notificaciones sobre el ícono */
.icono-noti {
    position: relative; /* Necesario para que el badge se ubique relativo al icono */
    display: inline-block;
}

.icono-noti .badge {
    position: absolute;
    top: -5px;     /* Ajusta según prefieras */
    right: -5px;   /* Ajusta según prefieras */
    background: red;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* Ajuste para pantallas muy pequeñas */
@media (max-width: 480px) {
    .icono-noti .badge {
        top: -3px;
        right: -3px;
        font-size: 0.65rem;
        min-width: 16px;
    }
}

/* BOTON BASE */
.survey-btn-fixed {
    position: fixed;
    top: 15px;
    right: 15px;
    background: #0f2a44;
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.2s;
}

/* Hover */
.survey-btn-fixed:hover {
    background: #1b3d5c;
    transform: scale(1.1);
}

/* PC: botón abajo derecha */
@media (min-width: 768px) {
    .survey-btn-fixed {
        top: auto;
        bottom: 80px;
        right: 20px;
    }
}