 /* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Encabezado y navegación */
header {
    background-color: #000;
    padding: 20px 0;
    text-align: center;
}

header h1, header h2 {
    margin: 0;
    color: orange;
    font-size: 2.5rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 10px;
}

.nav-link {
    color: #ffa500;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ffcc00;
}

/* Botones principales */
.btn-accion {
    background-color: #ffa500;
    color: #000;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.btn-accion:hover {
    background-color: #ff8800;
    transform: scale(1.05);
    cursor: pointer;
}

/* Imágenes responsivas */
img.banner {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.perfil-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* Formularios adaptables */
form {
    max-width: 600px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

form label {
    display: block;
    margin-bottom: 6px;
    color: #ffa500;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form select,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 5px;
    font-size: 1rem;
}

form button,
form input[type="submit"] {
    background-color: #ffa500;
    color: #000;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s;
}

form button:hover,
form input[type="submit"]:hover {
    background-color: #ff8800;
}

/* Botones en admin */
.d-flex.flex-wrap.gap-2 button {
    flex: 1 1 auto;
    min-width: 100px;
}

/* Tablas en admin */
.table {
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 10px;
    text-align: center;
}

.table th {
    background-color: #ffa500;
    color: #000;
}

.table td {
    background-color: #1e1e1e;
    color: #f0f0f0;
}

/* Alertas modernas */
.alert-info {
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 10px;
    border: none;
}

/* Footer */
footer {
    background-color: #000;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9rem;
    color: #ccc;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
    header h1, header h2 {
        font-size: 1.5rem;
        padding: 0 15px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    section p {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 10px;
    }

    section h2, section h3 {
        font-size: 1.4rem;
    }

    .perfil-img {
        height: auto;
    }

    form {
        padding: 15px;
        margin: 15px 10px;
    }

    .table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* ======= GALERÍA DESPLAZABLE AUTO + ADAPTACIÓN DE IMÁGENES ======= */

.galeria-auto {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.galeria-scroll {
    animation: deslizar 30s linear infinite;
    display: flex;
    gap: 1rem;
}

.galeria-scroll img {
    height: 180px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background-color: #1e1e1e;
    padding: 5px;
}

/* Animación continua */
@keyframes deslizar {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}