/* styles.css - Estilos generales para todo el sitio */

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f9f9f9;
}

.header {
    width: 100%;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.container {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
}

main {
    margin-top: 100px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.menu-toggle {
    display: none;
}
.menu {
    display: flex;
    list-style: none;
    gap: 18px;
    padding: 0;
    margin: 0;
}
.menu-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}
.menu-link:hover {
    color: #007BFF; /* Azul suave al pasar el mouse */
    border-bottom: 2px solid #007BFF;
    padding-bottom: 2px;
}

.hero {
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin: 0;
}

.hero .btn {
    background-color: #4db8ff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    text-decoration: none;
}

.catalogo, .event-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 2rem;
}

.card, .event-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    width: 300px;
}

.card img, .event-card img {
    width: 100%;
    border-radius: 6px;
}

.btn-ver, .event-card .btn {
    margin-top: 1rem;
    display: inline-block;
    padding: 10px 16px;
    background-color: #007acc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.titulo {
    /*font-size: 36px;*/
    font-size: 1.4rem;
    font-weight: bold;
    color: #222;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin: 20px 0;
}

.usuario-logueado {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;

}

.usuario-logueado a {
    color: #0066cc;
    text-decoration: none;
}

.usuario-logueado a:hover {
    text-decoration: underline;
}

.login-section {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: #ffffffee;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.login-section h1 {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.login-content p {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    padding: 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    border-color: #007acc;
    outline: none;
}

.form-group input[type="submit"] {
    background-color: #007acc;
    color: white;
    padding: 10px 0;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}
.jmds {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('../img/fondo-software.jpg');
    background-blend-mode: lighten;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 20px;
    text-align: center;
    border-radius: 10px;
    filter: brightness(1.3); /* aumenta el brillo global del fondo */
}


.jmds-content {
    background-color: rgba(0, 0, 0, 0.4); /* fondo oscuro con transparencia */
    display: inline-block;
    padding: 20px 30px;
    border-radius: 10px;
}


.jmds h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.jmds p {
    font-size: 1.2rem;
    color: #eee;
}


/* Botones */
button {
    padding: 8px 16px;
    font-size: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-editar {
    background-color: #007bff;
    color: white;
}

.btn-eliminar {
    background-color: #dc3545;
    color: white;
}

.btn-comprar {
    background-color: #28a745;
    color: white;
}

.btn-editar:hover {
    background-color: #0056b3;
}

.btn-eliminar:hover {
    background-color: #b02a37;
}

.btn-comprar:hover {
    background-color: #1e7e34;
}
/* Tema oscuro activable con la clase .dark-mode */
body.dark-mode {
    background-color: #121212;
    color: #f1f1f1;
}

.dark-mode header,
.dark-mode nav,
.dark-mode .container,
.dark-mode .admin-section,
.dark-mode form,
.dark-mode table {
    background-color: #1e1e1e;
    color: #f1f1f1;
    border-color: #444;
}

.dark-mode input,
.dark-mode select,
.dark-mode textarea {
    background-color: #333;
    color: #f1f1f1;
    border: 1px solid #555;
}

.dark-mode table th {
    background-color: #333;
    color: #fff;
}

.dark-mode table tr:nth-child(even) {
    background-color: #2a2a2a;
}

.dark-mode .btn-editar {
    background-color: #3366cc;
}

.dark-mode .btn-eliminar {
    background-color: #cc3333;
}

.dark-mode .mensaje-ok {
    background-color: #234d34;
    color: #a8f0c1;
    border-color: #46d27d;
}
body.dark-mode .header {
    background: rgba(34, 34, 34, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .menu-link {
    color: #ddd;
}

body.dark-mode .menu-link:hover {
    color: #66ccff;
    border-bottom: 2px solid #66ccff;
}
h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

@media (max-width: 1280px) {
    form.formulario-editable {
        max-width: 400px;
        padding: 16px;
    }
}
@media (max-width: 960px) {
    form.formulario-editable {
        max-width: 90%;
        padding: 12px;
    }
}

@media (max-width: 720px) {
    body {

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0; /* Asegúrate de que no haya margen en el body */
        padding: 0; /* Asegúrate de que no haya padding en el body */
    }
    main {
        /*background: url("/images/hero_dis.jpg") no-repeat center center fixed;*/
        background-size: cover;
        background-position: center;

    }

    .header {
        width: 100%;
        padding: 10px 0px;
        display: flex;
        flex-direction: column; /* Cambiar a columna para que el título esté arriba y el menú abajo */
        align-items: center;
        background-color: rgb(255, 255, 255);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 10px;
        left: 0;
        z-index: 1000;
        margin: 0; /* Elimina cualquier margen en el header */
    }

    .container {
        width: 100%;
        padding: 0px;
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column; /* Asegurar que los elementos se alineen en columna */
        align-items: center;
    }

    th, td {
        padding: 8px;
        font-size: 12px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    h1 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }

    nav {
        font-size: 14px;
    }

    .menu {
        list-style: none;
        display: none; /* Ocultar el menú inicialmente */
        gap: 15px;
        margin: 0;
        padding: 0;
        width: 100%;
        text-align: center;
        flex-direction: column;
    }

    .menu-visible {
        display: flex; /* Mostrar el menú cuando tenga la clase menu-visible */
    }

    .menu-link {
        color: #333;
        text-decoration: none;
        padding: 10px 15px;
    }

    .menu-toggle {
        display: flex;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        visibility: visible;
    }

    .hamburger {
        width: 25px;
        height: 2px;
        background-color: #333;
        position: relative;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        width: 23px;
        height: 2px;
        background-color: #333;
        position: absolute;
        left: 0;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        top: 8px;
    }

    .titulo {
        font-size: 20px;
        font-weight: bold;
        color: #333;
        text-align: center;
        margin: 20px 0;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-family: 'Arial', sans-serif;
    }

    .men a {
        font-size: 12px;
        font-weight: bold;
        color: #333;
        text-align: center;
        margin: 20px 0;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-family: 'Arial', sans-serif;
    }

    footer {
        background-color: #333;
        color: white;
        padding: 20px 0;
        text-align: center;
        width: 100%;
        position: relative;
        margin-top: auto;
    }
}


