/* Bike Rental System - Frontend Styles */

.bike-rental-system {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#bike-rental-container {
    position: relative;
    min-height: 400px;
}

.bike-view {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.bike-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Títulos */
.bike-rental-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.bike-models-header {
    margin-bottom: 20px;
}

.bike-breadcrumb {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.bike-breadcrumb:hover {
    color: #2980b9;
    text-decoration: none;
    transform: translateX(-3px);
}

/* Botones */
.bike-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.bike-btn-primary {
    background: #3498db;
    color: white;
}

.bike-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.bike-btn-back {
    background: #95a5a6;
    color: white;
    margin-bottom: 20px;
}

.bike-btn-back:hover {
    background: #7f8c8d;
}

.bike-btn-disabled {
    background: #bdc3c7;
    color: #7f8c8d;
    cursor: not-allowed;
}

.bike-btn-large {
    padding: 16px 32px;
    font-size: 18px;
    width: 100%;
}

/* Grilla de Categorías */
.bike-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.bike-category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 300px;
}

.bike-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.bike-category-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.bike-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bike-category-card:hover .bike-category-image img {
    transform: scale(1.1);
}

.bike-category-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.bike-category-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    transition: all 0.3s ease;
}

.bike-category-name-overlay h3 {
    margin: 0;
    font-size: 24px;
    color: white;
    text-align: center;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bike-category-card:hover .bike-category-name-overlay {
    background: linear-gradient(to top, rgba(52, 152, 219, 0.9), rgba(52, 152, 219, 0.5));
}

.bike-category-info {
    padding: 20px;
}

.bike-category-info h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #2c3e50;
}

.bike-category-price {
    color: #27ae60;
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 15px 0;
}

/* Grilla de Modelos */
.bike-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.bike-model-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bike-model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.bike-model-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.bike-model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bike-model-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
}

.bike-model-info {
    padding: 20px;
}

.bike-model-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #2c3e50;
}

.bike-model-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.bike-model-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.bike-model-price {
    color: #27ae60;
    font-size: 20px;
    font-weight: 700;
}

.bike-model-quantity .available {
    color: #27ae60;
    font-weight: 500;
}

.bike-model-quantity .unavailable {
    color: #e74c3c;
    font-weight: 500;
}

/* Formulario de Reserva */
.bike-reservation-container {
    max-width: 900px;
    margin: 0 auto;
}

.bike-reservation-details {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.bike-reservation-image {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

.bike-reservation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bike-reservation-info h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #2c3e50;
}

.bike-category-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.bike-price-highlight {
    font-size: 24px;
    color: #27ae60;
    font-weight: 700;
    margin-top: 15px;
}

.bike-reservation-form-container {
    background: #fff9c4;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffd54f;
}

.bike-reservation-form-container h3 {
    margin: 0 0 25px 0;
    font-size: 22px;
    color: #2c3e50;
    font-weight: 600;
}

.bike-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bike-form-group {
    display: flex;
    flex-direction: column;
}

.bike-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.bike-form-group input,
.bike-form-group select,
.bike-form-group textarea {
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

.bike-form-group input:focus,
.bike-form-group select:focus,
.bike-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.bike-form-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.bike-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bike-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Checkbox de términos y condiciones */
.bike-form-checkbox-group {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border: 2px solid #3498db;
    border-radius: 8px;
}

.bike-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 15px;
    color: #2c3e50;
    line-height: 1.6;
}

.bike-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.bike-checkbox-label span {
    flex: 1;
}

.bike-checkbox-label a {
    color: #3498db;
    text-decoration: underline;
    font-weight: 600;
}

.bike-checkbox-label a:hover {
    color: #2980b9;
}

/* Información de Precios */
.bike-pricing-info {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.bike-pricing-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: white;
    font-size: 22px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bike-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.bike-pricing-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.bike-pricing-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bike-pricing-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.bike-pricing-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.bike-pricing-note {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-top: 5px;
}

/* Sección de Extras */
.bike-extras-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.bike-extras-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 20px;
}

.bike-extras-description {
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 14px;
}

.bike-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bike-extra-item {
    display: block;
    padding: 15px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bike-extra-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.bike-extra-item input[type="checkbox"] {
    display: none;
}

.bike-extra-item input[type="checkbox"]:checked + .bike-extra-content {
    background: #e3f2fd;
}

.bike-extra-item input[type="checkbox"]:checked + .bike-extra-content .bike-extra-icon {
    transform: scale(1.2);
}

.bike-extra-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.bike-extra-icon {
    font-size: 32px;
    transition: transform 0.3s ease;
}

.bike-extra-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bike-extra-info strong {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 4px;
}

.bike-extra-price {
    color: #27ae60;
    font-weight: 600;
    font-size: 14px;
}

/* Cálculo de Precio */
.bike-price-calculation {
    background: white;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mensaje de Disponibilidad */
.bike-availability-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    animation: slideDown 0.3s ease;
    display: none;
}

.bike-availability-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.bike-availability-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.bike-price-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bike-price-breakdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.bike-price-breakdown:last-of-type {
    border-bottom: none;
}

.bike-price-label {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
}

.bike-price-value {
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 600;
}

.bike-price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0;
    margin-top: 10px;
    border-top: 3px solid #3498db;
}

.bike-price-total .bike-price-label {
    font-size: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.bike-price-amount {
    font-size: 28px;
    color: #27ae60;
    font-weight: 700;
}

.bike-form-actions {
    margin-top: 30px;
}

/* Confirmación */
.bike-confirmation-message {
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 50px auto;
}

.bike-confirmation-icon {
    width: 80px;
    height: 80px;
    background: #27ae60;
    color: white;
    font-size: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.bike-confirmation-message h2 {
    font-size: 32px;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.bike-confirmation-message p {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Loader */
.bike-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bike-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ecf0f1;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mensajes vacíos */
.bike-rental-empty {
    text-align: center;
    font-size: 18px;
    color: #7f8c8d;
    padding: 60px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .bike-categories-grid,
    .bike-models-grid {
        grid-template-columns: 1fr;
    }
    
    .bike-reservation-details {
        grid-template-columns: 1fr;
    }
    
    .bike-reservation-image {
        height: 200px;
    }
    
    .bike-form-row {
        grid-template-columns: 1fr;
    }
}
