/* General page styles */

/* Contenedor del logo */
.logo-container {
    position: fixed; /* Cambiamos a fixed para que no afecte al formulario */
    top: 20px;
    left: 20px;
    z-index: 1000; /* Para que siempre esté arriba */
}

/* Imagen del logo */
.logo-container img {
    width: 80px; /* O el tamaño que quieras */
    height: auto;
}

/* Estilo del botón de volver */
.back-btn {
    margin-top: 20px;
    padding: 12px;
    background-color: #f2f2f2;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.back-btn:hover {
    background-color: #0683e2;
    color: white;
}


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

body {
    background-color: #f4f7fc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container for login form */
.login-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

/* Welcome and instructions */
.welcome-message {
    font-size: 24px;
    color: #2d3e50;
    margin-bottom: 10px;
}

.sub-message {
    font-size: 16px;
    color: #7d8c99;
    margin-bottom: 20px;
}

/* Error message styling */
.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Form elements */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-field {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.input-field:focus {
    border-color: #4caf50;
    outline: none;
}

/* Submit button */
.submit-btn {
    padding: 12px;
    background-color: #4caf50;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #45a049;
}

/* Link to register */
.register-link {
    font-size: 14px;
    margin-top: 15px;
}

.register-link a {
    color: #af248f;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}



/* Contenedor general del producto */
.producto-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Hover effect */
.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Imagen del producto */
.producto-card .card-img-top {
    height: 250px;
    object-fit: cover;
    object-position: center;
}

/* Título */
.producto-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Descripción */
.producto-card .descripcion-producto {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
}

/* Precio */
.producto-card .precio-producto {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 15px;
}

/* Botón */
.producto-card .btn-success {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px;
}

/* Carrusel */
.carousel-inner {
    display: flex;
    justify-content: center;
}

.carousel-item {
    display: flex;
    justify-content: center;
}

.carousel-item .row {
    display: flex;
    justify-content: space-between;
}

.carousel-item .col-md-4 {
    margin-bottom: 20px;
}

/* Flechas del carrusel */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    z-index: 5;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #000;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .carousel-item .col-md-4 {
        flex: 1 1 100%;
    }
}
