/* Paleta de Colores
   - #000000 (Negro): Principal para fondo y texto.
   - #FF0000 (Rojo Brillante): Para acentos y elementos importantes.
   - #FFFFFF (Blanco): Para texto en fondos oscuros.
   - #222222 (Gris Oscuro): Para fondos de secciones o tarjetas.
*/

/* -------------------- Estilos Generales -------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* -------------------- Contenedores Principales -------------------- */
.login-container, .form-container, .dashboard-container {
    background-color: #222222;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-sizing: border-box;
    margin: 40px auto;
}

.dashboard-container {
    max-width: 800px;
    padding: 20px;
}

/* -------------------- Títulos y Subtítulos -------------------- */
h2, h3 {
    color: #FF0000;
    font-weight: 600;
    margin-bottom: 20px;
}

/* -------------------- Formulario y Campos de Entrada -------------------- */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    align-self: flex-start;
    font-weight: bold;
    color: #CCCCCC;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #444444;
    background-color: #333333;
    color: #FFFFFF;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus,
select:focus {
    border-color: #FF0000;
    outline: none;
}

/* -------------------- Botones -------------------- */
button {
    width: 100%;
    padding: 15px;
    background-color: #FF0000;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #CC0000;
    transform: translateY(-2px);
}

/* -------------------- Enlaces y Listas -------------------- */
a {
    color: #FF0000;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #CCCCCC;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    margin-bottom: 10px;
}

/* -------------------- Mensajes de Estado -------------------- */
.message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
}

.success-message {
    background-color: #1a521a;
    color: #d4edda;
}

.error-message {
    background-color: #6a1a1a;
    color: #f8d7da;
}

/* -------------------- Tablas de Gestión -------------------- */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.users-table th, .users-table td {
    padding: 12px;
    border: 1px solid #444;
    text-align: left;
}
.users-table th {
    background-color: #333;
    color: #FF0000;
}
.action-link {
    color: #FF0000;
    text-decoration: none;
    transition: color 0.3s;
}
.action-link:hover {
    color: #FFFFFF;
}
.add-user-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FF0000;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}
.add-user-btn:hover {
    background-color: #CC0000;
}
.delete-link {
    color: #FF0000;
    margin-left: 10px;
}
.delete-link:hover {
    color: #FFFFFF;
}

/* -------------------- Estructura del Layout -------------------- */
.header {
    background-color: #222;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #FF0000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 50px;
    margin-right: 15px;
}

.title-container h1 {
    color: #fff;
    margin: 0;
    font-size: 2.5em;
}

.title-container h1 span {
    color: #FF0000;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #FF0000;
}

.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Footer simplificado */
.footer {
    width: 100%;
    box-sizing: border-box;
    background-color: #222;
    color: #ccc;
    padding: 20px;
    text-align: center;
    border-top: 2px solid #FF0000;
}

/* --- Estilos para la Nueva Página de Inicio --- */
.hero-section {
    background-color: #111;
    padding: 50px 20px;
    color: #fff;
    text-align: center;
    width: 100%;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 3px solid #FF0000;
}
.hero-text-container {
    text-align: left;
}
.hero-text-container h1 {
    font-size: 3em;
    font-weight: bold;
    color: #FF0000;
}
.hero-text-container .subtitle {
    font-size: 1.2em;
    margin-top: 10px;
    max-width: 600px;
}
.animated-text {
    animation: fadeIn 2s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.about-us-section {
    padding: 50px 20px;
    text-align: center;
    color: #fff;
    width: 100%;
}
.about-us-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.about-us-image {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #FF0000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-us-text {
    text-align: left;
    max-width: 600px;
}
.about-us-text h2 {
    font-size: 2.5em;
    color: #FF0000;
}
.values-section {
    margin-top: 30px;
}
.value-item {
    border-left: 3px solid #FF0000;
    padding-left: 15px;
    margin-top: 20px;
}
.team-section {
    padding: 50px 20px;
    text-align: center;
    width: 100%;
    background-color: #111;
}
.team-section h2 {
    color: #FF0000;
    margin-bottom: 40px;
}
.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.team-member {
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 200px;
}
.team-member img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #FF0000;
    margin-bottom: 10px;
}
.tallas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.contact-info-container {
    background-color: #222222;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-sizing: border-box;
    margin: 40px auto;
}
.contact-title {
    margin-bottom: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-align: left;
}
.contact-item i {
    font-size: 24px;
    color: #FF0000;
    margin-right: 15px;
}
.contact-item h3 {
    margin: 0;
}
.contact-item p {
    margin: 0;
}
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
    .about-us-container {
        flex-direction: row;
        text-align: left;
    }
}

.about-us-section {
    padding: 50px 20px;
    text-align: center;
    color: #fff;
    width: 100%;
}
.about-us-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.about-us-image {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #FF0000;
    box-shadow: 0 0 20px #ff0000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: resplandor 3s infinite alternate;
}
.about-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-us-text {
    text-align: left;
    max-width: 600px;
}
.about-us-text h2 {
    font-size: 2.5em;
    color: #FF0000;
}
.values-section {
    margin-top: 30px;
}
.value-item {
    border-left: 3px solid #FF0000;
    padding-left: 15px;
    margin-top: 20px;
}
/* --- Animación de Resplandor --- */
@keyframes resplandor {
    0% {
        box-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000;
    }
    50% {
        box-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000;
    }
    100% {
        box-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000;
    }
}
@media (min-width: 768px) {
    .about-us-container {
        flex-direction: row;
        text-align: left;
    }
}

/* Animation for the "Sobre nosotros" text */
/* Animación de entrada por la izquierda */
/* Animación de entrada de texto */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animated-slide-in {
    opacity: 0; /* Oculta el elemento al principio */
}
.animated-slide-in.visible {
    animation: slideInFromLeft 1s ease-in-out forwards;
}