body {
    background-color: #eafffe;
    background-size: 50px 50px;
    background-image: url("../imgs/background-music.png");
}

header {
    width: 100%;
    background-color: #F7F9FA;
}

a, a:hover {
    /* color: darkblue; */
    text-decoration: none;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: bisque;
    border: 2px solid grey;
}

.logo img {
    display: block;
    margin: 0; /* Sobreescribir #logo_socios para evitar desalineación */
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    margin: 0 10px;
}

.nav-menu a {
    font-size: 1em;
    text-decoration: none;
    color: black;
    background-color: white;
    border: 1px solid grey;
    padding: 8px 10px;
    display: block;
    line-height: normal; /* Sobreescribir line-height: 70px */
}

.nav-menu a:hover {
    color: white;
    background-color: orange;
}

.nav-menu a.active {
    background-color: lightblue !important; /* Mantener tu estilo activo */
    color: black;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Estilos para pantallas pequeñas */
@media screen and (max-width: 768px) {
    main {
        font-size: .9em;
    }
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px; /* Ajusta si tu header es más alto/bajo */
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
        display: block; /* Sobreescribir display: inline-block */
    }

    .nav-menu a {
        padding: 15px;
        border-bottom: 1px solid #eee;
        border-left: none;
        border-right: none;
        border-top: none; /* Simplificar bordes en dropdown */
    }

    .nav-menu a:hover {
        background-color: #f0f0f0; /* Suavizar hover en móviles */
        color: black;
    }

    #nuevo_socio, #editar_socio {
        min-width: unset !important; /* Ajustar el ancho en móviles */
        padding: 1em !important; /* Reducir padding en móviles */
    }

    #nuevo_socio label, #editar_socio label {
        width: unset !important; 
        float: none !important;
    }
}

/* Mantener el resto de tu CSS sin cambios */
.txt-rojo {
    color: red;
    font-weight: bold;
}

.txt-negro {
    color: black;
}

.txt-azul {
    color: blue;
}

.txt-gris {
    color: grey;
}

th {
    background-color: lightblue;
    padding: 5px;
    font-size: 1.3em;
}

td {
    padding: 5px;
}

.titulo_correo {
    font-size: 1.2em;
    font-weight: bold;
    width: 300px;
    text-align: center;
}

h1 {
    padding: 15px 18px;
    margin-top: 1em;
}

h4 {
    margin: 1em 0;
    padding: .5em;
    background-color: antiquewhite;
}

#nuevo_socio,
#editar_socio {
    border: 2px solid grey;
    padding: 3em;
    margin: 1em;
    width: fit-content;
    min-width: 500px;
    background-color: blanchedalmond;
}

#nuevo_socio label,
#editar_socio label {
    width: 35%;
    margin-top: 1em;
    float: left;
}

input[text],
select {
    padding: 5px;
    margin-top: 1em;
}

#insertado,
#editado {
    display: none;
    margin: 1em;
    padding: 1em;
    border: 2px solid grey;
    width: fit-content;
    min-width: 500px;
    background-color: blanchedalmond;
}

#table_list {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

#table_list td,
#table_list th {
    border: 1px solid #ddd;
    padding: 4px;
    font-size: .9em;
}

a:link {text-decoration: none;}
a:visited {text-decoration: none;}
a:active {text-decoration: none;}

table tr td a {
    display: block;
    height: 100%;
    width: 100%;
}

.boton_nuevo {
    background-color: #24486c;
    color: white;
    padding: 10px 20px;
    transition: .3s;
}

.boton_nuevo:hover {
    background-color: #5b89b6;
}

.listado-export {
    margin: 1em;
}

.div-export {
    margin: 1.5em;
    width: 90%;
}

.floating {
    float: left;
}

#logo_socios {
    margin: 0; /* Sobreescrito en .logo img */
}

.hide {
    display: none;
}

.nuevo_usuario_creado {
    color: darkgreen !important;
    font-weight: ºld;
}

.active {
    background-color: lightblue !important;
}


.section-bg-1 {
    background-color: #f0f4f8;
}

.section-bg-2 {
    background-color: #cbd8e5;
}

.activity-card {
    transition: .3s;
    padding: 15px;
}

.activity-card:hover {
    background-color: #c9dbee;
}

.agenda-title {
    margin-top: 6px;
}

.agenda-description {
    margin-top: 6px;
}
/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

.px-6 img {
    max-height: 300px;
    width: auto;
    height: 50px !important;
    object-fit: cover;
    vertical-align: top;
}

/* Calendar Badge Styles */
.calendar-badge {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 4rem;
    padding: 0.5rem;
}

.calendar-time {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: -.4rem;
}

.calendar-day {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: -.4rem;
}

.calendar-month {
    font-size: 0.75rem;
    font-weight: medium;
    color: #1f2937;
    text-transform: uppercase;
}

/* Custom Blue for Subtitle */
.text-blue-custom {
    color: #3366cc;
}

.form_acceso {
    float: none;
    text-align: right;
    padding-right: 1em;
}

.clear-both {
    clear: both;
}

/* Ajuste del menú móvil cuando header está reducido */
@media (max-width: 896px) {
  .nav-links.menu-visible {
    top: 64px; /* Ajusta según altura reducida */
  }
}

/* Cuando header está reducido */
#headerscrolled .nav-links.menu-visible {
  top: 56px;
}